lumen-plus 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/dist/theme-chalk/_index.scss +69 -0
- package/dist/theme-chalk/_reset.scss +16 -0
- package/dist/theme-chalk/_variables.scss +91 -0
- package/dist/theme-chalk/affix.scss +8 -0
- package/dist/theme-chalk/alert.scss +140 -0
- package/dist/theme-chalk/autocomplete.scss +238 -0
- package/dist/theme-chalk/avatar.scss +49 -0
- package/dist/theme-chalk/backtop.scss +55 -0
- package/dist/theme-chalk/badge.scss +47 -0
- package/dist/theme-chalk/breadcrumb.scss +50 -0
- package/dist/theme-chalk/button.scss +472 -0
- package/dist/theme-chalk/calendar.scss +166 -0
- package/dist/theme-chalk/card.scss +70 -0
- package/dist/theme-chalk/carousel.scss +167 -0
- package/dist/theme-chalk/cascader.scss +265 -0
- package/dist/theme-chalk/checkbox.scss +127 -0
- package/dist/theme-chalk/collapse.scss +100 -0
- package/dist/theme-chalk/color-picker.scss +247 -0
- package/dist/theme-chalk/container.scss +79 -0
- package/dist/theme-chalk/date-picker.scss +352 -0
- package/dist/theme-chalk/date-time-picker.scss +396 -0
- package/dist/theme-chalk/descriptions.scss +160 -0
- package/dist/theme-chalk/dialog.scss +154 -0
- package/dist/theme-chalk/divider.scss +61 -0
- package/dist/theme-chalk/drawer.scss +211 -0
- package/dist/theme-chalk/dropdown.scss +230 -0
- package/dist/theme-chalk/empty.scss +36 -0
- package/dist/theme-chalk/form.scss +187 -0
- package/dist/theme-chalk/icon.scss +16 -0
- package/dist/theme-chalk/image.scss +171 -0
- package/dist/theme-chalk/input-number.scss +229 -0
- package/dist/theme-chalk/input-tag.scss +119 -0
- package/dist/theme-chalk/input.scss +249 -0
- package/dist/theme-chalk/link.scss +28 -0
- package/dist/theme-chalk/loading.scss +68 -0
- package/dist/theme-chalk/menu.scss +239 -0
- package/dist/theme-chalk/message.scss +150 -0
- package/dist/theme-chalk/messagebox.scss +76 -0
- package/dist/theme-chalk/mixins/_bem.scss +103 -0
- package/dist/theme-chalk/mixins/_function.scss +12 -0
- package/dist/theme-chalk/notification.scss +164 -0
- package/dist/theme-chalk/pagination.scss +130 -0
- package/dist/theme-chalk/pin-input.scss +192 -0
- package/dist/theme-chalk/popconfirm.scss +194 -0
- package/dist/theme-chalk/popover.scss +196 -0
- package/dist/theme-chalk/progress.scss +51 -0
- package/dist/theme-chalk/radio.scss +128 -0
- package/dist/theme-chalk/rating.scss +227 -0
- package/dist/theme-chalk/result.scss +80 -0
- package/dist/theme-chalk/segmented.scss +108 -0
- package/dist/theme-chalk/select.scss +301 -0
- package/dist/theme-chalk/skeleton.scss +113 -0
- package/dist/theme-chalk/slider.scss +259 -0
- package/dist/theme-chalk/space.scss +44 -0
- package/dist/theme-chalk/statistic.scss +49 -0
- package/dist/theme-chalk/steps.scss +255 -0
- package/dist/theme-chalk/switch.scss +277 -0
- package/dist/theme-chalk/table.scss +343 -0
- package/dist/theme-chalk/tabs.scss +433 -0
- package/dist/theme-chalk/tag.scss +143 -0
- package/dist/theme-chalk/textarea.scss +125 -0
- package/dist/theme-chalk/time-picker.scss +321 -0
- package/dist/theme-chalk/timeline.scss +119 -0
- package/dist/theme-chalk/tooltip.scss +165 -0
- package/dist/theme-chalk/transfer.scss +219 -0
- package/dist/theme-chalk/tree-select.scss +384 -0
- package/dist/theme-chalk/tree.scss +101 -0
- package/dist/theme-chalk/upload.scss +457 -0
- package/dist/theme-chalk/watermark.scss +30 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/transitions.js +31 -0
- package/package.json +8 -2
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './mixins/bem' as *;
|
|
3
|
+
@use './mixins/function' as *;
|
|
4
|
+
|
|
5
|
+
@include b(checkbox) {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
user-select: none;
|
|
10
|
+
font-size: $font-size-base;
|
|
11
|
+
line-height: 1.5;
|
|
12
|
+
|
|
13
|
+
@include m(small) {
|
|
14
|
+
font-size: $font-size-small;
|
|
15
|
+
|
|
16
|
+
.#{$namespace}-checkbox__inner {
|
|
17
|
+
width: 14px;
|
|
18
|
+
height: 14px;
|
|
19
|
+
|
|
20
|
+
svg {
|
|
21
|
+
width: 10px;
|
|
22
|
+
height: 10px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include m(medium) {
|
|
28
|
+
.#{$namespace}-checkbox__inner {
|
|
29
|
+
width: 16px;
|
|
30
|
+
height: 16px;
|
|
31
|
+
|
|
32
|
+
svg {
|
|
33
|
+
width: 12px;
|
|
34
|
+
height: 12px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include m(large) {
|
|
40
|
+
font-size: $font-size-large;
|
|
41
|
+
|
|
42
|
+
.#{$namespace}-checkbox__inner {
|
|
43
|
+
width: 18px;
|
|
44
|
+
height: 18px;
|
|
45
|
+
|
|
46
|
+
svg {
|
|
47
|
+
width: 14px;
|
|
48
|
+
height: 14px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include when(checked) {
|
|
54
|
+
.#{$namespace}-checkbox__inner {
|
|
55
|
+
background-color: $color-primary;
|
|
56
|
+
border-color: $color-primary;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include when(disabled) {
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include when(indeterminate) {
|
|
66
|
+
.#{$namespace}-checkbox__inner {
|
|
67
|
+
background-color: $color-primary;
|
|
68
|
+
border-color: $color-primary;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@include e(input) {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include e(original) {
|
|
80
|
+
position: absolute;
|
|
81
|
+
opacity: 0;
|
|
82
|
+
width: 0;
|
|
83
|
+
height: 0;
|
|
84
|
+
margin: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include e(inner) {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
border: 1px solid $border-color-base;
|
|
92
|
+
border-radius: 4px;
|
|
93
|
+
background-color: $bg-color;
|
|
94
|
+
transition: border-color 0.2s, background-color 0.2s;
|
|
95
|
+
color: #fff;
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
border-color: $color-primary;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@include e(label) {
|
|
103
|
+
margin-left: 8px;
|
|
104
|
+
color: $color-text-primary;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dark {
|
|
109
|
+
.#{$namespace}-checkbox {
|
|
110
|
+
.#{$namespace}-checkbox__inner {
|
|
111
|
+
background-color: $bg-color-dark-light;
|
|
112
|
+
border-color: color-mix(in oklab, $bg-color-dark-lighter 70%, $color-text-dark-secondary);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.is-checked,
|
|
116
|
+
&.is-indeterminate {
|
|
117
|
+
.#{$namespace}-checkbox__inner {
|
|
118
|
+
background-color: $color-primary;
|
|
119
|
+
border-color: $color-primary;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.#{$namespace}-checkbox__label {
|
|
124
|
+
color: $color-text-dark;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './mixins/bem' as *;
|
|
3
|
+
|
|
4
|
+
@include b('collapse') {
|
|
5
|
+
border: 1px solid $border-color-lighter;
|
|
6
|
+
border-radius: $border-radius-base;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include b('collapse-item') {
|
|
11
|
+
&:not(:last-child) {
|
|
12
|
+
border-bottom: 1px solid $border-color-lighter;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include when('disabled') {
|
|
16
|
+
.#{$namespace}-collapse-item__header {
|
|
17
|
+
color: $color-text-disabled;
|
|
18
|
+
cursor: not-allowed;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include e('header') {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
padding: $spacing-base $spacing-large;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
background: $bg-color;
|
|
29
|
+
transition: background $transition-duration-fast;
|
|
30
|
+
outline: none;
|
|
31
|
+
|
|
32
|
+
&:focus-visible {
|
|
33
|
+
outline: 2px solid $color-primary;
|
|
34
|
+
outline-offset: -2px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include e('title') {
|
|
39
|
+
font-size: $font-size-base;
|
|
40
|
+
font-weight: $font-weight-primary;
|
|
41
|
+
color: $color-text-primary;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include e('arrow') {
|
|
45
|
+
color: $color-text-secondary;
|
|
46
|
+
transition: transform $transition-duration;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
|
|
50
|
+
&.is-active {
|
|
51
|
+
transform: rotate(90deg);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@include e('wrap') {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
height: 0;
|
|
58
|
+
transition: height $transition-duration;
|
|
59
|
+
will-change: height;
|
|
60
|
+
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
transition: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@include e('content') {
|
|
67
|
+
padding: $spacing-base $spacing-large;
|
|
68
|
+
color: $color-text-regular;
|
|
69
|
+
background: $bg-color;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dark {
|
|
74
|
+
.#{$namespace}-collapse {
|
|
75
|
+
border-color: $bg-color-dark-lighter;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.#{$namespace}-collapse-item {
|
|
79
|
+
&:not(:last-child) {
|
|
80
|
+
border-bottom-color: $bg-color-dark-lighter;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.#{$namespace}-collapse-item__header {
|
|
84
|
+
background: $bg-color-dark-light;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$namespace}-collapse-item__title {
|
|
88
|
+
color: $color-text-dark;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.#{$namespace}-collapse-item__arrow {
|
|
92
|
+
color: $color-text-dark-secondary;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.#{$namespace}-collapse-item__content {
|
|
96
|
+
background: $bg-color-dark-light;
|
|
97
|
+
color: $color-text-dark-secondary;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './mixins/bem' as *;
|
|
3
|
+
|
|
4
|
+
@include b('color-picker') {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
|
|
8
|
+
@include m('small') {
|
|
9
|
+
.#{$namespace}-color-picker__trigger {
|
|
10
|
+
width: 28px;
|
|
11
|
+
height: 28px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.#{$namespace}-color-picker__color {
|
|
15
|
+
width: 18px;
|
|
16
|
+
height: 18px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include m('default') {
|
|
21
|
+
.#{$namespace}-color-picker__trigger {
|
|
22
|
+
width: 36px;
|
|
23
|
+
height: 36px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$namespace}-color-picker__color {
|
|
27
|
+
width: 24px;
|
|
28
|
+
height: 24px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@include m('large') {
|
|
33
|
+
.#{$namespace}-color-picker__trigger {
|
|
34
|
+
width: 44px;
|
|
35
|
+
height: 44px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.#{$namespace}-color-picker__color {
|
|
39
|
+
width: 32px;
|
|
40
|
+
height: 32px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include when('disabled') {
|
|
45
|
+
.#{$namespace}-color-picker__trigger {
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
opacity: 0.6;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include e('trigger') {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
border: 1px solid $border-color-base;
|
|
56
|
+
border-radius: $border-radius-base;
|
|
57
|
+
background: $bg-color;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
transition: border-color $transition-duration-fast;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
border-color: #c0c4cc;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.is-focus {
|
|
66
|
+
border-color: $color-primary;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@include e('color') {
|
|
71
|
+
border-radius: $border-radius-small;
|
|
72
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include e('icon') {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include e('dropdown') {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 100%;
|
|
82
|
+
left: 0;
|
|
83
|
+
margin-top: 8px;
|
|
84
|
+
padding: 12px;
|
|
85
|
+
background: $bg-color;
|
|
86
|
+
border: 1px solid $border-color-lighter;
|
|
87
|
+
border-radius: $border-radius-base;
|
|
88
|
+
box-shadow: $box-shadow-light;
|
|
89
|
+
z-index: $z-index-popper;
|
|
90
|
+
transform-origin: top left;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@include e('panel') {
|
|
94
|
+
width: 200px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include e('input') {
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 150px;
|
|
100
|
+
border: none;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@include e('predefine') {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
gap: 6px;
|
|
108
|
+
margin-top: 12px;
|
|
109
|
+
padding-top: 12px;
|
|
110
|
+
border-top: 1px solid $border-color-lighter;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include e('predefine-color') {
|
|
114
|
+
width: 20px;
|
|
115
|
+
height: 20px;
|
|
116
|
+
border-radius: $border-radius-small;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
119
|
+
transition: transform $transition-duration-fast;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
transform: scale(1.1);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.is-active {
|
|
126
|
+
box-shadow: 0 0 0 2px $color-primary;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include e('hex') {
|
|
131
|
+
flex: 1;
|
|
132
|
+
min-width: 0;
|
|
133
|
+
height: 28px;
|
|
134
|
+
padding: 0 8px;
|
|
135
|
+
border: 1px solid $border-color-base;
|
|
136
|
+
border-radius: $border-radius-base;
|
|
137
|
+
font-size: $font-size-small;
|
|
138
|
+
text-align: center;
|
|
139
|
+
outline: none;
|
|
140
|
+
|
|
141
|
+
&:focus {
|
|
142
|
+
border-color: $color-primary;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@include e('footer') {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
gap: 8px;
|
|
150
|
+
margin-top: 12px;
|
|
151
|
+
padding-top: 12px;
|
|
152
|
+
border-top: 1px solid $border-color-lighter;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@include e('btn') {
|
|
156
|
+
height: 28px;
|
|
157
|
+
padding: 0 12px;
|
|
158
|
+
border: 1px solid $border-color-base;
|
|
159
|
+
border-radius: $border-radius-base;
|
|
160
|
+
background: $bg-color;
|
|
161
|
+
color: $color-text-primary;
|
|
162
|
+
font-size: $font-size-small;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
transition: background-color $transition-duration-fast, border-color $transition-duration-fast, color $transition-duration-fast;
|
|
165
|
+
|
|
166
|
+
&:hover {
|
|
167
|
+
border-color: $color-primary-light;
|
|
168
|
+
color: $color-primary;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&--cancel {
|
|
172
|
+
border-color: transparent;
|
|
173
|
+
background: transparent;
|
|
174
|
+
|
|
175
|
+
&:hover {
|
|
176
|
+
border-color: transparent;
|
|
177
|
+
background: transparent;
|
|
178
|
+
color: $color-primary;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&--confirm {
|
|
183
|
+
background: $color-primary;
|
|
184
|
+
border-color: $color-primary;
|
|
185
|
+
color: #fff;
|
|
186
|
+
|
|
187
|
+
&:hover {
|
|
188
|
+
background: $color-primary-light;
|
|
189
|
+
border-color: $color-primary-light;
|
|
190
|
+
color: #fff;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.dark {
|
|
197
|
+
.#{$namespace}-color-picker {
|
|
198
|
+
.#{$namespace}-color-picker__trigger {
|
|
199
|
+
background: $bg-color-dark-light;
|
|
200
|
+
border-color: $bg-color-dark-lighter;
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
border-color: color-mix(in oklab, $bg-color-dark-lighter 60%, $color-text-dark);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.is-focus {
|
|
207
|
+
border-color: $color-primary;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.#{$namespace}-color-picker__dropdown {
|
|
212
|
+
background: $bg-color-dark-light;
|
|
213
|
+
border-color: $bg-color-dark-lighter;
|
|
214
|
+
box-shadow: $box-shadow-dark;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.#{$namespace}-color-picker__predefine,
|
|
218
|
+
.#{$namespace}-color-picker__footer {
|
|
219
|
+
border-top-color: $bg-color-dark-lighter;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.#{$namespace}-color-picker__hex {
|
|
223
|
+
background: $bg-color-dark-light;
|
|
224
|
+
border-color: $bg-color-dark-lighter;
|
|
225
|
+
color: $color-text-dark;
|
|
226
|
+
|
|
227
|
+
&:focus {
|
|
228
|
+
border-color: $color-primary;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.#{$namespace}-color-picker__btn {
|
|
233
|
+
background: $bg-color-dark-light;
|
|
234
|
+
border-color: $bg-color-dark-lighter;
|
|
235
|
+
color: $color-text-dark;
|
|
236
|
+
|
|
237
|
+
&:hover {
|
|
238
|
+
border-color: rgba($color-text-dark, 0.35);
|
|
239
|
+
color: $color-primary;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&--cancel {
|
|
243
|
+
color: $color-text-dark-secondary;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './mixins/bem' as *;
|
|
3
|
+
|
|
4
|
+
@include b('container') {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
flex: 1;
|
|
8
|
+
flex-basis: 0;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
|
|
11
|
+
@include when('horizontal') {
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
flex-wrap: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 顶级容器(未被其他容器嵌套) */
|
|
17
|
+
&:not(.lm-container .lm-container) {
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include b('header') {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: flex-end;
|
|
26
|
+
gap: 16px;
|
|
27
|
+
background-color: $bg-color;
|
|
28
|
+
color: $color-text;
|
|
29
|
+
// padding: 0 20px;
|
|
30
|
+
height: 60px;
|
|
31
|
+
border-bottom: $border-width $border-style $border-color-light;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include b('footer') {
|
|
35
|
+
background-color: $bg-color;
|
|
36
|
+
color: $color-text;
|
|
37
|
+
text-align: center;
|
|
38
|
+
padding: $spacing-base;
|
|
39
|
+
margin-top: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include b('aside') {
|
|
43
|
+
background-color: $bg-color;
|
|
44
|
+
color: $color-text;
|
|
45
|
+
text-align: left;
|
|
46
|
+
padding: $spacing-base;
|
|
47
|
+
border-right: $border-width $border-style $border-color-light;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include b('main') {
|
|
51
|
+
color: $color-text;
|
|
52
|
+
padding: $spacing-base;
|
|
53
|
+
flex: 1;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dark {
|
|
59
|
+
.#{$namespace}-header,
|
|
60
|
+
.#{$namespace}-footer {
|
|
61
|
+
background-color: $bg-color-dark-light;
|
|
62
|
+
color: $color-text-dark;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$namespace}-header {
|
|
66
|
+
border-bottom-color: $bg-color-dark-overlay;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.#{$namespace}-aside {
|
|
70
|
+
background-color: $bg-color-dark-light;
|
|
71
|
+
color: $color-text-dark;
|
|
72
|
+
border-right-color: $bg-color-dark-overlay;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$namespace}-main {
|
|
76
|
+
background-color: $bg-color-dark-light;
|
|
77
|
+
color: $color-text-dark;
|
|
78
|
+
}
|
|
79
|
+
}
|