Skip to content

Commit ead5e07

Browse files
committed
fix: wrong margins when sidebar has .sidebar-overlaid class
1 parent a6f301e commit ead5e07

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scss/sidebar/_sidebar.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,21 @@
105105
bottom: 0;
106106
z-index: $zindex-fixed + 2;
107107

108+
&:not(.hide) {
109+
box-shadow: $box-shadow;
110+
}
111+
108112
&:not(.sidebar-end) {
109113
@include ltr-rtl("left", 0);
110114
~ * {
111-
--#{$prefix}sidebar-occupy-start: 0;
115+
--#{$prefix}sidebar-occupy-start: 0 !important; // stylelint-disable-line
112116
}
113117
}
114118

115119
&.sidebar-end {
116120
@include ltr-rtl("right", 0);
117121
~ * {
118-
--#{$prefix}sidebar-occupy-end: 0;
122+
--#{$prefix}sidebar-occupy-end: 0 !important; // stylelint-disable-line
119123
}
120124
}
121125
}

0 commit comments

Comments
 (0)