Skip to content

Commit 5a72efb

Browse files
committed
refactor(sidebar): update mobile sidebar width
1 parent b48ce0e commit 5a72efb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

scss/sidebar/_sidebar.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@
3838
@each $width, $value in $sidebar-widths {
3939
&.sidebar-#{$width} {
4040
--#{$variable-prefix}sidebar-width: #{$value};
41-
&:not(.sidebar-end) {
42-
~ * {
43-
--#{$variable-prefix}sidebar-occupy-start: #{$value};
41+
@include media-breakpoint-up($mobile-breakpoint) {
42+
&:not(.sidebar-end):not(.hide) {
43+
~ * {
44+
--#{$variable-prefix}sidebar-occupy-start: #{$value};
45+
}
4446
}
45-
}
46-
&.sidebar-end {
47-
~ * {
48-
--#{$variable-prefix}sidebar-occupy-end: #{$value};
47+
&.sidebar-end:not(.hide) {
48+
~ * {
49+
--#{$variable-prefix}sidebar-occupy-end: #{$value};
50+
}
4951
}
5052
}
5153
}

0 commit comments

Comments
 (0)