-
Notifications
You must be signed in to change notification settings - Fork 117
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
feat: Add RTL support to admin modal #525
Merged
fsbraun
merged 1 commit into
django-cms:master
from
sakhawy:feat/add-RTL-support-to-admin-modal
Mar 26, 2024
Merged
Changes from all commits
Commits
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 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 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 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 | ||||
---|---|---|---|---|---|---|
|
@@ -23,7 +23,7 @@ | |||||
.cms_modal-window { | ||||||
#container .breadcrumbs + .messagelist + #content, | ||||||
#container .breadcrumbs + #content { | ||||||
margin-left: 20px !important; | ||||||
margin-inline-start: 20px !important; | ||||||
} | ||||||
&.app-aldryn_bootstrap3 .filerFile .filerClearer { | ||||||
// make sure that file clear button has the correct size #140 | ||||||
|
@@ -41,9 +41,9 @@ | |||||
} | ||||||
// resets checkbox row margin and padding in modal window because of wrapping border #188 | ||||||
.checkbox-row { | ||||||
margin-left: -20px; | ||||||
margin-right: -20px; | ||||||
padding-left: 20px !important; | ||||||
margin-inline-start: -20px; | ||||||
margin-inline-end: -20px; | ||||||
padding-inline-start: 20px !important; | ||||||
} | ||||||
} | ||||||
// resets background color and shadow which is needed in admin for very long names | ||||||
|
@@ -66,12 +66,17 @@ | |||||
float: left; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
width: 100%; | ||||||
.results { | ||||||
margin-right: 0 !important; | ||||||
margin-inline-end: 0 !important; | ||||||
} | ||||||
#result_list tbody th, | ||||||
#result_list tbody td { | ||||||
height: auto; | ||||||
} | ||||||
|
||||||
[dir=rtl] & { | ||||||
// inline-start & inline-end are not widely supported | ||||||
float: right; | ||||||
} | ||||||
} | ||||||
} | ||||||
&.cms-pagetree-root { | ||||||
|
@@ -98,7 +103,7 @@ | |||||
} | ||||||
// resets table styles in modal window #189 | ||||||
table { | ||||||
margin-left: 0; | ||||||
margin-inline-start: 0; | ||||||
box-shadow: none !important; | ||||||
td > select { | ||||||
width: auto !important; | ||||||
|
@@ -122,15 +127,17 @@ | |||||
} | ||||||
#content, | ||||||
&.filebrowser #content { | ||||||
margin: 20px 20px 0 !important; | ||||||
margin-block: 20px 0 !important; | ||||||
margin-inline: 20px !important; | ||||||
} | ||||||
#content .submit-row { | ||||||
margin: 20px -20px 0 !important; | ||||||
margin-block: 20px 0 !important; | ||||||
margin-inline: -20px !important; | ||||||
padding: 20px 20px !important; | ||||||
} | ||||||
.form-row { | ||||||
padding-left: 0; | ||||||
padding-right: 0; | ||||||
padding-inline-start: 0; | ||||||
padding-inline-end: 0; | ||||||
.btn-group-context label { | ||||||
margin-top: 0 !important; | ||||||
margin-bottom: 5px; | ||||||
|
@@ -143,15 +150,21 @@ | |||||
float: left; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
margin-top: 0; | ||||||
&.field-registration_deadline_at { | ||||||
margin-right: 0 !important; | ||||||
margin-inline-end: 0 !important; | ||||||
} | ||||||
|
||||||
[dir=rtl] & { | ||||||
// inline-start & inline-end are not widely supported | ||||||
float: right; | ||||||
} | ||||||
} | ||||||
} | ||||||
// resets column width on bootstrap row plugin #59 | ||||||
.bootstrap3-column { | ||||||
.form-row { | ||||||
overflow: hidden; | ||||||
padding: 14px 0 10px; | ||||||
padding-block: 14px 10px; | ||||||
padding-inline: 0px; | ||||||
border-bottom: solid 1px $gray-lighter; | ||||||
&.field-create { | ||||||
input { | ||||||
|
@@ -161,13 +174,23 @@ | |||||
display: inline-block; | ||||||
float: left; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
width: 160px !important; | ||||||
|
||||||
[dir=rtl] & { | ||||||
// inline-start & inline-end are not widely supported | ||||||
float: right; | ||||||
} | ||||||
} | ||||||
} | ||||||
.fieldBox { | ||||||
label { | ||||||
display: inline-block; | ||||||
float: left; | ||||||
width: 70px !important; | ||||||
|
||||||
[dir=rtl] & { | ||||||
// inline-start & inline-end are not widely supported | ||||||
float: right; | ||||||
} | ||||||
} | ||||||
input { | ||||||
width: auto !important; | ||||||
|
@@ -196,7 +219,7 @@ | |||||
#container .breadcrumbs + .messagelist + #content, | ||||||
#container .breadcrumbs + #content { | ||||||
// make sure that margin is same as on modal window | ||||||
margin-left: 20px !important; | ||||||
margin-inline-start: 20px !important; | ||||||
} | ||||||
.colM { | ||||||
box-shadow: none; | ||||||
|
@@ -212,18 +235,22 @@ | |||||
padding: 0 !important; | ||||||
} | ||||||
ul { | ||||||
margin: 10px -20px 0; | ||||||
margin-block: 10px 0; | ||||||
margin-inline: -20px; | ||||||
li { | ||||||
padding: 10px 0 10px 20px; | ||||||
padding-block: 10px; | ||||||
padding-inline: 20px 0; | ||||||
} | ||||||
ul { | ||||||
margin: 10px 0 -10px -20px; | ||||||
margin-block: 10px -10px; | ||||||
margin-inline: -20px 0; | ||||||
li { | ||||||
padding: 10px 0 10px 20px; | ||||||
padding-block: 10px; | ||||||
padding-inline: 20px 0; | ||||||
} | ||||||
ul { | ||||||
margin-left: 0; | ||||||
margin-right: 0; | ||||||
margin-inline-start: 0; | ||||||
margin-inline-end: 0; | ||||||
} | ||||||
} | ||||||
} | ||||||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't that be
float: start
?