Skip to content

Commit 607f039

Browse files
committed
fix(Sidebar): emit wrong size to siblings
1 parent 7baa0b1 commit 607f039

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

scss/sidebar/_sidebar.scss

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,32 @@
3333
border-color: rgba($black, .1);
3434
}
3535

36-
&.hide {
37-
&:not(.sidebar-end){
38-
@include ltr-rtl("margin-left", - $sidebar-width);
39-
~ * {
40-
--#{$variable-prefix}sidebar-occupy-start: 0;
41-
}
42-
}
43-
&.sidebar-end {
44-
@include ltr-rtl("margin-right", - $sidebar-width);
45-
~ * {
46-
--#{$variable-prefix}sidebar-occupy-end: 0;
47-
}
48-
}
49-
}
36+
// &.hide {
37+
// &:not(.sidebar-end){
38+
// @include ltr-rtl("margin-left", - $sidebar-width);
39+
// ~ * {
40+
// --#{$variable-prefix}sidebar-occupy-start: 0;
41+
// }
42+
// }
43+
// &.sidebar-end {
44+
// @include ltr-rtl("margin-right", - $sidebar-width);
45+
// ~ * {
46+
// --#{$variable-prefix}sidebar-occupy-end: 0;
47+
// }
48+
// }
49+
// }
5050

5151
@each $width, $value in $sidebar-widths {
5252
&.sidebar-#{$width} {
5353
flex: 0 0 $value;
5454
width: $value;
5555

56-
&:not(.sidebar-end).hide {
57-
@include ltr-rtl("margin-left", - $value);
56+
&:not(.sidebar-end) {
5857
~ * {
5958
--#{$variable-prefix}sidebar-occupy-start: #{$value};
6059
}
6160
}
62-
&.sidebar-end.hide {
63-
@include ltr-rtl("margin-right", - $value);
61+
&.sidebar-end {
6462
~ * {
6563
--#{$variable-prefix}sidebar-occupy-end: #{$value};
6664
}

0 commit comments

Comments
 (0)