@laser-ui/themes 0.0.1

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 (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/_mixins.scss +5 -0
  4. package/_variables.scss +17 -0
  5. package/animations.scss +19 -0
  6. package/common.scss +9 -0
  7. package/components/accordion.scss +52 -0
  8. package/components/alert.scss +110 -0
  9. package/components/anchor.scss +69 -0
  10. package/components/avatar.scss +36 -0
  11. package/components/badge.scss +54 -0
  12. package/components/breadcrumb.scss +50 -0
  13. package/components/button.scss +245 -0
  14. package/components/card.scss +77 -0
  15. package/components/cascader.scss +313 -0
  16. package/components/checkbox.scss +194 -0
  17. package/components/circular-progress.scss +30 -0
  18. package/components/compose.scss +121 -0
  19. package/components/date-picker.scss +310 -0
  20. package/components/drawer.scss +113 -0
  21. package/components/dropdown.scss +156 -0
  22. package/components/empty.scss +27 -0
  23. package/components/fab.scss +293 -0
  24. package/components/form.scss +137 -0
  25. package/components/icon.scss +17 -0
  26. package/components/image.scss +213 -0
  27. package/components/input.scss +172 -0
  28. package/components/mask.scss +11 -0
  29. package/components/menu.scss +327 -0
  30. package/components/modal.scss +139 -0
  31. package/components/notification.scss +127 -0
  32. package/components/pagination.scss +134 -0
  33. package/components/popover.scss +197 -0
  34. package/components/progress.scss +125 -0
  35. package/components/radio.scss +203 -0
  36. package/components/rating.scss +75 -0
  37. package/components/select.scss +282 -0
  38. package/components/separator.scss +95 -0
  39. package/components/skeleton.scss +44 -0
  40. package/components/slider.scss +202 -0
  41. package/components/slides.scss +211 -0
  42. package/components/spinner.scss +43 -0
  43. package/components/stepper.scss +226 -0
  44. package/components/switch.scss +151 -0
  45. package/components/table.scss +297 -0
  46. package/components/tabs.scss +517 -0
  47. package/components/tag.scss +59 -0
  48. package/components/textarea.scss +69 -0
  49. package/components/time-picker.scss +212 -0
  50. package/components/timeline.scss +107 -0
  51. package/components/toast.scss +101 -0
  52. package/components/tooltip.scss +118 -0
  53. package/components/transfer.scss +122 -0
  54. package/components/tree-select.scss +218 -0
  55. package/components/tree.scss +169 -0
  56. package/components/upload.scss +367 -0
  57. package/components/wave.scss +36 -0
  58. package/index.scss +58 -0
  59. package/mixins/_polyfill.scss +34 -0
  60. package/mixins/_utils.scss +5 -0
  61. package/mixins/bem/_bem.scss +71 -0
  62. package/mixins/bem/_config.scss +4 -0
  63. package/mixins/bem/_function.scss +45 -0
  64. package/package.json +28 -0
  65. package/reboot.scss +5 -0
  66. package/root.scss +90 -0
  67. package/theme-dark.scss +62 -0
@@ -0,0 +1,203 @@
1
+ @use 'sass:map';
2
+ @use '../variables';
3
+ @use '../mixins';
4
+
5
+ @include mixins.b(radio) {
6
+ $selector: &;
7
+
8
+ position: relative;
9
+ display: inline-flex;
10
+ align-items: center;
11
+ vertical-align: top;
12
+
13
+ &:hover {
14
+ @include mixins.e(input) {
15
+ border-color: var(--#{variables.$prefix}color-light-primary);
16
+ }
17
+ }
18
+
19
+ @include mixins.when(checked) {
20
+ &:not(.is-disabled) {
21
+ @include mixins.e(input) {
22
+ border-color: var(--#{variables.$prefix}color-primary);
23
+ }
24
+
25
+ @include mixins.e(input-wrapper) {
26
+ &::before {
27
+ animation: #{variables.$prefix}wave-spread 0.36s linear;
28
+ animation-fill-mode: backwards;
29
+ }
30
+ }
31
+ }
32
+
33
+ @include mixins.e(input-wrapper) {
34
+ &::after {
35
+ opacity: 1;
36
+ transform: scale(1);
37
+ }
38
+ }
39
+ }
40
+
41
+ @include mixins.when(disabled) {
42
+ color: var(--#{variables.$prefix}color-disabled);
43
+ pointer-events: none;
44
+
45
+ @include mixins.e(input-wrapper) {
46
+ background-color: var(--#{variables.$prefix}background-color-disabled);
47
+
48
+ &::after {
49
+ background-color: var(--#{variables.$prefix}color-disabled);
50
+ }
51
+ }
52
+ }
53
+
54
+ @include mixins.m(button) {
55
+ height: var(--size);
56
+ font-size: var(--font-size);
57
+ white-space: nowrap;
58
+ cursor: pointer;
59
+ border: 1px solid var(--#{variables.$prefix}color-border);
60
+ border-radius: var(--#{variables.$prefix}border-radius);
61
+ transition:
62
+ border-color var(--#{variables.$prefix}animation-duration-base) linear,
63
+ background-color var(--#{variables.$prefix}animation-duration-base) linear;
64
+
65
+ &:has(:focus-visible) {
66
+ border-color: var(--#{variables.$prefix}color-primary-lighter);
67
+ box-shadow: 0 0 0 3px rgb(var(--#{variables.$prefix}color-primary-rgb) / var(--#{variables.$prefix}box-shadow-opacity-normal));
68
+ }
69
+
70
+ @include mixins.when(disabled) {
71
+ background-color: var(--#{variables.$prefix}background-color-disabled);
72
+
73
+ @include mixins.when(checked) {
74
+ color: rgb(var(--#{variables.$prefix}color-primary-rgb) / 50%);
75
+ }
76
+ }
77
+
78
+ @include mixins.e(input-wrapper) {
79
+ width: 0;
80
+ height: 0;
81
+ overflow: hidden;
82
+ }
83
+
84
+ @include mixins.e(label) {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ height: 100%;
88
+ padding: 0 calc(var(--padding-size) - 1px);
89
+ margin-left: unset;
90
+ transition: color var(--#{variables.$prefix}animation-duration-base) linear;
91
+ }
92
+ }
93
+
94
+ @include mixins.m(button-outline) {
95
+ &:hover {
96
+ color: var(--#{variables.$prefix}color-light-primary);
97
+ border-color: var(--#{variables.$prefix}color-light-primary);
98
+ }
99
+
100
+ @include mixins.when(checked) {
101
+ color: var(--#{variables.$prefix}color-primary);
102
+ border-color: var(--#{variables.$prefix}color-primary);
103
+ }
104
+ }
105
+
106
+ @include mixins.m(button-fill) {
107
+ background-color: var(--#{variables.$prefix}background-color);
108
+
109
+ &:hover {
110
+ color: var(--#{variables.$prefix}color-light-primary);
111
+ border-color: var(--#{variables.$prefix}color-light-primary);
112
+ }
113
+
114
+ @include mixins.when(checked) {
115
+ color: map.get(variables.$colors, 'white');
116
+ background-color: var(--#{variables.$prefix}color-primary);
117
+ border-color: var(--#{variables.$prefix}color-primary);
118
+ }
119
+ }
120
+
121
+ @include mixins.m(button-small) {
122
+ --size: var(--#{variables.$prefix}radio-size, var(--#{variables.$prefix}size-small));
123
+ --padding-size: var(--#{variables.$prefix}radio-padding-size, var(--#{variables.$prefix}padding-size-small));
124
+ --font-size: var(--#{variables.$prefix}radio-font-size, var(--#{variables.$prefix}font-size-small));
125
+ }
126
+
127
+ @include mixins.m(button-medium) {
128
+ --size: var(--#{variables.$prefix}radio-size, var(--#{variables.$prefix}size-medium));
129
+ --padding-size: var(--#{variables.$prefix}radio-padding-size, var(--#{variables.$prefix}padding-size-medium));
130
+ --font-size: var(--#{variables.$prefix}radio-font-size, var(--#{variables.$prefix}font-size-medium));
131
+ }
132
+
133
+ @include mixins.m(button-large) {
134
+ --size: var(--#{variables.$prefix}radio-size, var(--#{variables.$prefix}size-large));
135
+ --padding-size: var(--#{variables.$prefix}radio-padding-size, var(--#{variables.$prefix}padding-size-large));
136
+ --font-size: var(--#{variables.$prefix}radio-font-size, var(--#{variables.$prefix}font-size-large));
137
+ }
138
+
139
+ @include mixins.e(input-wrapper) {
140
+ position: relative;
141
+ width: 16px;
142
+ height: 16px;
143
+ cursor: pointer;
144
+ background-color: var(--#{variables.$prefix}background-color-input);
145
+ border-radius: 50%;
146
+
147
+ &::before {
148
+ position: absolute;
149
+ top: 0;
150
+ right: 0;
151
+ bottom: 0;
152
+ left: 0;
153
+ content: '';
154
+ border: 1px solid var(--#{variables.$prefix}color-primary);
155
+ border-radius: 50%;
156
+ opacity: 0;
157
+ }
158
+
159
+ &::after {
160
+ position: absolute;
161
+ top: 4px;
162
+ right: 4px;
163
+ bottom: 4px;
164
+ left: 4px;
165
+ content: '';
166
+ background-color: var(--#{variables.$prefix}color-primary);
167
+ border-radius: 50%;
168
+ opacity: 0;
169
+ transition:
170
+ transform var(--#{variables.$prefix}animation-duration-fast) linear,
171
+ opacity var(--#{variables.$prefix}animation-duration-fast) linear;
172
+ transform: scale(0);
173
+ }
174
+ }
175
+
176
+ @include mixins.e(input) {
177
+ position: absolute;
178
+ top: 0;
179
+ right: 0;
180
+ bottom: 0;
181
+ left: 0;
182
+ z-index: 1;
183
+ display: inline-block;
184
+ width: 100%;
185
+ height: 100%;
186
+ margin: 0;
187
+ appearance: none;
188
+ cursor: inherit;
189
+ border: 1px solid var(--#{variables.$prefix}color-border);
190
+ border-radius: 50%;
191
+ outline: none;
192
+ transition: border-color var(--#{variables.$prefix}animation-duration-base) linear;
193
+
194
+ &:focus {
195
+ border-color: var(--#{variables.$prefix}color-light-primary);
196
+ box-shadow: 0 0 0 3px rgb(var(--#{variables.$prefix}color-primary-rgb) / var(--#{variables.$prefix}box-shadow-opacity-normal));
197
+ }
198
+ }
199
+
200
+ @include mixins.e(label) {
201
+ margin-left: 8px;
202
+ }
203
+ }
@@ -0,0 +1,75 @@
1
+ @use '../variables';
2
+ @use '../mixins';
3
+
4
+ @include mixins.b(rating) {
5
+ --color: var(--#{variables.$prefix}rating-color, var(--#{variables.$prefix}color-warning));
6
+ --size: var(--#{variables.$prefix}rating-size, 1.25rem);
7
+ --gutter-x: var(--#{variables.$prefix}rating-gutter-x, 0px);
8
+
9
+ position: relative;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ font-size: var(--size);
13
+ color: var(--color);
14
+ vertical-align: top;
15
+
16
+ @include mixins.when(disabled) {
17
+ pointer-events: none;
18
+ filter: opacity(50%);
19
+ }
20
+
21
+ @include mixins.m(read-only) {
22
+ pointer-events: none;
23
+ }
24
+
25
+ @include mixins.e(star) {
26
+ position: relative;
27
+ transition: transform var(--#{variables.$prefix}animation-duration-fast) linear;
28
+
29
+ & + & {
30
+ margin-left: var(--gutter-x);
31
+ }
32
+
33
+ &:hover,
34
+ &:focus-within {
35
+ transform: scale(1.2);
36
+ }
37
+ }
38
+
39
+ @include mixins.e(input) {
40
+ position: absolute;
41
+ top: 0;
42
+ right: 0;
43
+ bottom: 0;
44
+ left: 0;
45
+ z-index: 1;
46
+ width: 100%;
47
+ height: 100%;
48
+ margin: 0;
49
+ appearance: none;
50
+ cursor: pointer;
51
+
52
+ @include mixins.m(half) {
53
+ z-index: 5;
54
+ width: 50%;
55
+ }
56
+ }
57
+
58
+ @include mixins.e(icon) {
59
+ color: var(--#{variables.$prefix}background-color-img);
60
+ transition: color var(--#{variables.$prefix}animation-duration-fast) linear;
61
+
62
+ @include mixins.when(checked) {
63
+ color: inherit;
64
+ }
65
+
66
+ @include mixins.m(half) {
67
+ position: absolute;
68
+ top: 0;
69
+ left: 0;
70
+ width: 50%;
71
+ height: 100%;
72
+ overflow: hidden;
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,282 @@
1
+ @use '../variables';
2
+ @use '../mixins';
3
+
4
+ $select-option-height: 32px;
5
+
6
+ @include mixins.b(select) {
7
+ $selector: &;
8
+
9
+ position: relative;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ height: var(--size);
13
+ padding: 0 calc(var(--horizontal-space) - 1px);
14
+ font-size: var(--font-size);
15
+ vertical-align: top;
16
+ cursor: pointer;
17
+ background-color: var(--#{variables.$prefix}background-color-input);
18
+ border: 1px solid var(--#{variables.$prefix}color-border);
19
+ border-radius: var(--#{variables.$prefix}border-radius);
20
+ transition: border-color var(--#{variables.$prefix}animation-duration-base) linear;
21
+
22
+ &:hover,
23
+ &:focus-within {
24
+ border-color: var(--#{variables.$prefix}color-light-primary);
25
+ }
26
+
27
+ @each $invalid, $color in ('warning': 'warning', 'error': 'danger') {
28
+ &[data-l-form-invalid='#{$invalid}'] {
29
+ border-color: var(--#{variables.$prefix}color-#{$color}) !important;
30
+
31
+ #{$selector}__search {
32
+ caret-color: var(--#{variables.$prefix}color-#{$color}) !important;
33
+ }
34
+ }
35
+ }
36
+
37
+ @include mixins.when(expanded) {
38
+ border-color: var(--#{variables.$prefix}color-primary);
39
+
40
+ @include mixins.e(arrow) {
41
+ transform: rotate(180deg);
42
+ }
43
+ }
44
+
45
+ @include mixins.when(disabled) {
46
+ --#{variables.$prefix}tag-color: var(--#{variables.$prefix}color-disabled);
47
+
48
+ color: var(--#{variables.$prefix}color-disabled);
49
+ pointer-events: none;
50
+ background-color: var(--#{variables.$prefix}background-color-disabled);
51
+
52
+ @include mixins.e(placeholder) {
53
+ opacity: 0.5;
54
+ }
55
+
56
+ @include mixins.e(icon) {
57
+ color: var(--#{variables.$prefix}color-disabled);
58
+ }
59
+ }
60
+
61
+ @include mixins.m(small) {
62
+ --size: var(--#{variables.$prefix}select-size, var(--#{variables.$prefix}size-small));
63
+ --horizontal-space: var(--#{variables.$prefix}select-horizontal-space, var(--#{variables.$prefix}horizontal-space-small));
64
+ --font-size: var(--#{variables.$prefix}select-font-size, var(--#{variables.$prefix}font-size-small));
65
+ }
66
+
67
+ @include mixins.m(medium) {
68
+ --size: var(--#{variables.$prefix}select-size, var(--#{variables.$prefix}size-medium));
69
+ --horizontal-space: var(--#{variables.$prefix}select-horizontal-space, var(--#{variables.$prefix}horizontal-space-medium));
70
+ --font-size: var(--#{variables.$prefix}select-font-size, var(--#{variables.$prefix}font-size-medium));
71
+ }
72
+
73
+ @include mixins.m(large) {
74
+ --size: var(--#{variables.$prefix}select-size, var(--#{variables.$prefix}size-large));
75
+ --horizontal-space: var(--#{variables.$prefix}select-horizontal-space, var(--#{variables.$prefix}horizontal-space-large));
76
+ --font-size: var(--#{variables.$prefix}select-font-size, var(--#{variables.$prefix}font-size-large));
77
+ }
78
+
79
+ @include mixins.e(container) {
80
+ position: relative;
81
+ display: inline-flex;
82
+ flex-grow: 1;
83
+ align-items: center;
84
+ height: 100%;
85
+ overflow: hidden;
86
+ }
87
+
88
+ @include mixins.e(content) {
89
+ @include mixins.utils-ellipsis;
90
+
91
+ .#{variables.$prefix}tag + .#{variables.$prefix}tag {
92
+ margin-left: 8px;
93
+ }
94
+ }
95
+
96
+ @include mixins.e(search) {
97
+ position: absolute;
98
+ top: 0;
99
+ right: 0;
100
+ bottom: 0;
101
+ left: 0;
102
+ z-index: 5;
103
+ display: inline-block;
104
+ min-width: 0;
105
+ padding: 0;
106
+ margin: 0;
107
+ font: inherit;
108
+ color: var(--#{variables.$prefix}color-text);
109
+ letter-spacing: inherit;
110
+ appearance: none;
111
+ caret-color: var(--#{variables.$prefix}color-primary);
112
+ background-color: transparent;
113
+ border: none;
114
+ outline: none;
115
+
116
+ &::-webkit-search-cancel-button {
117
+ display: none;
118
+ appearance: none;
119
+ }
120
+ }
121
+
122
+ @include mixins.e(placeholder-wrapper) {
123
+ position: absolute;
124
+ top: 0;
125
+ right: 0;
126
+ bottom: 0;
127
+ left: 0;
128
+ display: flex;
129
+ align-items: center;
130
+ user-select: none;
131
+ }
132
+
133
+ @include mixins.e(placeholder) {
134
+ @include mixins.utils-ellipsis;
135
+
136
+ color: var(--#{variables.$prefix}color-disabled);
137
+ }
138
+
139
+ @include mixins.e(multiple-count) {
140
+ z-index: 1;
141
+ flex-shrink: 0;
142
+ margin-left: 4px;
143
+ }
144
+
145
+ @include mixins.e(close) {
146
+ margin: 0 0 0 4px;
147
+ color: var(--#{variables.$prefix}color-icon-decorator);
148
+ transition: color var(--#{variables.$prefix}animation-duration-base) linear;
149
+
150
+ &:hover,
151
+ &:focus {
152
+ color: var(--#{variables.$prefix}color-light-primary);
153
+ }
154
+
155
+ &:active {
156
+ color: var(--#{variables.$prefix}color-dark-primary);
157
+ }
158
+ }
159
+
160
+ @include mixins.e(clear) {
161
+ position: absolute;
162
+ right: calc(var(--horizontal-space) - 1px);
163
+ z-index: 5;
164
+ color: var(--#{variables.$prefix}color-icon-decorator);
165
+ transition: color var(--#{variables.$prefix}animation-duration-base) linear;
166
+
167
+ &:hover,
168
+ &:focus {
169
+ color: var(--#{variables.$prefix}color-light-primary);
170
+ }
171
+
172
+ &:active {
173
+ color: var(--#{variables.$prefix}color-dark-primary);
174
+ }
175
+ }
176
+
177
+ @include mixins.e(icon) {
178
+ z-index: 1;
179
+ flex-shrink: 0;
180
+ margin-left: 4px;
181
+ color: var(--#{variables.$prefix}color-icon-decorator);
182
+ }
183
+
184
+ @include mixins.e(arrow) {
185
+ transition: transform var(--#{variables.$prefix}animation-duration-base) linear;
186
+ }
187
+
188
+ @include mixins.e(list) {
189
+ position: relative;
190
+ max-height: calc(8px + #{$select-option-height} * 6);
191
+ padding: 4px 0;
192
+ margin: 0;
193
+ overflow: hidden auto;
194
+ list-style: none;
195
+ }
196
+
197
+ @include mixins.e(option) {
198
+ position: relative;
199
+ display: flex;
200
+ align-items: center;
201
+ min-height: $select-option-height;
202
+ padding: 0 12px;
203
+ cursor: pointer;
204
+ transition: background-color var(--#{variables.$prefix}animation-duration-base) linear;
205
+
206
+ &:not(.is-selected):hover {
207
+ background-color: var(--#{variables.$prefix}background-color-hover);
208
+ }
209
+
210
+ @include mixins.when(selected) {
211
+ background-color: var(--#{variables.$prefix}background-color-primary);
212
+ }
213
+
214
+ @include mixins.when(disabled) {
215
+ color: var(--#{variables.$prefix}color-disabled);
216
+ pointer-events: none;
217
+ }
218
+ }
219
+
220
+ @include mixins.e(option-prefix) {
221
+ display: inline-flex;
222
+ margin-right: 8px;
223
+ }
224
+
225
+ @include mixins.e(option-content) {
226
+ @include mixins.utils-ellipsis;
227
+
228
+ flex: 1 0 0;
229
+ }
230
+
231
+ @include mixins.e(option-group) {
232
+ padding: 0;
233
+ margin: 0;
234
+ list-style: none;
235
+ }
236
+
237
+ @include mixins.e(option-group-label) {
238
+ display: flex;
239
+ align-items: center;
240
+ min-height: $select-option-height;
241
+ padding: 0 12px;
242
+ font-size: var(--#{variables.$prefix}font-size-subtitle);
243
+ color: var(--#{variables.$prefix}color-text-sub);
244
+ }
245
+
246
+ @include mixins.e(empty) {
247
+ display: flex;
248
+ align-items: center;
249
+ height: $select-option-height;
250
+ padding: 0 12px;
251
+ color: var(--#{variables.$prefix}color-disabled);
252
+ }
253
+ }
254
+
255
+ @include mixins.b(select-popup) {
256
+ position: fixed;
257
+ background-color: var(--#{variables.$prefix}background-color);
258
+ border-radius: var(--#{variables.$prefix}border-radius);
259
+ box-shadow: var(--#{variables.$prefix}box-shadow-popup);
260
+
261
+ @include mixins.e(loading) {
262
+ position: absolute;
263
+ top: 0;
264
+ left: 0;
265
+ z-index: 5;
266
+ display: flex;
267
+ align-items: center;
268
+ justify-content: center;
269
+ width: 100%;
270
+ height: 100%;
271
+ color: var(--#{variables.$prefix}color-primary);
272
+ background-color: rgb(var(--#{variables.$prefix}background-color-rgb) / 80%);
273
+
274
+ @include mixins.m(empty) {
275
+ position: relative;
276
+ justify-content: flex-start;
277
+ height: 40px;
278
+ padding: 0 12px;
279
+ background-color: var(--#{variables.$prefix}background-color);
280
+ }
281
+ }
282
+ }
@@ -0,0 +1,95 @@
1
+ @use '../variables';
2
+ @use '../mixins';
3
+
4
+ @include mixins.b(separator) {
5
+ $selector: &;
6
+
7
+ width: 100%;
8
+ height: 1px;
9
+ padding: 0;
10
+ margin: 16px 0;
11
+ background-color: var(--#{variables.$prefix}color-divider);
12
+
13
+ @include mixins.m(text) {
14
+ display: flex;
15
+ align-items: center;
16
+ margin: 24px 0;
17
+ background-color: unset;
18
+
19
+ &::before {
20
+ height: 1px;
21
+ content: '';
22
+ background-color: var(--#{variables.$prefix}color-divider);
23
+ }
24
+
25
+ &::after {
26
+ height: 1px;
27
+ content: '';
28
+ background-color: var(--#{variables.$prefix}color-divider);
29
+ }
30
+
31
+ &#{$selector}--vertical {
32
+ width: auto;
33
+ margin: 0 24px;
34
+
35
+ &::before {
36
+ width: 1px;
37
+ height: unset;
38
+ }
39
+
40
+ &::after {
41
+ width: 1px;
42
+ height: unset;
43
+ }
44
+
45
+ @include mixins.e(text) {
46
+ padding: 8px 0;
47
+ }
48
+ }
49
+ }
50
+
51
+ @include mixins.m(text-left) {
52
+ &::before {
53
+ flex: 0 0 10%;
54
+ }
55
+
56
+ &::after {
57
+ flex: 1 0 0;
58
+ }
59
+ }
60
+
61
+ @include mixins.m(text-right) {
62
+ &::before {
63
+ flex: 1 0 0;
64
+ }
65
+
66
+ &::after {
67
+ flex: 0 0 10%;
68
+ }
69
+ }
70
+
71
+ @include mixins.m(text-center) {
72
+ &::before {
73
+ flex: 1 0 0;
74
+ }
75
+
76
+ &::after {
77
+ flex: 1 0 0;
78
+ }
79
+ }
80
+
81
+ @include mixins.m(vertical) {
82
+ display: inline-flex;
83
+ flex-direction: column;
84
+ align-self: stretch;
85
+ width: 1px;
86
+ height: unset;
87
+ margin: 2px 8px;
88
+ }
89
+
90
+ @include mixins.e(text) {
91
+ flex: 0 0 auto;
92
+ padding: 0 8px;
93
+ font-size: var(--#{variables.$prefix}font-size-subtitle);
94
+ }
95
+ }
@@ -0,0 +1,44 @@
1
+ @use '../variables';
2
+ @use '../mixins';
3
+
4
+ @keyframes #{variables.$prefix}skeleton-wave {
5
+ 100% {
6
+ transform: translateX(100%);
7
+ }
8
+ }
9
+
10
+ @include mixins.b(skeleton) {
11
+ position: relative;
12
+ overflow: hidden;
13
+ background-color: var(--#{variables.$prefix}background-color-primary-gray);
14
+
15
+ &::after {
16
+ position: absolute;
17
+ top: 0;
18
+ right: 0;
19
+ bottom: 0;
20
+ left: 0;
21
+ z-index: 1;
22
+ content: '';
23
+ background: linear-gradient(100deg, transparent 20%, var(--#{variables.$prefix}skeleton-background-color-wave) 50%, transparent 70%);
24
+ transform: translateX(-100%);
25
+ animation: #{variables.$prefix}skeleton-wave 2s linear infinite;
26
+ }
27
+
28
+ @include mixins.m(text) {
29
+ width: 100%;
30
+ border-radius: var(--#{variables.$prefix}border-radius);
31
+
32
+ &::before {
33
+ content: '\00a0';
34
+ }
35
+ }
36
+
37
+ @include mixins.m(circular) {
38
+ border-radius: 50%;
39
+ }
40
+
41
+ @include mixins.m(rect) {
42
+ border-radius: var(--#{variables.$prefix}border-radius);
43
+ }
44
+ }