Fix RTL sidebar icon alignment (move to right)
This commit is contained in:
parent
ceaa26d36c
commit
28595c8f0f
@ -320,9 +320,9 @@ body.model-platformprofile label[for="id_admin_panel_logo"] {
|
|||||||
|
|
||||||
/* Sidebar Navigation Items RTL */
|
/* Sidebar Navigation Items RTL */
|
||||||
[dir="rtl"] .nav-sidebar .nav-item > .nav-link {
|
[dir="rtl"] .nav-sidebar .nav-item > .nav-link {
|
||||||
display: flex;
|
display: flex !important;
|
||||||
flex-direction: row-reverse; /* Flip icon and text */
|
flex-direction: row !important; /* Standard flow: RTL = Start(Right) to End(Left) */
|
||||||
justify-content: flex-end;
|
align-items: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir="rtl"] .nav-sidebar .nav-icon {
|
[dir="rtl"] .nav-sidebar .nav-icon {
|
||||||
@ -331,21 +331,18 @@ body.model-platformprofile label[for="id_admin_panel_logo"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[dir="rtl"] .nav-sidebar .nav-link p {
|
[dir="rtl"] .nav-sidebar .nav-link p {
|
||||||
display: inline-block;
|
display: inline-block !important;
|
||||||
margin-right: 0;
|
margin-right: 0 !important;
|
||||||
text-align: right;
|
text-align: right !important;
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fix sidebar angle icon (arrow) */
|
/* Fix sidebar angle icon (arrow) */
|
||||||
[dir="rtl"] .nav-sidebar .nav-icon.fa-angle-left {
|
[dir="rtl"] .nav-sidebar .nav-icon.fa-angle-left {
|
||||||
transform: rotate(180deg);
|
transform: rotate(180deg);
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
margin-right: auto !important; /* Push to the far left of the item (which is visually right?) No, row-reverse makes start=right. */
|
margin-right: auto !important; /* Push to the far left */
|
||||||
}
|
}
|
||||||
/* Actually, standard AdminLTE puts the arrow at the end.
|
|
||||||
With flex-direction: row-reverse, the "end" is the visual left.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* General Utils */
|
/* General Utils */
|
||||||
[dir="rtl"] .float-right {
|
[dir="rtl"] .float-right {
|
||||||
@ -359,4 +356,4 @@ body.model-platformprofile label[for="id_admin_panel_logo"] {
|
|||||||
}
|
}
|
||||||
[dir="rtl"] .text-left {
|
[dir="rtl"] .text-left {
|
||||||
text-align: right !important;
|
text-align: right !important;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user