-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Set toolbar direction based on toolbar language #7902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fsbraun
merged 27 commits into
django-cms:develop-4
from
fsbraun:fix/toolbar-language-rtl
May 12, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
61e4cef
Fix: Set toolbar direction based on toolbar language
fsbraun bc52f94
Fix: Modal buttons did not respect `dir` attribute
fsbraun 4a0138e
Add RTL patch for older browsers, e.g., Chrome < 120
fsbraun 7d087d8
Fix: typos
fsbraun fa2d541
Revert changes to assets
fsbraun dfb54d4
remove newline at end: Update cms.pagetree.css
fsbraun 7f43c3d
Update cms.base.css
fsbraun 627694c
Undo changes to assets
fsbraun f769f45
Merge branch 'fix/toolbar-language-rtl' of github.com:fsbraun/django-…
fsbraun 0089a5e
No float on mobile
fsbraun 444c2a0
Comlete polyfill
fsbraun 73b1e88
fix: Adjust resize handle and resize js routine
fsbraun 1c535b4
fix eslint error
fsbraun 0b53ff2
Merge branch 'develop-4' into fix/toolbar-language-rtl
fsbraun 920b7bf
Fix: Let toolbar also become LTR for RTL content
fsbraun af36762
Merge branch 'fix/toolbar-language-rtl' of github.com:fsbraun/django-…
fsbraun 1423fa0
Fix: Arrow position for droppable locations in structure board
fsbraun 5727f31
Move sideframe to the right for RTL UI
fsbraun cac1c4b
Fix: test case to deal with non-existing urls
fsbraun 941610e
Merge branch 'develop-4' into fix/toolbar-language-rtl
fsbraun db129f6
Merge branch 'develop-4' into fix/toolbar-language-rtl
fsbraun a4a7c2e
Fixed cms debug bar styling ignoring rtl
fsbraun db112f5
Merge branch 'fix/toolbar-language-rtl' of github.com:fsbraun/django-…
fsbraun daf612f
Fix wizard rtl bug
fsbraun 0ff3e01
Merge branch 'develop-4' into fix/toolbar-language-rtl
fsbraun 8b72365
Fix resize cursor, missing patches for legacy browsers
fsbraun 2f5978b
Fix: nw -> ne in patch file
fsbraun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/* This patch file contains all :dir(rtl) selectors for browsers that do not support it yet */ | ||
/* Once, sufficiently many users have browsers that support `:dir()`, this file can be removed */ | ||
|
||
/* component: toolbar */ | ||
|
||
.cms-toolbar { | ||
.cms-toolbar-item { | ||
float: right; | ||
} | ||
} | ||
|
||
.cms-toolbar-item-navigation { | ||
li, li a { | ||
float: right; | ||
} | ||
.cms-toolbar-item-navigation-children > a span .cms-icon { | ||
transform: rotate(0deg); | ||
} | ||
} | ||
|
||
.cms-toolbar-more .cms-toolbar-item-cms-mode-switcher a { | ||
float: right !important; | ||
} | ||
|
||
.cms-messages .cms-messages-close { | ||
float: left; | ||
} | ||
|
||
.cms-toolbar-item-buttons a { | ||
float: right; | ||
} | ||
|
||
|
||
/* component: modal */ | ||
|
||
.cms-modal-item-buttons { | ||
float: left; | ||
} | ||
|
||
.cms-modal-item-buttons-left { | ||
float: right; | ||
} | ||
|
||
.cms-modal-resize { | ||
cursor: ne-resize; | ||
span { | ||
transform: scale(-1,1) translate(2px, 0); // flip drag triangle | ||
} | ||
} | ||
|
||
|
||
/* component: structureboard */ | ||
|
||
.cms-structure { | ||
.cms-dragitem-collapsable:before { | ||
transform: rotate(0deg); | ||
} | ||
.cms-dragitem-expanded:before { | ||
transform: rotate(-90deg); | ||
} | ||
} | ||
|
||
|
||
/* component: tree */ | ||
|
||
.cms-pagetree-section { | ||
h2 { | ||
float: right; | ||
} | ||
|
||
} | ||
|
||
.cms-tree-col, .cms-tree-reload, .cms-tree-filters { | ||
float: left; | ||
} | ||
|
||
.cms-tree-search { | ||
float: right; | ||
} | ||
|
||
.jstree-django-cms .jstree-ocl { | ||
float: right; | ||
} | ||
|
||
.jstree-anchor { | ||
background-position: calc(100% - 2px) center; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.