@acorex/styles 19.10.0-next.1 → 19.10.0-next.3

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 (50) hide show
  1. package/base/index.scss +15 -0
  2. package/{src/shared → components}/_action-item.scss +3 -3
  3. package/{src/shared → components}/_actionsheet.scss +7 -6
  4. package/{src/shared → components}/_check-box.scss +8 -14
  5. package/{src/shared → components}/_drop-down.scss +7 -16
  6. package/{src/shared → components}/_editor-container.scss +22 -78
  7. package/{src/shared → components}/_general-button.scss +11 -12
  8. package/{src/shared → components}/_list.scss +15 -41
  9. package/{src/shared → components}/_radio.scss +8 -14
  10. package/components/_ripple.scss +13 -0
  11. package/{src/shared → components}/_table.scss +9 -30
  12. package/components/_uploader.scss +44 -0
  13. package/{src/shared → components}/index.scss +2 -3
  14. package/icons/fontawesome/index.scss +10 -11
  15. package/icons/huge/huge-bulk/index.scss +4 -4
  16. package/icons/huge/huge-duotone/index.scss +4 -4
  17. package/icons/huge/huge-solid-sharp/index.scss +4 -4
  18. package/icons/huge/huge-solid-standard/index.scss +4 -4
  19. package/icons/huge/huge-stroke-rounded/index.scss +4 -4
  20. package/icons/huge/huge-stroke-sharp/index.scss +4 -4
  21. package/icons/huge/huge-stroke-standard/index.scss +4 -4
  22. package/icons/huge/huge-twotone/index.scss +4 -4
  23. package/icons/material/index.scss +4 -5
  24. package/index.scss +5 -7
  25. package/mixins/_look.scss +68 -0
  26. package/package.json +1 -1
  27. package/tailwind-base.js +231 -158
  28. package/themes/default.scss +28 -139
  29. package/utils/_theme-generator.scss +241 -0
  30. package/utils/_utils.scss +284 -0
  31. package/utils/index.scss +2 -0
  32. package/variables/_colors.scss +7 -0
  33. package/variables/_looks.scss +1 -0
  34. package/variables/index.scss +2 -0
  35. package/index.css +0 -2843
  36. package/index.min.css +0 -1
  37. package/src/base/index.scss +0 -13
  38. package/src/mixins/_look.scss +0 -83
  39. package/src/shared/_color-look.scss +0 -822
  40. package/src/shared/_inputs.scss +0 -16
  41. package/src/shared/_utils.scss +0 -85
  42. package/src/utility/index.scss +0 -24
  43. package/src/variables/_colors.scss +0 -2
  44. package/src/variables/_degrees.scss +0 -1
  45. package/src/variables/index.scss +0 -2
  46. package/themes/default.css +0 -1
  47. /package/{src/base → base}/_preflight.scss +0 -0
  48. /package/{src/mixins → mixins}/_media.scss +0 -0
  49. /package/{src/mixins → mixins}/_util.scss +0 -0
  50. /package/{src/mixins → mixins}/index.scss +0 -0
@@ -1,822 +0,0 @@
1
- @use '../variables/colors';
2
- @use '../mixins/util';
3
-
4
- @each $color in colors.$color_names {
5
- @each $look in colors.$look_names {
6
- @if ($look == 'solid') {
7
- .ax-el-#{$color}-#{$look} {
8
- // @apply ax-bg-#{$color}-500 ax-text-#{$color}-fore ax-border-#{$color}-500;
9
- background-color: rgba(var(--ax-color-#{$color}-500));
10
- color: rgba(var(--ax-color-#{$color}-fore));
11
- border-color: rgba(var(--ax-color-#{$color}-500));
12
- &.ax-el-interactive {
13
- &:hover {
14
- &:not(.ax-state-disabled) {
15
- // @apply ax-bg-#{$color}-600;
16
- background-color: rgba(var(--ax-color-#{$color}-600));
17
- }
18
- }
19
- }
20
-
21
- &.ax-state-selected {
22
- // @apply ax-bg-#{$color}-700;
23
- background-color: rgba(var(--ax-color-#{$color}-700));
24
- }
25
- .ax-ripple {
26
- // @apply ax-bg-#{$color}-300/30 #{!important};
27
- background-color: rgba(var(--ax-color-#{$color}-300), 0.3) !important;
28
- }
29
- ax-loading-spinner {
30
- .ax-loader {
31
- // @apply ax-border-#{$color}-fore ax-border-b-transparent;
32
- border-color: rgba(var(--ax-color-#{$color}-fore));
33
- border-bottom-color: transparent;
34
- }
35
- }
36
- &:is(&:focus-visible, &.ax-state-focus) {
37
- // @apply ax-outline-#{$color}-500;
38
- outline-color: rgba(var(--ax-color-#{$color}-500));
39
- }
40
- & > button {
41
- &:is(&:focus-visible, &.ax-state-focus) {
42
- // @apply ax-outline-#{$color}-500;
43
- outline-color: rgba(var(--ax-color-#{$color}-500));
44
- }
45
- }
46
- &.ax-dropdown-button-marker {
47
- border-inline-start-color: rgba(var(--ax-color-#{$color}-600));
48
- }
49
- }
50
- }
51
-
52
- @if ($look == 'outline') {
53
- .ax-el-#{$color}-#{$look} {
54
- // @apply ax-border-#{$color}-500 ax-text-#{$color}-500 ax-border ax-bg-transparent;
55
- background-color: transparent;
56
- color: rgba(var(--ax-color-#{$color}-500));
57
- border-color: rgba(var(--ax-color-#{$color}-500));
58
- border-width: 1px;
59
- &.ax-el-interactive {
60
- &:hover {
61
- &:not(.ax-state-disabled) {
62
- // @apply ax-border-#{$color}-700 ax-text-#{$color}-700;
63
- color: rgba(var(--ax-color-#{$color}-700));
64
- border-color: rgba(var(--ax-color-#{$color}-700));
65
- }
66
- }
67
- }
68
- &.ax-state-selected {
69
- // @apply ax-border-#{$color}-500 ax-text-#{$color}-fore ax-bg-#{$color}-500;
70
- border-color: rgba(var(--ax-color-#{$color}-500));
71
- color: rgba(var(--ax-color-#{$color}-fore));
72
- background-color: rgba(var(--ax-color-#{$color}-500));
73
- }
74
- .ax-ripple {
75
- // @apply ax-bg-#{$color}-500/30 #{!important};
76
- background-color: rgba(var(--ax-color-#{$color}-500), 0.3) !important;
77
- }
78
- ax-loading-spinner {
79
- .ax-loader {
80
- // @apply ax-border-#{$color}-500 ax-border-b-transparent;
81
- border-color: rgba(var(--ax-color-#{$color}-500));
82
- border-bottom-color: transparent;
83
- }
84
- }
85
- &:is(&:focus-visible, &.ax-state-focus) {
86
- // @apply ax-text-#{$color}-fore-tint ax-outline-#{$color}-fore-tint -ax-outline-offset-4;
87
- outline-offset: -2px;
88
- outline-color: rgba(var(--ax-color-#{$color}-500));
89
- color: rgba(var(--ax-color-#{$color}-fore-tint));
90
- }
91
- & > button {
92
- &:is(&:focus-visible, &.ax-state-focus) {
93
- // @apply ax-text-#{$color}-fore-tint ax-outline-#{$color}-fore-tint -ax-outline-offset-4;
94
- outline-offset: -2px;
95
- outline-color: rgba(var(--ax-color-#{$color}-500));
96
- color: rgba(var(--ax-color-#{$color}-fore-tint));
97
- }
98
- }
99
- &.ax-dropdown-button-marker {
100
- border-inline-start-color: rgba(var(--ax-color-#{$color}-500));
101
- }
102
- }
103
- }
104
-
105
- @if ($look == 'blank') {
106
- .ax-el-#{$color}-#{$look} {
107
- // @apply ax-text-#{$color}-500;
108
- color: rgba(var(--ax-color-#{$color}-500));
109
-
110
- &.ax-el-interactive {
111
- &:hover {
112
- &:not(.ax-state-disabled) {
113
- // @apply ax-text-#{$color}-fore-tint;
114
- background-color: rgba(var(--ax-color-#{$color}-100));
115
- color: rgba(var(--ax-color-#{$color}-fore-tint));
116
- }
117
- }
118
- }
119
-
120
- &.ax-state-selected {
121
- // @apply ax-bg-#{$color}-700 ax-text-#{$color}-fore;
122
- background-color: rgba(var(--ax-color-#{$color}-700));
123
- color: rgba(var(--ax-color-#{$color}-fore));
124
- }
125
- .ax-ripple {
126
- // @apply ax-bg-#{$color}-500/30 #{!important};
127
- background-color: rgba(var(--ax-color-#{$color}-500), 0.3);
128
- }
129
- ax-loading-spinner {
130
- .ax-loader {
131
- // @apply ax-border-#{$color}-500 ax-border-b-transparent;
132
- border-color: rgba(var(--ax-color-#{$color}-500));
133
- border-bottom-color: transparent;
134
- }
135
- }
136
- &:is(&:focus-visible, &.ax-state-focus) {
137
- // @apply ax-outline-#{$color}-300 ax-outline-offset-0;
138
- outline-color: rgba(var(--ax-color-#{$color}-300));
139
- outline-offset: 0;
140
- }
141
- & > button {
142
- &:is(&:focus-visible, &.ax-state-focus) {
143
- // @apply ax-outline-#{$color}-300 ax-outline-offset-0;
144
- outline-color: rgba(var(--ax-color-#{$color}-300));
145
- outline-offset: 0;
146
- }
147
- }
148
- &.ax-dropdown-button-marker {
149
- border-inline-start-color: transparent;
150
- }
151
- }
152
- }
153
-
154
- @if ($look == 'twotone') {
155
- .ax-el-#{$color}-#{$look} {
156
- // @apply ax-bg-#{$color}-100 ax-text-#{$color}-fore-tint ax-border-#{$color}-100;
157
- background-color: rgba(var(--ax-color-#{$color}-100));
158
- color: rgba(var(--ax-color-#{$color}-fore-tint));
159
- border-color: rgba(var(--ax-color-#{$color}-100));
160
-
161
- &.ax-el-interactive {
162
- &:hover {
163
- &:not(.ax-state-disabled) {
164
- // @apply ax-bg-#{$color}-200;
165
- background-color: rgba(var(--ax-color-#{$color}-200));
166
- }
167
- }
168
- }
169
-
170
- &.ax-state-selected {
171
- // @apply ax-bg-#{$color}-300;
172
- background-color: rgba(var(--ax-color-#{$color}-300));
173
- }
174
-
175
- .ax-ripple {
176
- // @apply ax-bg-#{$color}-500/30 #{!important};
177
- background-color: rgba(var(--ax-color-#{$color}-500), 0.3) !important;
178
- }
179
- ax-loading-spinner {
180
- .ax-loader {
181
- // @apply ax-border-#{$color}-fore-tint ax-border-b-transparent;
182
- border-color: rgba(var(--ax-color-#{$color}-fore-tint));
183
- border-bottom-color: transparent;
184
- }
185
- }
186
-
187
- &:is(&:focus-visible, &.ax-state-focus) {
188
- // @apply ax-outline-#{$color}-500;
189
- outline-color: rgba(var(--ax-color-#{$color}-500));
190
- }
191
- & > button {
192
- &:is(&:focus-visible, &.ax-state-focus) {
193
- // @apply ax-outline-#{$color}-500;
194
- outline-color: rgba(var(--ax-color-#{$color}-500));
195
- }
196
- }
197
- &.ax-dropdown-button-marker {
198
- border-inline-start-color: rgba(var(--ax-color-#{$color}-50));
199
- }
200
- }
201
- }
202
-
203
- @if ($look == 'link') {
204
- .ax-el-#{$color}-#{$look} {
205
- // @apply ax-text-#{$color}-500;
206
- color: rgba(var(--ax-color-#{$color}-500));
207
-
208
- &.ax-el-interactive {
209
- &:hover {
210
- &:not(.ax-state-disabled) {
211
- // @apply ax-text-#{$color}-fore-tint;
212
- color: rgba(var(--ax-color-#{$color}-700));
213
- }
214
- }
215
- }
216
-
217
- &.ax-state-selected {
218
- // @apply ax-bg-#{$color}-700 ax-text-#{$color}-fore;
219
- background-color: rgba(var(--ax-color-#{$color}-700));
220
- color: rgba(var(--ax-color-#{$color}-fore));
221
- }
222
- .ax-ripple {
223
- // @apply ax-bg-#{$color}-500/30 #{!important};
224
- background-color: rgba(var(--ax-color-#{$color}-500), 0.3);
225
- }
226
- ax-loading-spinner {
227
- .ax-loader {
228
- // @apply ax-border-#{$color}-500 ax-border-b-transparent;
229
- border-color: rgba(var(--ax-color-#{$color}-500));
230
- border-bottom-color: transparent;
231
- }
232
- }
233
- &:is(&:focus-visible, &.ax-state-focus) {
234
- // @apply ax-outline-#{$color}-300 ax-outline-offset-0;
235
- outline-color: rgba(var(--ax-color-#{$color}-300));
236
- outline-offset: 0;
237
- }
238
- & > button {
239
- &:is(&:focus-visible, &.ax-state-focus) {
240
- // @apply ax-outline-#{$color}-300 ax-outline-offset-0;
241
- outline-color: rgba(var(--ax-color-#{$color}-300));
242
- outline-offset: 0;
243
- }
244
- }
245
- &.ax-dropdown-button-marker {
246
- border-inline-start-color: transparent;
247
- }
248
- }
249
- }
250
- }
251
- }
252
-
253
- .ax-el-ghost-solid {
254
- // @apply ax-border ax-border-default ax-bg-ghost ax-text-ghost-fore ax-shadow-sm;
255
- border-width: 1px;
256
- border-color: rgba(var(--ax-color-input-border));
257
- background-color: rgba(var(--ax-color-ghost));
258
- color: rgba(var(--ax-color-ghost-fore));
259
- &.ax-el-interactive {
260
- &:hover {
261
- &:not(&.ax-state-selected, &.ax-state-disabled) {
262
- // @apply ax-border-primary-500 ax-text-primary-500;
263
- background-color: rgba(var(--ax-color-ghost), 0.9);
264
- }
265
- }
266
- &:active {
267
- // @apply ax-border-primary-700 ax-text-primary-700;
268
- &:not(&.ax-state-selected, &.ax-state-disabled) {
269
- background-color: rgba(var(--ax-color-ghost), 0.8);
270
- }
271
- }
272
- }
273
-
274
- &.ax-state-selected {
275
- background-color: rgba(var(--ax-color-ghost-fore), 0.125);
276
- color: rgba(var(--ax-color-ghost-fore));
277
- border-style: none;
278
- }
279
-
280
- .ax-ripple {
281
- // @apply ax-bg-primary-500/30 #{!important};
282
- background-color: rgba(var(--ax-color-ghost-fore), 0.3) !important;
283
- }
284
- ax-loading-spinner {
285
- .ax-loader {
286
- // @apply ax-border-ghost-fore ax-border-b-transparent;
287
- border-color: rgba(var(--ax-color-ghost-fore));
288
- border-bottom-color: transparent;
289
- }
290
- }
291
- &.ax-dropdown-button-marker {
292
- border-inline-start-color: rgba(var(--ax-color-input-border));
293
- }
294
- }
295
- .ax-el-ghost-outline {
296
- // @apply ax-border ax-border-default ax-bg-transparent ax-text-ghost-fore;
297
- border-width: 1px;
298
- border-color: rgba(var(--ax-color-input-border));
299
- background-color: transparent;
300
- color: rgba(var(--ax-color-ghost-fore));
301
-
302
- &.ax-el-interactive {
303
- &:hover {
304
- &:not(&.ax-state-selected, &.ax-state-disabled) {
305
- // @apply ax-border-primary-500 ax-text-primary-500;
306
- border-color: rgba(var(--ax-color-ghost-fore), 0.4);
307
- }
308
- & + .ax-dropdown-button-marker {
309
- border-inline-start-color: rgba(var(--ax-color-ghost-fore), 0.4);
310
- }
311
- }
312
- }
313
-
314
- &.ax-state-selected {
315
- background-color: rgba(var(--ax-color-ghost-fore), 0.125);
316
- color: rgba(var(--ax-color-ghost-fore));
317
- border-style: none;
318
- }
319
- .ax-ripple {
320
- // @apply ax-bg-primary-500/30 #{!important};
321
- background-color: rgba(var(--ax-color-ghost-fore), 0.3) !important;
322
- }
323
- ax-loading-spinner {
324
- .ax-loader {
325
- // @apply ax-border-ghost-fore ax-border-b-transparent;
326
- border-color: rgba(var(--ax-color-ghost-fore));
327
- border-bottom-color: transparent;
328
- }
329
- }
330
- &.ax-dropdown-button-marker {
331
- border-inline-start-color: rgba(var(--ax-color-input-border));
332
- }
333
- }
334
- .ax-el-ghost-blank {
335
- // @apply ax-border-none ax-bg-transparent ax-text-ghost-fore;
336
- border-style: none;
337
- background-color: transparent;
338
- color: rgba(var(--ax-color-ghost-fore));
339
-
340
- &.ax-state-selected {
341
- background-color: rgba(var(--ax-color-ghost-fore), 0.125);
342
- color: rgba(var(--ax-color-ghost-fore));
343
- border-style: none;
344
- }
345
- &.ax-el-interactive {
346
- &:hover {
347
- &:not(&.ax-state-selected, &.ax-state-disabled) {
348
- // @apply ax-border-primary-700 ax-text-primary-700;
349
- background-color: rgba(var(--ax-color-ghost-fore), 0.05);
350
- border-color: rgba(var(--ax-color-ghost-fore), 0.05);
351
- }
352
- }
353
- &:active {
354
- // @apply ax-border-primary-800 ax-text-primary-800;
355
- &:not(&.ax-state-selected, &.ax-state-disabled) {
356
- background-color: rgba(var(--ax-color-ghost-fore), 0.1);
357
- border-color: rgba(var(--ax-color-ghost-fore), 0.1);
358
- color: rgba(var(--ax-color-ghost-fore));
359
- }
360
- }
361
- }
362
-
363
- .ax-ripple {
364
- // @apply ax-bg-primary-500/30 #{!important};
365
- background-color: rgba(var(--ax-color-ghost-fore), 0.3) !important;
366
- }
367
- ax-loading-spinner {
368
- .ax-loader {
369
- // @apply ax-border-ghost-fore ax-border-b-transparent;
370
- border-color: rgba(var(--ax-color-ghost-fore));
371
- border-bottom-color: transparent;
372
- }
373
- }
374
- & > button {
375
- &:is(&:focus-visible, &.ax-state-focus) {
376
- // @apply ax-outline-primary-500;
377
- border-color: rgba(var(--ax-color-ghost-fore), 0.2);
378
- }
379
- }
380
- &.ax-dropdown-button-marker {
381
- border-inline-start-color: rgba(var(--ax-color-input-border));
382
- }
383
- }
384
- .ax-el-ghost-twotone {
385
- // @apply ax-border-transparent ax-bg-ghost-fore/5 ax-text-ghost-fore;
386
- border-color: transparent;
387
- background-color: rgba(var(--ax-color-ghost-fore), 0.1);
388
- color: rgba(var(--ax-color-ghost-fore));
389
-
390
- &.ax-el-interactive {
391
- &:hover {
392
- &:not(&.ax-state-selected, &.ax-state-disabled) {
393
- // @apply ax-bg-primary-200 ax-text-primary-fore-tint;
394
- background-color: rgba(var(--ax-color-ghost-fore), 0.15);
395
- }
396
- & + .ax-dropdown-button-marker {
397
- background-color: rgba(var(--ax-color-ghost-fore), 0.15);
398
- }
399
- }
400
- &:active {
401
- // @apply ax-bg-primary-300 ax-text-primary-fore-tint;
402
- &:not(&.ax-state-selected, &.ax-state-disabled) {
403
- background-color: rgba(var(--ax-color-ghost-fore), 0.25);
404
- }
405
- }
406
- }
407
- &.ax-state-selected {
408
- background-color: rgba(var(--ax-color-ghost-fore), 0.25);
409
- color: rgba(var(--ax-color-ghost-fore));
410
- border-style: none;
411
- }
412
- .ax-ripple {
413
- // @apply ax-bg-primary-500/30 #{!important};
414
- background-color: rgba(var(--ax-color-ghost-fore), 0.3) !important;
415
- }
416
- ax-loading-spinner {
417
- .ax-loader {
418
- // @apply ax-border-ghost-fore ax-border-b-transparent;
419
- border-color: rgba(var(--ax-color-ghost-fore));
420
- border-bottom-color: transparent;
421
- }
422
- }
423
- & > button {
424
- &:is(&:focus-visible, &.ax-state-focus) {
425
- // @apply ax-outline-primary-500;
426
- outline-color: rgba(var(--ax-color-primary-500));
427
- }
428
- }
429
- &.ax-dropdown-button-marker {
430
- border-inline-start-color: rgba(var(--ax-color-input-border));
431
- }
432
- }
433
- .ax-el-ghost-link {
434
- // @apply ax-border-none ax-bg-transparent ax-text-ghost-fore;
435
- border-style: none;
436
- background-color: transparent;
437
- color: rgba(var(--ax-color-ghost-fore), 0.8);
438
-
439
- &.ax-state-selected {
440
- // @apply ax-bg-primary-500 ax-text-primary-fore;
441
- text-decoration: underline;
442
- }
443
-
444
- .ax-ripple {
445
- // @apply ax-bg-primary-500/30 #{!important};
446
- background-color: rgba(var(--ax-color-ghost-fore), 0.3) !important;
447
- }
448
- ax-loading-spinner {
449
- .ax-loader {
450
- // @apply ax-border-ghost-fore ax-border-b-transparent;
451
- border-color: rgba(var(--ax-color-ghost-fore));
452
- border-bottom-color: transparent;
453
- }
454
- }
455
- & > button {
456
- &:is(&:focus-visible, &.ax-state-focus) {
457
- // @apply ax-outline-primary-500;
458
- outline-color: rgba(var(--ax-color-primary-500));
459
- }
460
- }
461
- &.ax-dropdown-button-marker {
462
- border-inline-start-color: rgba(var(--ax-color-input-border));
463
- }
464
- }
465
-
466
- @mixin color-look-dark-mode {
467
- @each $color in colors.$color_names {
468
- @each $look in colors.$look_names {
469
- @if ($look == 'solid') {
470
- .ax-el-#{$color}-#{$look} {
471
- // @apply ax-bg-#{$color}-200 ax-text-#{$color}-fore-tint ax-border-#{$color}-200;
472
- background-color: rgba(var(--ax-color-#{$color}-200));
473
- color: rgba(var(--ax-color-#{$color}-fore-tint));
474
- border-color: rgba(var(--ax-color-#{$color}-200));
475
- &.ax-el-interactive {
476
- .ax-action-item-suffix ax-text {
477
- color: rgba(var(--ax-color-#{$color}-800));
478
- }
479
-
480
- &:hover {
481
- &:not(.ax-state-disabled) {
482
- // @apply ax-bg-#{$color}-300 ax-text-#{$color}-fore-tint;
483
- background-color: rgba(var(--ax-color-#{$color}-300));
484
- color: rgba(var(--ax-color-#{$color}-fore-tint));
485
- }
486
- }
487
- }
488
-
489
- &.ax-state-selected {
490
- // @apply ax-bg-#{$color}-400;
491
- background-color: rgba(var(--ax-color-#{$color}-400));
492
- }
493
- .ax-ripple {
494
- // @apply ax-bg-#{$color}-200/30 #{!important};
495
- background-color: rgba(var(--ax-color-#{$color}-500), 0.3) !important;
496
- }
497
- ax-loading-spinner {
498
- .ax-loader {
499
- // @apply ax-border-#{$color}-fore-tint ax-border-b-transparent;
500
- border-color: rgba(var(--ax-color-#{$color}-fore-tint));
501
- border-bottom-color: transparent;
502
- }
503
- }
504
- & > button {
505
- &:is(&:focus-visible, &.ax-state-focus) {
506
- outline-color: rgba(var(--ax-color-primary-200));
507
- }
508
- }
509
- &.ax-dropdown-button-marker {
510
- border-inline-start-color: rgba(var(--ax-color-#{$color}-900));
511
- }
512
- }
513
- }
514
- @if ($look == 'outline') {
515
- .ax-el-#{$color}-#{$look} {
516
- // @apply ax-border-#{$color}-200 ax-text-#{$color}-200;
517
-
518
- border-color: rgba(var(--ax-color-#{$color}-200));
519
- color: rgba(var(--ax-color-#{$color}-200));
520
-
521
- &.ax-el-interactive {
522
- &:hover {
523
- &:not(.ax-state-disabled) {
524
- // @apply ax-border-#{$color}-300 ax-text-#{$color}-300 ax-bg-transparent;
525
- border-color: rgba(var(--ax-color-#{$color}-300));
526
- color: rgba(var(--ax-color-#{$color}-300));
527
- background-color: transparent;
528
- }
529
- }
530
- }
531
-
532
- &.ax-state-selected {
533
- // @apply ax-bg-#{$color}-300 ax-text-#{$color}-fore;
534
- border-color: rgba(var(--ax-color-#{$color}-300));
535
- color: rgba(var(--ax-color-#{$color}-300));
536
- }
537
- .ax-ripple {
538
- // @apply ax-bg-#{$color}-500/30 #{!important};
539
- border-color: rgba(var(--ax-color-#{$color}-500), 0.3);
540
- }
541
- ax-loading-spinner {
542
- .ax-loader {
543
- // @apply ax-border-#{$color}-fore-tint ax-border-b-transparent;
544
- border-color: rgba(var(--ax-color-#{$color}-fore-tint));
545
- border-bottom-color: transparent;
546
- }
547
- }
548
- & > button {
549
- &:is(&:focus-visible, &.ax-state-focus) {
550
- // @apply ax-text-#{$color}-300 ax-outline-#{$color}-300 -ax-outline-offset-4;
551
- border-color: rgba(var(--ax-color-#{$color}-300));
552
- color: rgba(var(--ax-color-#{$color}-300));
553
- }
554
- }
555
- }
556
- }
557
- @if ($look == 'blank') {
558
- .ax-el-#{$color}-#{$look} {
559
- // @apply ax-text-#{$color}-300 ax-bg-transparent;
560
-
561
- color: rgba(var(--ax-color-#{$color}-300));
562
- background-color: transparent;
563
- &.ax-el-interactive {
564
- &:hover {
565
- &:not(.ax-state-disabled) {
566
- // @apply ax-text-#{$color}-500;
567
- background-color: rgba(var(--ax-color-#{$color}-200));
568
- color: rgba(var(--ax-color-#{$color}-fore-tint));
569
- .ax-action-item-suffix ax-text {
570
- color: rgba(var(--ax-color-#{$color}-800));
571
- }
572
- }
573
- }
574
- }
575
-
576
- &.ax-state-selected {
577
- // @apply ax-bg-#{$color}-500 ax-text-#{$color}-fore;
578
- background-color: rgba(var(--ax-color-#{$color}-500));
579
- color: rgba(var(--ax-color-#{$color}-fore));
580
- }
581
- .ax-ripple {
582
- // @apply ax-bg-#{$color}-500/30 #{!important};
583
- background-color: rgba(var(--ax-color-#{$color}-300), 0.3) !important;
584
- }
585
- ax-loading-spinner {
586
- .ax-loader {
587
- // @apply ax-border-#{$color}-fore-tint ax-border-b-transparent;
588
- border-color: rgba(var(--ax-color-#{$color}-fore-tint));
589
- border-bottom-color: transparent;
590
- }
591
- }
592
- & > button {
593
- &:is(&:focus-visible, &.ax-state-focus) {
594
- // @apply ax-outline-#{$color}-300 ax-outline-offset-0;
595
- }
596
- }
597
- }
598
- }
599
- @if ($look == 'twotone') {
600
- .ax-el-#{$color}-#{$look} {
601
- .ax-action-item-suffix ax-text {
602
- color: rgba(var(--ax-color-#{$color}-800));
603
- }
604
- // @apply ax-bg-#{$color}-200 ax-text-#{$color}-fore-tint ax-border-#{$color}-200;
605
-
606
- background-color: rgba(var(--ax-color-#{$color}-200));
607
- color: rgba(var(--ax-color-#{$color}-fore-tint));
608
- border-color: rgba(var(--ax-color-#{$color}-200));
609
-
610
- &.ax-state-interactive {
611
- &:hover {
612
- &:not(.ax-state-disabled) {
613
- background-color: rgba(var(--ax-color-#{$color}-300));
614
- // @apply ax-bg-#{$color}-300;
615
- }
616
- }
617
- }
618
-
619
- &.ax-state-selected {
620
- // @apply ax-bg-#{$color}-400;
621
- background-color: rgba(var(--ax-color-#{$color}-400));
622
- }
623
- .ax-ripple {
624
- // @apply ax-bg-#{$color}-500/30 #{!important};
625
- background-color: rgba(var(--ax-color-#{$color}-500), 0.3);
626
- }
627
- ax-loading-spinner {
628
- .ax-loader {
629
- // @apply ax-border-#{$color}-fore-tint ax-border-b-transparent;
630
- border-color: rgba(var(--ax-color-#{$color}-fore-tint));
631
- border-bottom-color: transparent;
632
- }
633
- }
634
- & > button {
635
- &:is(&:focus-visible, &.ax-state-focus) {
636
- // @apply ax-outline-#{$color}-500;
637
- }
638
- }
639
- &.ax-dropdown-button-marker {
640
- border-inline-start-color: rgba(var(--ax-color-#{$color}-950));
641
- }
642
- }
643
- }
644
- @if ($look == 'link') {
645
- .ax-el-#{$color}-#{$look} {
646
- // @apply ax-text-#{$color}-300 ax-bg-transparent;
647
-
648
- color: rgba(var(--ax-color-#{$color}-300));
649
- background-color: transparent;
650
- &.ax-el-interactive {
651
- &:hover {
652
- &:not(.ax-state-disabled) {
653
- // @apply ax-text-#{$color}-500;
654
- color: rgba(var(--ax-color-#{$color}-400));
655
- }
656
- }
657
- }
658
-
659
- &.ax-state-selected {
660
- // @apply ax-bg-#{$color}-500 ax-text-#{$color}-fore;
661
- background-color: rgba(var(--ax-color-#{$color}-500));
662
- color: rgba(var(--ax-color-#{$color}-fore));
663
- }
664
- .ax-ripple {
665
- // @apply ax-bg-#{$color}-500/30 #{!important};
666
- background-color: rgba(var(--ax-color-#{$color}-300), 0.3) !important;
667
- }
668
- ax-loading-spinner {
669
- .ax-loader {
670
- // @apply ax-border-#{$color}-fore-tint ax-border-b-transparent;
671
- border-color: rgba(var(--ax-color-#{$color}-fore-tint));
672
- border-bottom-color: transparent;
673
- }
674
- }
675
- & > button {
676
- &:is(&:focus-visible, &.ax-state-focus) {
677
- // @apply ax-outline-#{$color}-300 ax-outline-offset-0;
678
- }
679
- }
680
- }
681
- }
682
- }
683
- }
684
- .ax-el-ghost-solid {
685
- border-color: rgba(var(--ax-color-ghost), 0.5);
686
- background-color: rgba(var(--ax-color-ghost), 0.5);
687
-
688
- &.ax-el-interactive {
689
- &:hover {
690
- &:not(&.ax-state-selected, &.ax-state-disabled) {
691
- background-color: rgba(var(--ax-color-ghost), 0.75);
692
- border-color: rgba(var(--ax-color-ghost), 0.75);
693
- color: rgba(var(--ax-color-ghost-fore));
694
- }
695
- & + .ax-dropdown-button-marker {
696
- border-color: rgba(var(--ax-color-ghost), 0.75);
697
- background-color: rgba(var(--ax-color-ghost), 0.75);
698
- color: rgba(var(--ax-color-ghost-fore));
699
- }
700
- }
701
- &:active {
702
- &:not(&.ax-state-selected, &.ax-state-disabled) {
703
- border-color: rgba(var(--ax-color-ghost));
704
- background-color: rgba(var(--ax-color-ghost));
705
- color: rgba(var(--ax-color-ghost-fore));
706
- }
707
- }
708
- }
709
-
710
- &.ax-state-selected {
711
- border-color: rgba(var(--ax-color-ghost));
712
- background-color: rgba(var(--ax-color-ghost));
713
- color: rgba(var(--ax-color-ghost-fore));
714
- }
715
-
716
- .ax-ripple {
717
- background-color: rgba(var(--ax-color-ghost-fore), 0.2) !important;
718
- }
719
- }
720
- .ax-el-ghost-outline {
721
- border-color: rgba(var(--ax-color-ghost-fore), 0.5);
722
- &.ax-el-interactive {
723
- &:hover {
724
- &:not(&.ax-state-selected, &.ax-state-disabled) {
725
- border-color: rgba(var(--ax-color-ghost-fore), 0.75);
726
- }
727
- & + .ax-dropdown-button-marker {
728
- border-color: rgba(var(--ax-color-ghost-fore), 0.75);
729
- }
730
- }
731
- }
732
-
733
- &.ax-state-selected {
734
- border-color: rgba(var(--ax-color-ghost-fore));
735
- background-color: rgba(var(--ax-color-ghost));
736
- color: rgba(var(--ax-color-ghost-fore));
737
- }
738
- .ax-ripple {
739
- background-color: rgba(var(--ax-color-ghost-fore), 0.2) !important;
740
- }
741
- ax-loading-spinner {
742
- .ax-loader {
743
- border-color: rgba(var(--ax-color-ghost-fore));
744
- border-bottom-color: transparent;
745
- }
746
- }
747
- }
748
- .ax-el-ghost-blank {
749
- &.ax-state-selected {
750
- background-color: rgba(var(--ax-color-ghost));
751
- color: rgba(var(--ax-color-ghost-fore));
752
- }
753
- &.ax-el-interactive {
754
- &:hover {
755
- &:not(&.ax-state-selected, &.ax-state-disabled) {
756
- background-color: rgba(var(--ax-color-ghost), 0.5);
757
- }
758
- }
759
- &:active {
760
- &:not(&.ax-state-selected, &.ax-state-disabled) {
761
- background-color: rgba(var(--ax-color-ghost));
762
- }
763
- }
764
- }
765
-
766
- .ax-ripple {
767
- background-color: rgba(var(--ax-color-ghost-fore), 0.2) !important;
768
- }
769
-
770
- & > button {
771
- &:is(&:focus-visible, &.ax-state-focus) {
772
- outline-color: rgba(var(--ax-color-ghost-fore));
773
- }
774
- }
775
- }
776
- .ax-el-ghost-twotone {
777
- background-color: rgba(var(--ax-color-ghost), 0.3);
778
- &.ax-el-interactive {
779
- &:hover {
780
- &:not(&.ax-state-selected, &.ax-state-disabled) {
781
- background-color: rgba(var(--ax-color-ghost), 0.5);
782
- }
783
- & + .ax-dropdown-button-marker {
784
- background-color: rgba(var(--ax-color-ghost), 0.5);
785
- }
786
- }
787
- &:active {
788
- &:not(&.ax-state-selected, &.ax-state-disabled) {
789
- background-color: rgba(var(--ax-color-ghost), 0.8);
790
- }
791
- }
792
- }
793
- &.ax-state-selected {
794
- background-color: rgba(var(--ax-color-ghost), 0.8);
795
- color: rgba(var(--ax-color-ghost-fore));
796
- }
797
- .ax-ripple {
798
- background-color: rgba(var(--ax-color-ghost-fore), 0.2) !important;
799
- }
800
-
801
- & > button {
802
- &:is(&:focus-visible, &.ax-state-focus) {
803
- outline-color: rgba(var(--ax-color-ghost-fore));
804
- }
805
- }
806
- }
807
- .ax-el-ghost-link {
808
- .ax-ripple {
809
- background-color: rgba(var(--ax-color-ghost-fore), 0.2) !important;
810
- }
811
-
812
- & > button {
813
- &:is(&:focus-visible, &.ax-state-focus) {
814
- outline-color: rgba(var(--ax-color-ghost-fore));
815
- }
816
- }
817
- }
818
- }
819
-
820
- @include util.darkMode() {
821
- @include color-look-dark-mode();
822
- }