File tree 2 files changed +14
-18
lines changed 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 2
2
@use " @coreui/coreui/scss/variables" as * with (
3
3
$enable-deprecation-messages : false
4
4
);
5
- @use " @coreui/coreui/scss/mixins" as * ;
5
+ @use " @coreui/coreui/scss/mixins/breakpoints" as * ;
6
+ @use " @coreui/coreui/scss/mixins/color-mode" as * ;
6
7
7
8
.example {
8
9
& :not (:first-child ) {
106
107
}
107
108
}
108
109
109
- @if $enable-dark-mode {
110
- @include color-mode (dark ) {
111
- .example .tab-content {
112
- background-color : var (--#{$prefix}secondary-bg ) !important ;
113
- }
110
+ @include color-mode (dark ) {
111
+ .example .tab-content {
112
+ background-color : var (--#{$prefix}secondary-bg ) !important ;
114
113
}
115
114
}
Original file line number Diff line number Diff line change 9
9
10
10
.wrapper {
11
11
width : 100% ;
12
- @include ltr-rtl (" padding-left" , var (--cui-sidebar-occupy-start , 0 ));
13
- @include ltr-rtl (" padding-right" , var (--cui-sidebar-occupy-end , 0 ));
12
+ padding-inline : var (--cui-sidebar-occupy-start , 0 ) var (--cui-sidebar-occupy-end , 0 );
14
13
will-change : auto ;
15
14
@include transition (padding .15s );
16
15
}
@@ -38,13 +37,13 @@ body {
38
37
}
39
38
40
39
.sidebar-toggler {
41
- @include ltr-rtl ( " margin-left " , auto ) ;
40
+ margin-inline-start : auto ;
42
41
}
43
42
44
43
.sidebar-narrow ,
45
44
.sidebar-narrow-unfoldable :not (:hover ) {
46
45
.sidebar-toggler {
47
- @include ltr-rtl ( " margin-right " , auto ) ;
46
+ margin-inline-end : auto ;
48
47
}
49
48
}
50
49
@@ -56,14 +55,12 @@ body {
56
55
min-height : calc (3rem + 1px ); // stylelint-disable-line function-disallowed-list
57
56
}
58
57
59
- @if $enable-dark-mode {
60
- @include color-mode (dark ) {
61
- body {
62
- background-color : var (--cui-dark-bg-subtle );
63
- }
58
+ @include color-mode (dark ) {
59
+ body {
60
+ background-color : var (--cui-dark-bg-subtle );
61
+ }
64
62
65
- .footer {
66
- --cui-footer-bg : var (--cui-body-bg );
67
- }
63
+ .footer {
64
+ --cui-footer-bg : var (--cui-body-bg );
68
65
}
69
66
}
You can’t perform that action at this time.
0 commit comments