Skip to content

Commit 2ed9190

Browse files
committed
refactor: don't emit occupy if .sidebar-overlaid
1 parent 1762908 commit 2ed9190

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scss/sidebar/_sidebar.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
box-shadow: none;
1515
@include transition($sidebar-transition);
1616

17-
~ * {
17+
&:not(.sidebar-overlaid) ~ * {
1818
--#{$variable-prefix}sidebar-occupy: #{$sidebar-width};
1919
}
2020

@@ -66,7 +66,7 @@
6666
margin-right: - $sidebar-width;
6767
}
6868

69-
~ * {
69+
&:not(.sidebar-overlaid) ~ * {
7070
--#{$variable-prefix}sidebar-occupy: 0;
7171
}
7272
}
@@ -76,7 +76,7 @@
7676
flex: 0 0 $value;
7777
width: $value;
7878

79-
~ * {
79+
&:not(.sidebar-overlaid) ~ * {
8080
--#{$variable-prefix}sidebar-occupy: #{$value};
8181
}
8282

@@ -95,6 +95,7 @@
9595
top: 0;
9696
bottom: 0;
9797
z-index: $zindex-fixed;
98+
@include elevation(2);
9899

99100
&:not(.sidebar-right) {
100101
left: 0;
@@ -119,6 +120,7 @@
119120
top: 0;
120121
bottom: 0;
121122
z-index: $zindex-fixed + 2;
123+
@include elevation(3);
122124

123125
&:not(.sidebar-right) {
124126
left: 0;
@@ -269,7 +271,7 @@
269271
}
270272
}
271273
}
272-
~ * {
274+
&:not(.sidebar-overlaid) ~ * {
273275
--#{$variable-prefix}sidebar-occupy: 0;
274276
}
275277
}

0 commit comments

Comments
 (0)