-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Improve Menu/Toolbar RTL in atum #21136
Conversation
.ml-auto, .mx-auto { | ||
margin-left: 0 !important; | ||
margin-right: auto !important; | ||
} |
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.
Files should end with a trailing newline
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.
Try an avoid changing Bootstrap utility classes in the template-rtl.css. Flex is RTL by default so should be no need for this.
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.
Changing the following to flex
will make these automatically RTL.. https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/scss/blocks/_sidebar.scss#L84
} | ||
|
||
.ml-auto, .mx-auto { | ||
margin-left: 0 !important; |
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.
Properties should be ordered margin-right, margin-left
} | ||
|
||
.js-stools .js-stools-container-filters { | ||
left: 0; |
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.
Properties should be ordered right, left
} | ||
|
||
.js-stools .js-stools-container-filters { | ||
left: 0; |
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.
Properties should be ordered right, left
|
||
.main-nav { | ||
.fa{ | ||
margin:0 18px |
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.
Declaration should be terminated by a semicolon
Colon after property should be followed by at least one space
@@ -226,3 +227,23 @@ th { | |||
} | |||
} | |||
} | |||
|
|||
.main-nav { | |||
.fa{ |
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.
Opening curly brace {
should be preceded by one space
Not needed and pushing menu out form edge of viewport |
@@ -1714,6 +1709,12 @@ th { | |||
left: 15px; | |||
content: "\f0d9"; } | |||
|
|||
.main-nav li a span { | |||
float: right; } |
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.
Once you change https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/scss/blocks/_sidebar.scss#L84 to flex, remove this. Floats are ignored in flex objects.
Change to |
As mentioned by @infograf768, remove the following... https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/scss/template-rtl.scss#L111-L113 |
Ahh that's the one I was looking for but couldn't find :) Thanks! I've also simplified down the toolbar a bit more. So with these corrections. Any objections to merging this? It's far from perfect but much better than before :P |
.btn-toolbar > * { | ||
margin-left: 0; |
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.
Properties should be ordered margin-right, margin-left
I have tested this item ✅ successfully on 2f186ae This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21136. |
.mr-auto { | ||
margin-right: 0 !important; | ||
margin-left: auto !important; | ||
} |
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.
Files should end with a trailing newline
One last bug fix for the top menu 😇 |
@infograf768 Which view is this in? |
Don't worry - found it and done |
.mr-2 { | ||
margin-left: 0.5rem; | ||
margin-right: 0 !important; | ||
} |
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.
Files should end with a trailing newline
} | ||
|
||
.mr-2 { | ||
margin-left: 0.5rem; |
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.
Properties should be ordered margin-right, margin-left0.5
should be written without a leading zero as .5
Articles manager |
I have tested this item ✅ successfully on 04d3851 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21136. |
@franz-wohlkoenig can you also retest please. |
@laoneo will do in next Minutes. |
@@ -160,38 +160,29 @@ th { | |||
// Toolbar | |||
.subhead { | |||
|
|||
.btn-group-sm > .btn { | |||
.btn, .btn-sm { |
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.
You can remove the .btn-sm
from here as it's an addition to .btn
which is required anyway
@infograf768 this for another Issue? |
Yah there's a huge amount more to do here. But let's take it one step at a time :) |
Note: for the cpanel |
Don't add it to |
Indeed |
With the merge of #20962 that's not required for now as they've been moved to tables |
Improves the menu (text is now on the right not left of the menu), and the toolbar (things now render semi-correctly). The table options drop down also now opens correctly below the dropdown
@ciar4n please review me trying to implement CSS - I'm sure its dreadful in more than one way :)
Test by installing the Persian Language Pack