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.
Files changed (73) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/theme-chalk/_index.scss +69 -0
  3. package/dist/theme-chalk/_reset.scss +16 -0
  4. package/dist/theme-chalk/_variables.scss +91 -0
  5. package/dist/theme-chalk/affix.scss +8 -0
  6. package/dist/theme-chalk/alert.scss +140 -0
  7. package/dist/theme-chalk/autocomplete.scss +238 -0
  8. package/dist/theme-chalk/avatar.scss +49 -0
  9. package/dist/theme-chalk/backtop.scss +55 -0
  10. package/dist/theme-chalk/badge.scss +47 -0
  11. package/dist/theme-chalk/breadcrumb.scss +50 -0
  12. package/dist/theme-chalk/button.scss +472 -0
  13. package/dist/theme-chalk/calendar.scss +166 -0
  14. package/dist/theme-chalk/card.scss +70 -0
  15. package/dist/theme-chalk/carousel.scss +167 -0
  16. package/dist/theme-chalk/cascader.scss +265 -0
  17. package/dist/theme-chalk/checkbox.scss +127 -0
  18. package/dist/theme-chalk/collapse.scss +100 -0
  19. package/dist/theme-chalk/color-picker.scss +247 -0
  20. package/dist/theme-chalk/container.scss +79 -0
  21. package/dist/theme-chalk/date-picker.scss +352 -0
  22. package/dist/theme-chalk/date-time-picker.scss +396 -0
  23. package/dist/theme-chalk/descriptions.scss +160 -0
  24. package/dist/theme-chalk/dialog.scss +154 -0
  25. package/dist/theme-chalk/divider.scss +61 -0
  26. package/dist/theme-chalk/drawer.scss +211 -0
  27. package/dist/theme-chalk/dropdown.scss +230 -0
  28. package/dist/theme-chalk/empty.scss +36 -0
  29. package/dist/theme-chalk/form.scss +187 -0
  30. package/dist/theme-chalk/icon.scss +16 -0
  31. package/dist/theme-chalk/image.scss +171 -0
  32. package/dist/theme-chalk/input-number.scss +229 -0
  33. package/dist/theme-chalk/input-tag.scss +119 -0
  34. package/dist/theme-chalk/input.scss +249 -0
  35. package/dist/theme-chalk/link.scss +28 -0
  36. package/dist/theme-chalk/loading.scss +68 -0
  37. package/dist/theme-chalk/menu.scss +239 -0
  38. package/dist/theme-chalk/message.scss +150 -0
  39. package/dist/theme-chalk/messagebox.scss +76 -0
  40. package/dist/theme-chalk/mixins/_bem.scss +103 -0
  41. package/dist/theme-chalk/mixins/_function.scss +12 -0
  42. package/dist/theme-chalk/notification.scss +164 -0
  43. package/dist/theme-chalk/pagination.scss +130 -0
  44. package/dist/theme-chalk/pin-input.scss +192 -0
  45. package/dist/theme-chalk/popconfirm.scss +194 -0
  46. package/dist/theme-chalk/popover.scss +196 -0
  47. package/dist/theme-chalk/progress.scss +51 -0
  48. package/dist/theme-chalk/radio.scss +128 -0
  49. package/dist/theme-chalk/rating.scss +227 -0
  50. package/dist/theme-chalk/result.scss +80 -0
  51. package/dist/theme-chalk/segmented.scss +108 -0
  52. package/dist/theme-chalk/select.scss +301 -0
  53. package/dist/theme-chalk/skeleton.scss +113 -0
  54. package/dist/theme-chalk/slider.scss +259 -0
  55. package/dist/theme-chalk/space.scss +44 -0
  56. package/dist/theme-chalk/statistic.scss +49 -0
  57. package/dist/theme-chalk/steps.scss +255 -0
  58. package/dist/theme-chalk/switch.scss +277 -0
  59. package/dist/theme-chalk/table.scss +343 -0
  60. package/dist/theme-chalk/tabs.scss +433 -0
  61. package/dist/theme-chalk/tag.scss +143 -0
  62. package/dist/theme-chalk/textarea.scss +125 -0
  63. package/dist/theme-chalk/time-picker.scss +321 -0
  64. package/dist/theme-chalk/timeline.scss +119 -0
  65. package/dist/theme-chalk/tooltip.scss +165 -0
  66. package/dist/theme-chalk/transfer.scss +219 -0
  67. package/dist/theme-chalk/tree-select.scss +384 -0
  68. package/dist/theme-chalk/tree.scss +101 -0
  69. package/dist/theme-chalk/upload.scss +457 -0
  70. package/dist/theme-chalk/watermark.scss +30 -0
  71. package/dist/utils/index.js +1 -0
  72. package/dist/utils/transitions.js +31 -0
  73. package/package.json +8 -2
@@ -0,0 +1,301 @@
1
+ @use './variables' as *;
2
+ @use './mixins/bem' as *;
3
+
4
+ @include b('select') {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: 220px;
8
+ max-width: 100%;
9
+ font-size: $font-size-base;
10
+
11
+ @include m('small') {
12
+ font-size: $font-size-small;
13
+ .#{$namespace}-select__trigger {
14
+ height: 28px;
15
+ }
16
+ }
17
+
18
+ @include m('default') {
19
+ font-size: $font-size-base;
20
+ .#{$namespace}-select__trigger {
21
+ height: 32px;
22
+ }
23
+ }
24
+
25
+ @include m('large') {
26
+ font-size: $font-size-medium;
27
+ .#{$namespace}-select__trigger {
28
+ height: 40px;
29
+ }
30
+ }
31
+
32
+ @include when('focus') {
33
+ .#{$namespace}-select__trigger {
34
+ border-color: $color-primary;
35
+ }
36
+ }
37
+
38
+ @include when('disabled') {
39
+ .#{$namespace}-select__trigger {
40
+ background: $bg-color-page;
41
+ cursor: not-allowed;
42
+ color: $color-text-disabled;
43
+ }
44
+ }
45
+
46
+ @include e('trigger') {
47
+ display: flex;
48
+ align-items: center;
49
+ width: 100%;
50
+ padding: 0 12px;
51
+ border: 1px solid $border-color-base;
52
+ border-radius: $border-radius-base;
53
+ background: $bg-color;
54
+ cursor: pointer;
55
+ font-weight: inherit;
56
+ line-height: 1;
57
+ transition: border-color $transition-duration-fast;
58
+ outline: none;
59
+ text-align: left;
60
+
61
+ &:hover {
62
+ border-color: #c0c4cc;
63
+ }
64
+
65
+ &:focus {
66
+ border-color: $color-primary;
67
+ }
68
+
69
+ &[aria-disabled='true'] {
70
+ background: $bg-color-page;
71
+ cursor: not-allowed;
72
+ color: $color-text-disabled;
73
+
74
+ &:hover {
75
+ border-color: $border-color-base;
76
+ }
77
+ }
78
+ }
79
+
80
+ @include e('value') {
81
+ flex: 1;
82
+ overflow: hidden;
83
+ text-overflow: ellipsis;
84
+ white-space: nowrap;
85
+ color: $color-text-primary;
86
+
87
+ &.is-placeholder {
88
+ color: $color-text-placeholder;
89
+ }
90
+ }
91
+
92
+ @include e('input') {
93
+ flex: 1;
94
+ min-width: 0;
95
+ height: 100%;
96
+ padding: 0;
97
+ margin: 0;
98
+ border: none;
99
+ outline: none;
100
+ background: transparent;
101
+ font-size: inherit;
102
+ font-weight: inherit;
103
+ line-height: inherit;
104
+ color: $color-text-primary;
105
+
106
+ &::placeholder {
107
+ color: $color-text-placeholder;
108
+ }
109
+ }
110
+
111
+ @include e('suffix') {
112
+ display: flex;
113
+ align-items: center;
114
+ margin-left: 8px;
115
+ color: $color-text-secondary;
116
+ }
117
+
118
+ @include e('arrow') {
119
+ transition: transform $transition-duration-fast;
120
+
121
+ &.is-reverse {
122
+ transform: rotate(180deg);
123
+ }
124
+ }
125
+
126
+ @include e('clear') {
127
+ cursor: pointer;
128
+ display: flex;
129
+ align-items: center;
130
+ padding: 0;
131
+ border: none;
132
+ background: transparent;
133
+ color: inherit;
134
+
135
+ &:hover {
136
+ color: $color-text-primary;
137
+ }
138
+ }
139
+
140
+ @include e('dropdown') {
141
+ position: absolute;
142
+ top: 100%;
143
+ left: 0;
144
+ right: 0;
145
+ margin-top: 12px;
146
+ padding: 7px 0;
147
+ // Arrow variables
148
+ --l-select-bg: #{$bg-color};
149
+ --l-select-border: #{$border-color-lighter};
150
+ --arrow-size: 10px;
151
+
152
+ background: var(--l-select-bg);
153
+ border: 1px solid var(--l-select-border);
154
+ border-radius: $border-radius-base;
155
+ box-shadow: $box-shadow-light;
156
+ z-index: $z-index-popper;
157
+ overflow: visible;
158
+ font-size: inherit;
159
+ transform-origin: top;
160
+ }
161
+
162
+ @include e('menu-content') {
163
+ max-height: 274px;
164
+ overflow-y: auto;
165
+ }
166
+
167
+ @include e('menu-arrow') {
168
+ position: absolute;
169
+ width: var(--arrow-size);
170
+ height: var(--arrow-size);
171
+ z-index: -1;
172
+ pointer-events: none;
173
+
174
+ top: calc(-1 * (var(--arrow-size) * 0.55) + 1px);
175
+ left: 50%;
176
+ margin-left: calc(-1 * (var(--arrow-size) / 2));
177
+
178
+ &::before {
179
+ content: '';
180
+ position: absolute;
181
+ inset: 0;
182
+ width: 100%;
183
+ height: 100%;
184
+ background: var(--l-select-bg);
185
+ transform: rotate(45deg);
186
+ border-radius: calc(var(--arrow-size) * 0.2);
187
+ box-shadow: -1px -1px 0 0 var(--l-select-border);
188
+ }
189
+ }
190
+
191
+ @include e('option') {
192
+ display: block;
193
+ width: 100%;
194
+ padding: 10px 12px;
195
+ border: none;
196
+ background: transparent;
197
+ cursor: pointer;
198
+ transition: background $transition-duration-fast;
199
+ color: $color-text-primary;
200
+ text-align: left;
201
+ font-size: inherit;
202
+
203
+ &:hover:not(:disabled) {
204
+ background: $bg-color-page;
205
+ }
206
+
207
+ &.is-selected {
208
+ color: $color-primary;
209
+ font-weight: inherit;
210
+ }
211
+
212
+ &:disabled {
213
+ color: $color-text-disabled;
214
+ cursor: not-allowed;
215
+
216
+ &:hover {
217
+ background: transparent;
218
+ }
219
+ }
220
+ }
221
+
222
+ @include e('empty') {
223
+ padding: 12px;
224
+ text-align: center;
225
+ color: $color-text-secondary;
226
+ font-size: $font-size-small;
227
+ }
228
+ }
229
+
230
+ .dark {
231
+ .#{$namespace}-select {
232
+ &.is-disabled {
233
+ .#{$namespace}-select__trigger {
234
+ background: $bg-color-dark-lighter;
235
+ color: $color-text-dark-secondary;
236
+ border-color: color-mix(in oklab, #{$bg-color-dark-lighter} 86%, #{$color-text-dark});
237
+ }
238
+ }
239
+
240
+ .#{$namespace}-select__trigger {
241
+ background: $bg-color-dark-light;
242
+ border-color: color-mix(in oklab, #{$bg-color-dark-lighter} 78%, #{$color-text-dark});
243
+
244
+ &:hover {
245
+ border-color: color-mix(in oklab, #{$bg-color-dark-lighter} 60%, #{$color-text-dark});
246
+ }
247
+
248
+ &:focus {
249
+ border-color: $color-primary;
250
+ }
251
+ }
252
+
253
+ &.is-focus .#{$namespace}-select__trigger {
254
+ border-color: $color-primary;
255
+ }
256
+
257
+ .#{$namespace}-select__value,
258
+ .#{$namespace}-select__input {
259
+ color: $color-text-dark;
260
+
261
+ &.is-placeholder {
262
+ color: $color-text-dark-secondary;
263
+ }
264
+
265
+ &::placeholder {
266
+ color: $color-text-dark-secondary;
267
+ }
268
+ }
269
+
270
+ .#{$namespace}-select__suffix {
271
+ color: $color-text-dark-secondary;
272
+ }
273
+
274
+ .#{$namespace}-select__dropdown {
275
+ --l-select-bg: #{$bg-color-dark-light};
276
+ --l-select-border: color-mix(in oklab, #{$bg-color-dark-lighter} 74%, #{$color-text-dark});
277
+ box-shadow: $box-shadow-dark;
278
+ }
279
+
280
+ .#{$namespace}-select__option {
281
+ color: $color-text-dark;
282
+
283
+ &:hover:not(:disabled) {
284
+ background: $bg-color-dark-lighter;
285
+ }
286
+
287
+ &:disabled {
288
+ color: rgba($color-text-dark, 0.35);
289
+ cursor: not-allowed;
290
+
291
+ &:hover {
292
+ background: transparent;
293
+ }
294
+ }
295
+ }
296
+
297
+ .#{$namespace}-select__empty {
298
+ color: $color-text-dark-secondary;
299
+ }
300
+ }
301
+ }
@@ -0,0 +1,113 @@
1
+ @use './variables' as *;
2
+ @use './mixins/bem' as *;
3
+
4
+ @include b('skeleton') {
5
+ @include when('animated') {
6
+ .#{$namespace}-skeleton__item {
7
+ background: linear-gradient(90deg, $border-color-lighter 25%, $border-color-extra-light 50%, $border-color-lighter 75%);
8
+ background-size: 400% 100%;
9
+ animation: skeleton-loading 1.4s ease infinite;
10
+ }
11
+ }
12
+
13
+ @include e('item') {
14
+ background: $border-color-lighter;
15
+ border-radius: $border-radius-base;
16
+ display: block;
17
+ }
18
+
19
+ @include e('p') {
20
+ height: 16px;
21
+ margin-bottom: 12px;
22
+ border-radius: $border-radius-base;
23
+
24
+ &.is-first {
25
+ width: 33%;
26
+ }
27
+
28
+ &.is-last {
29
+ width: 61%;
30
+ margin-bottom: 0;
31
+ }
32
+ }
33
+
34
+ @include e('text') {
35
+ height: 14px;
36
+ width: 100%;
37
+ border-radius: $border-radius-base;
38
+ margin-bottom: 10px;
39
+
40
+ &:last-child {
41
+ margin-bottom: 0;
42
+ }
43
+ }
44
+
45
+ @include e('h1') {
46
+ height: 24px;
47
+ width: 50%;
48
+ margin-bottom: 16px;
49
+ border-radius: $border-radius-base;
50
+ }
51
+
52
+ @include e('h3') {
53
+ height: 18px;
54
+ width: 40%;
55
+ margin-bottom: 12px;
56
+ border-radius: $border-radius-base;
57
+ }
58
+
59
+ @include e('caption') {
60
+ height: 12px;
61
+ width: 80%;
62
+ border-radius: $border-radius-base;
63
+ }
64
+
65
+ @include e('button') {
66
+ height: 36px;
67
+ width: 80px;
68
+ border-radius: $border-radius-base;
69
+ }
70
+
71
+ @include e('image') {
72
+ width: 100%;
73
+ height: 200px;
74
+ border-radius: $border-radius-base;
75
+ }
76
+
77
+ @include e('circle') {
78
+ width: 48px;
79
+ height: 48px;
80
+ border-radius: $border-radius-circle;
81
+ flex-shrink: 0;
82
+ }
83
+
84
+ @include e('rect') {
85
+ width: 100%;
86
+ height: 100px;
87
+ border-radius: $border-radius-base;
88
+ }
89
+ }
90
+
91
+ @keyframes skeleton-loading {
92
+ 0% {
93
+ background-position: 100% 50%;
94
+ }
95
+ 100% {
96
+ background-position: 0 50%;
97
+ }
98
+ }
99
+
100
+ .dark {
101
+ .#{$namespace}-skeleton {
102
+ .#{$namespace}-skeleton__item {
103
+ background: $bg-color-dark-lighter;
104
+ }
105
+
106
+ &.is-animated {
107
+ .#{$namespace}-skeleton__item {
108
+ background: linear-gradient(90deg, $bg-color-dark-lighter 25%, $bg-color-dark-overlay 50%, $bg-color-dark-lighter 75%);
109
+ background-size: 400% 100%;
110
+ }
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,259 @@
1
+ @use './variables' as *;
2
+ @use './mixins/bem' as *;
3
+
4
+ @include b('slider') {
5
+ position: relative;
6
+ padding: 12px 0;
7
+ user-select: none;
8
+ touch-action: none;
9
+ display: block;
10
+ width: 100%;
11
+
12
+ /* State CSS variables (light mode default) */
13
+ --slider-thumb-size: 20px;
14
+ --slider-thumb-bg: #ffffff;
15
+ --slider-thumb-border: #{$color-primary};
16
+ --slider-thumb-shadow-base: 0 2px 4px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(255, 255, 255, .10);
17
+ --slider-thumb-shadow-focus: 0 0 0 4px rgba($color-primary, .30), 0 2px 4px rgba(0, 0, 0, .10), inset 0 0 0 1px rgba(255, 255, 255, .10);
18
+ --slider-thumb-shadow-hover: 0 0 0 6px rgba($color-primary, .15), 0 3px 6px rgba(0, 0, 0, .15), 0 2px 4px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(255, 255, 255, .15);
19
+ --slider-thumb-shadow-active: 0 0 0 8px rgba($color-primary, .25), 0 2px 4px rgba(0, 0, 0, .20), 0 1px 2px rgba(0, 0, 0, .10), inset 0 0 0 1px rgba(255, 255, 255, .10);
20
+ --slider-thumb-shadow-drag: 0 0 0 6px rgba($color-primary, .30), 0 3px 6px rgba(0, 0, 0, .25), 0 2px 4px rgba(0, 0, 0, .15), inset 0 0 0 1px rgba(255, 255, 255, .20);
21
+ --slider-thumb-scale-hover: 1;
22
+ --slider-thumb-scale-active: .92;
23
+ --slider-thumb-scale-drag: .94;
24
+
25
+ // Track / Fill
26
+ &__track {
27
+ position: relative;
28
+ height: 6px;
29
+ width: 100%;
30
+ background: $border-color-lighter;
31
+ border-radius: $border-radius-round;
32
+ }
33
+
34
+ &__fill {
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ height: 100%;
39
+ background: $color-primary;
40
+ border-radius: $border-radius-round;
41
+ transition: width .15s ease, left .15s ease, height .15s ease, bottom .15s ease;
42
+ }
43
+
44
+ // Disable transition effects during dragging
45
+ &.is-dragging &__fill {
46
+ transition: none;
47
+ }
48
+
49
+ // Thumb outer layer: handles positioning, keeps size stable
50
+ &__thumb {
51
+ position: absolute;
52
+ top: 50%;
53
+ left: 0;
54
+ transform: translate(-50%, -50%);
55
+ width: var(--slider-thumb-size);
56
+ height: var(--slider-thumb-size);
57
+ cursor: pointer;
58
+ outline: none;
59
+ -webkit-font-smoothing: antialiased;
60
+ -moz-osx-font-smoothing: grayscale;
61
+ backface-visibility: hidden;
62
+ pointer-events: auto;
63
+
64
+ /* Internal actual visual circle */
65
+ &-inner {
66
+ position: relative;
67
+ width: 100%;
68
+ height: 100%;
69
+ border-radius: 50%;
70
+ background: var(--slider-thumb-bg);
71
+ border: 2px solid var(--slider-thumb-border);
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ box-shadow: var(--slider-thumb-shadow-base);
76
+ transition: box-shadow .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
77
+ transform-origin: center;
78
+ will-change: transform, box-shadow;
79
+
80
+ &::before {
81
+ /* Hover sensing circle */
82
+ content: '';
83
+ position: absolute;
84
+ inset: -2px;
85
+ border-radius: 50%;
86
+ background: rgba($color-primary, 0.10);
87
+ opacity: 0;
88
+ transform: scale(.8);
89
+ transition: opacity .15s ease, transform .15s ease;
90
+ pointer-events: none;
91
+ }
92
+ }
93
+
94
+ &:focus-visible>&-inner {
95
+ box-shadow: var(--slider-thumb-shadow-focus);
96
+ }
97
+
98
+ @media (hover:hover) {
99
+ .#{$namespace}-slider:not(.is-disabled) &:hover>&-inner {
100
+ transform: scale(var(--slider-thumb-scale-hover));
101
+
102
+ &::before {
103
+ opacity: 1;
104
+ transform: scale(1);
105
+ }
106
+ }
107
+ }
108
+
109
+ .#{$namespace}-slider:not(.is-disabled) &:active>&-inner {
110
+ box-shadow: var(--slider-thumb-shadow-active);
111
+ transform: scale(var(--slider-thumb-scale-active));
112
+ transition: transform .1s cubic-bezier(.25, .46, .45, .94), box-shadow .1s cubic-bezier(.25, .46, .45, .94);
113
+
114
+ &::before {
115
+ opacity: .7;
116
+ transform: scale(.85);
117
+ }
118
+ }
119
+ }
120
+
121
+ // Drag state: only affects inner
122
+ &.is-dragging &__thumb-inner {
123
+ box-shadow: var(--slider-thumb-shadow-drag);
124
+ transform: scale(var(--slider-thumb-scale-drag));
125
+
126
+ &::before {
127
+ opacity: .6;
128
+ transform: scale(.88);
129
+ }
130
+ }
131
+
132
+ // Stops
133
+ &__stop {
134
+ position: absolute;
135
+ top: 50%;
136
+ transform: translate(-50%, -50%);
137
+ width: 6px;
138
+ height: 6px;
139
+ border-radius: 50%;
140
+ background: $border-color-light;
141
+ }
142
+
143
+ // Marks
144
+ &__marks {
145
+ position: relative;
146
+ margin-top: 8px;
147
+ font-size: 10px;
148
+ }
149
+
150
+ &__mark {
151
+ position: absolute;
152
+ top: 0;
153
+ transform: translateX(-50%);
154
+ text-align: center;
155
+ }
156
+
157
+ &__mark-point {
158
+ width: 8px;
159
+ height: 8px;
160
+ border-radius: 50%;
161
+ background: $border-color-light;
162
+ margin: 0 auto 4px;
163
+ }
164
+
165
+ &__mark-label {
166
+ white-space: nowrap;
167
+ color: $color-text-secondary;
168
+ }
169
+
170
+
171
+
172
+ // Disabled state
173
+ &.is-disabled {
174
+ opacity: 0.55;
175
+ cursor: not-allowed;
176
+
177
+ .#{$namespace}-slider__thumb {
178
+ cursor: not-allowed;
179
+ pointer-events: none;
180
+ }
181
+
182
+ .#{$namespace}-slider__thumb-inner {
183
+ background: #ffffff;
184
+ border-color: $border-color-light;
185
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
186
+ transform: none;
187
+ }
188
+
189
+ .#{$namespace}-slider__fill {
190
+ background: $border-color-light;
191
+ }
192
+
193
+ .#{$namespace}-slider__track {
194
+ background: #f5f7fa;
195
+ }
196
+ }
197
+
198
+ // Vertical mode
199
+ &.is-vertical {
200
+ padding: 0 12px;
201
+ height: 100%;
202
+ width: auto;
203
+
204
+ &__track {
205
+ width: 6px;
206
+ height: 100%;
207
+ }
208
+
209
+ &__fill {
210
+ width: 100%;
211
+ left: 0;
212
+ }
213
+
214
+ &__thumb {
215
+ left: 50%;
216
+ top: auto;
217
+ transform: translate(-50%, 50%);
218
+ }
219
+
220
+ &__marks {
221
+ margin-top: 0;
222
+ margin-left: 12px;
223
+ }
224
+ }
225
+ }
226
+
227
+ // Force removal of hover/active effects in disabled state
228
+ .#{$namespace}-slider.is-disabled .#{$namespace}-slider__thumb:hover>.#{$namespace}-slider__thumb-inner,
229
+ .#{$namespace}-slider.is-disabled .#{$namespace}-slider__thumb:active>.#{$namespace}-slider__thumb-inner,
230
+ .#{$namespace}-slider.is-disabled .#{$namespace}-slider__thumb:focus-visible>.#{$namespace}-slider__thumb-inner {
231
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
232
+ }
233
+
234
+ // Dark mode
235
+ .dark {
236
+ @include b(slider) {
237
+ --slider-thumb-shadow-base: 0 2px 4px rgba(0, 0, 0, .20), 0 1px 2px rgba(0, 0, 0, .10), inset 0 0 0 1px rgba(255, 255, 255, .15);
238
+ --slider-thumb-shadow-focus: 0 0 0 4px rgba($color-primary, .35), 0 1px 3px rgba(0, 0, 0, .12), inset 0 0 0 .5px rgba(0, 0, 0, .06);
239
+ --slider-thumb-shadow-hover: 0 0 0 6px rgba($color-primary, .28), 0 1px 3px rgba(0, 0, 0, .12), inset 0 0 0 .5px rgba(0, 0, 0, .06);
240
+ --slider-thumb-shadow-active: 0 0 0 6px rgba($color-primary, .40), 0 1px 3px rgba(0, 0, 0, .15), inset 0 0 0 .5px rgba(0, 0, 0, .08);
241
+ --slider-thumb-shadow-drag: 0 0 0 6px rgba($color-primary, .30), 0 3px 6px rgba(0, 0, 0, .25), 0 2px 4px rgba(0, 0, 0, .15), inset 0 0 0 1px rgba(255, 255, 255, .20);
242
+
243
+ &__track {
244
+ background: rgba(#fff, 0.14);
245
+ }
246
+
247
+ &__fill {
248
+ background: $color-primary;
249
+ }
250
+
251
+ &__thumb-inner::before {
252
+ background: rgba($color-primary, .15);
253
+ }
254
+
255
+ &.is-disabled .#{$namespace}-slider__thumb-inner {
256
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(255, 255, 255, .05);
257
+ }
258
+ }
259
+ }
@@ -0,0 +1,44 @@
1
+ @use './variables' as *;
2
+ @use './mixins/bem' as *;
3
+
4
+ @include b('space') {
5
+ display: inline-flex;
6
+ gap: var(--lm-space-gap, 8px);
7
+ align-items: var(--lm-space-align, flex-start);
8
+ justify-content: var(--lm-space-justify);
9
+
10
+ // 分隔符样式
11
+ @include e('spacer') {
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ color: $color-text-secondary;
16
+ flex-shrink: 0;
17
+ }
18
+
19
+ @include m('horizontal') {
20
+ flex-direction: row;
21
+ }
22
+
23
+ @include m('vertical') {
24
+ flex-direction: column;
25
+
26
+ .#{$namespace}-space__spacer {
27
+ width: 100%;
28
+ height: 1px;
29
+ }
30
+ }
31
+
32
+ @include when('wrap') {
33
+ flex-wrap: wrap;
34
+ }
35
+
36
+ @include when('fill') {
37
+ display: flex;
38
+ width: 100%;
39
+
40
+ > *:not(.#{$namespace}-space__spacer) {
41
+ flex: var(--lm-space-fill-ratio, 1);
42
+ }
43
+ }
44
+ }