Skip to content

Commit e1cb24c

Browse files
committed
refactor: change .sidebar-right to .sidebar-end
1 parent 5cf8f7a commit e1cb24c

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

scss/sidebar/_sidebar-narrow.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444
}
4545

46-
&.sidebar-right .sidebar-toggler::before {
46+
&.sidebar-end .sidebar-toggler::before {
4747
transform: rotate(0deg);
4848
}
4949
}
@@ -75,7 +75,7 @@
7575
}
7676
}
7777

78-
&.sidebar-right .sidebar-toggler::before {
78+
&.sidebar-end .sidebar-toggler::before {
7979
transform: rotate(0deg);
8080
}
8181
}
@@ -88,10 +88,10 @@
8888
.sidebar:not(.show).sidebar-self-hiding#{$infix} {
8989
&.sidebar-narrow,
9090
&.sidebar-narrow-unfoldable {
91-
&:not(.sidebar-right) {
91+
&:not(.sidebar-end) {
9292
@include ltr-rtl("margin-left", - $sidebar-narrow-width);
9393
}
94-
&.sidebar-right {
94+
&.sidebar-end {
9595
@include ltr-rtl("margin-right", - $sidebar-narrow-width);
9696
}
9797
}
@@ -105,7 +105,7 @@
105105
// $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
106106
// .sidebar.sidebar#{$infix}-show,
107107
// .sidebar.sidebar-show {
108-
// &:not(.sidebar-right){
108+
// &:not(.sidebar-end){
109109
// margin-left: 0;
110110
// @include media-breakpoint-up($mobile-breakpoint) {
111111
// &.sidebar-fixed {
@@ -118,7 +118,7 @@
118118
// }
119119
// }
120120
// }
121-
// &.sidebar-right {
121+
// &.sidebar-end {
122122
// margin-right: 0;
123123
// @include media-breakpoint-up($mobile-breakpoint) {
124124
// &.sidebar-fixed {

scss/sidebar/_sidebar.scss

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
bottom: 0;
3131
z-index: $zindex-fixed + 1;
3232

33-
&:not(.sidebar-right){
33+
&:not(.sidebar-end){
3434
@include ltr-rtl("left", 0);
3535
}
36-
&.sidebar-right {
36+
&.sidebar-end {
3737
@include ltr-rtl("right", 0);
3838
}
3939

@@ -42,11 +42,11 @@
4242
}
4343
}
4444

45-
&:not(.sidebar-right){
45+
&:not(.sidebar-end){
4646
@include ltr-rtl("margin-left", 0);
4747
}
4848

49-
&.sidebar-right {
49+
&.sidebar-end {
5050
order: 99;
5151
@include ltr-rtl("margin-right", 0);
5252

@@ -57,10 +57,10 @@
5757
}
5858

5959
&.hide {
60-
&:not(.sidebar-right){
60+
&:not(.sidebar-end){
6161
@include ltr-rtl("margin-left", - $sidebar-width);
6262
}
63-
&.sidebar-right {
63+
&.sidebar-end {
6464
@include ltr-rtl("margin-right", - $sidebar-width);
6565
}
6666

@@ -78,10 +78,10 @@
7878
--#{$variable-prefix}sidebar-occupy: #{$value};
7979
}
8080

81-
&:not(.sidebar-right).hide {
81+
&:not(.sidebar-end).hide {
8282
@include ltr-rtl("margin-left", - $value);
8383
}
84-
&.sidebar-right.hide {
84+
&.sidebar-end.hide {
8585
@include ltr-rtl("margin-right", - $value);
8686
}
8787
}
@@ -94,11 +94,11 @@
9494
bottom: 0;
9595
z-index: $zindex-fixed;
9696

97-
&:not(.sidebar-right) {
97+
&:not(.sidebar-end) {
9898
@include ltr-rtl("left", 0);
9999
}
100100

101-
&.sidebar-right {
101+
&.sidebar-end {
102102
@include ltr-rtl("right", 0);
103103
}
104104
}
@@ -118,11 +118,11 @@
118118
bottom: 0;
119119
z-index: $zindex-fixed + 2;
120120

121-
&:not(.sidebar-right) {
121+
&:not(.sidebar-end) {
122122
@include ltr-rtl("left", 0);
123123
}
124124

125-
&.sidebar-right {
125+
&.sidebar-end {
126126
@include ltr-rtl("right", 0);
127127
}
128128
}
@@ -221,7 +221,7 @@
221221
}
222222
}
223223

224-
.sidebar-right & {
224+
.sidebar-end & {
225225
justify-content: flex-start;
226226
&::before {
227227
transform: rotate(-180deg);
@@ -252,7 +252,7 @@
252252
@include media-breakpoint-down($breakpoint) {
253253
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
254254
.sidebar:not(.show).sidebar-self-hiding#{$infix} {
255-
&:not(.sidebar-right) {
255+
&:not(.sidebar-end) {
256256
@include ltr-rtl("margin-left", - $sidebar-width);
257257

258258
@each $width, $value in $sidebar-widths {
@@ -261,7 +261,7 @@
261261
}
262262
}
263263
}
264-
&.sidebar-right {
264+
&.sidebar-end {
265265
@include ltr-rtl("margin-right", - $sidebar-width);
266266

267267
@each $width, $value in $sidebar-widths {

0 commit comments

Comments
 (0)