Skip to content

Commit 74b0aaf

Browse files
committed
refactor: migrate to CSS logical properties and values
1 parent 6374dae commit 74b0aaf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/scss/_theme.scss

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ body {
44

55
.wrapper {
66
width: 100%;
7-
@include ltr-rtl("padding-left", var(--cui-sidebar-occupy-start, 0));
8-
@include ltr-rtl("padding-right", var(--cui-sidebar-occupy-end, 0));
7+
padding-inline: var(--cui-sidebar-occupy-start, 0) var(--cui-sidebar-occupy-end, 0);
98
will-change: auto;
109
@include transition(padding .15s);
1110
}
@@ -33,13 +32,13 @@ body {
3332
}
3433

3534
.sidebar-toggler {
36-
@include ltr-rtl("margin-left", auto);
35+
margin-inline-start: auto;
3736
}
3837

3938
.sidebar-narrow,
4039
.sidebar-narrow-unfoldable:not(:hover) {
4140
.sidebar-toggler {
42-
@include ltr-rtl("margin-right", auto);
41+
margin-inline-end: auto
4342
}
4443
}
4544

0 commit comments

Comments
 (0)