Skip to content

Commit 8117e81

Browse files
committed
fix: sidebar position on mobile devices when rtl is active
1 parent d08fd90 commit 8117e81

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

scss/_sidebar.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,21 @@
2020
bottom: 0;
2121
z-index: $zindex-fixed + 1;
2222

23-
&:not(.c-sidebar-right){
24-
left: 0;
23+
@include ltr {
24+
&:not(.c-sidebar-right){
25+
left: 0;
26+
}
27+
&.c-sidebar-right {
28+
right: 0;
29+
}
2530
}
26-
&.c-sidebar-right {
27-
right: 0;
31+
@include rtl {
32+
&:not(.c-sidebar-right){
33+
right: 0;
34+
}
35+
&.c-sidebar-right {
36+
left: 0;
37+
}
2838
}
2939
}
3040

0 commit comments

Comments
 (0)