Skip to content

Commit f12f10e

Browse files
committed
fix(Sidebar): emit proper occupy size for .sidebar-{sm|lg|xl} when the sidebar is narrow
1 parent e7fd560 commit f12f10e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scss/sidebar/_sidebar-narrow.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
.sidebar-narrow {
6363
@extend %sidebar-narrow;
6464
&:not(.sidebar-end) ~ * {
65-
--#{$prefix}sidebar-occupy-start: #{$sidebar-narrow-width};
65+
--#{$prefix}sidebar-occupy-start: #{$sidebar-narrow-width} !important; // stylelint-disable-line declaration-no-important
6666
}
6767
&.sidebar-end ~ * {
68-
--#{$prefix}sidebar-occupy-end: #{$sidebar-narrow-width};
68+
--#{$prefix}sidebar-occupy-end: #{$sidebar-narrow-width} !important; // stylelint-disable-line declaration-no-important
6969
}
7070

7171
.nav-link {
@@ -77,10 +77,10 @@
7777
position: fixed;
7878

7979
&:not(.sidebar-end) ~ * {
80-
--#{$prefix}sidebar-occupy-start: #{$sidebar-narrow-width};
80+
--#{$prefix}sidebar-occupy-start: #{$sidebar-narrow-width} !important; // stylelint-disable-line declaration-no-important
8181
}
8282
&.sidebar-end ~ * {
83-
--#{$prefix}sidebar-occupy-end: #{$sidebar-narrow-width};
83+
--#{$prefix}sidebar-occupy-end: #{$sidebar-narrow-width} !important; // stylelint-disable-line declaration-no-important
8484
}
8585

8686
&:not(:hover) {

0 commit comments

Comments
 (0)