@lumx/core 2.2.4 → 2.2.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/css/design-tokens.css +73 -73
- package/js/constants/design-tokens.js +485 -485
- package/js/constants/design-tokens.min.js +1 -1
- package/js/constants/design-tokens.min.js.map +1 -1
- package/js/constants/design-tokens.ts +178 -178
- package/lumx.css +1 -1
- package/lumx.min.css +1 -1
- package/package.json +2 -2
- package/scss/_design-tokens.scss +73 -73
- package/scss/components/badge/_index.scss +5 -1
- package/scss/components/flag/_index.scss +3 -3
- package/scss/components/icon/_index.scss +22 -0
- package/scss/components/icon/_mixins.scss +7 -2
- package/scss/components/message/_index.scss +1 -5
- package/scss/components/notification/_index.scss +6 -1
- package/scss/components/skeleton/_mixins.scss +0 -1
- package/scss/core/state/_mixins.scss +12 -2
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"version": "yarn version-changelog ../../CHANGELOG.md && yarn changelog-verify ../../CHANGELOG.md && git add ../../CHANGELOG.md"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
|
-
"version": "2.2.
|
|
45
|
+
"version": "2.2.5",
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.8.3",
|
|
48
48
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"moment": "^2.24.0",
|
|
83
83
|
"moment-range": "^4.0.2"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "9fff0cb17b4bea81da0cef7eca3f8b3c8a232bcc"
|
|
86
86
|
}
|
package/scss/_design-tokens.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Wed,
|
|
3
|
+
* Generated on Wed, 16 Feb 2022 15:35:03 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
$lumx-button-height: 36px !default;
|
|
@@ -373,42 +373,42 @@ $lumx-color-light-L3: rgba(255, 255, 255, 0.6) !default; // Base light color wit
|
|
|
373
373
|
$lumx-color-light-L4: rgba(255, 255, 255, 0.4) !default; // Base light color with 40% opacity
|
|
374
374
|
$lumx-color-light-L5: rgba(255, 255, 255, 0.2) !default; // Base light color with 20% opacity
|
|
375
375
|
$lumx-color-light-L6: rgba(255, 255, 255, 0.1) !default; // Base light color with 10% opacity
|
|
376
|
-
$lumx-color-blue-D2: rgb(
|
|
377
|
-
$lumx-color-blue-D1: rgb(
|
|
378
|
-
$lumx-color-blue-N: rgb(
|
|
379
|
-
$lumx-color-blue-L1: rgba(
|
|
380
|
-
$lumx-color-blue-L2: rgba(
|
|
381
|
-
$lumx-color-blue-L3: rgba(
|
|
382
|
-
$lumx-color-blue-L4: rgba(
|
|
383
|
-
$lumx-color-blue-L5: rgba(
|
|
384
|
-
$lumx-color-blue-L6: rgba(
|
|
385
|
-
$lumx-color-green-D2: rgb(
|
|
386
|
-
$lumx-color-green-D1: rgb(
|
|
387
|
-
$lumx-color-green-N: rgb(
|
|
388
|
-
$lumx-color-green-L1: rgba(
|
|
389
|
-
$lumx-color-green-L2: rgba(
|
|
390
|
-
$lumx-color-green-L3: rgba(
|
|
391
|
-
$lumx-color-green-L4: rgba(
|
|
392
|
-
$lumx-color-green-L5: rgba(
|
|
393
|
-
$lumx-color-green-L6: rgba(
|
|
394
|
-
$lumx-color-yellow-D2: rgb(255,
|
|
395
|
-
$lumx-color-yellow-D1: rgb(255,
|
|
396
|
-
$lumx-color-yellow-N: rgb(255,
|
|
397
|
-
$lumx-color-yellow-L1: rgba(255,
|
|
398
|
-
$lumx-color-yellow-L2: rgba(255,
|
|
399
|
-
$lumx-color-yellow-L3: rgba(255,
|
|
400
|
-
$lumx-color-yellow-L4: rgba(255,
|
|
401
|
-
$lumx-color-yellow-L5: rgba(255,
|
|
402
|
-
$lumx-color-yellow-L6: rgba(255,
|
|
403
|
-
$lumx-color-red-D2: rgb(
|
|
404
|
-
$lumx-color-red-D1: rgb(
|
|
405
|
-
$lumx-color-red-N: rgb(
|
|
406
|
-
$lumx-color-red-L1: rgba(
|
|
407
|
-
$lumx-color-red-L2: rgba(
|
|
408
|
-
$lumx-color-red-L3: rgba(
|
|
409
|
-
$lumx-color-red-L4: rgba(
|
|
410
|
-
$lumx-color-red-L5: rgba(
|
|
411
|
-
$lumx-color-red-L6: rgba(
|
|
376
|
+
$lumx-color-blue-D2: rgb(21, 70, 193) !default; // Darkest blue color
|
|
377
|
+
$lumx-color-blue-D1: rgb(24, 78, 216) !default; // Dark blue color
|
|
378
|
+
$lumx-color-blue-N: rgb(36, 91, 231) !default; // Neutral blue color
|
|
379
|
+
$lumx-color-blue-L1: rgba(36, 91, 231, 0.8) !default; // Base blue color with 80% opacity
|
|
380
|
+
$lumx-color-blue-L2: rgba(36, 91, 231, 0.6) !default; // Base blue color with 60% opacity
|
|
381
|
+
$lumx-color-blue-L3: rgba(36, 91, 231, 0.4) !default; // Base blue color with 40% opacity
|
|
382
|
+
$lumx-color-blue-L4: rgba(36, 91, 231, 0.2) !default; // Base blue color with 20% opacity
|
|
383
|
+
$lumx-color-blue-L5: rgba(36, 91, 231, 0.1) !default; // Base blue color with 10% opacity
|
|
384
|
+
$lumx-color-blue-L6: rgba(36, 91, 231, 0.05) !default; // Base blue color with 5% opacity
|
|
385
|
+
$lumx-color-green-D2: rgb(26, 110, 89) !default; // Darkest green color
|
|
386
|
+
$lumx-color-green-D1: rgb(23, 122, 97) !default; // Dark green color
|
|
387
|
+
$lumx-color-green-N: rgb(19, 134, 105) !default; // Neutral green color
|
|
388
|
+
$lumx-color-green-L1: rgba(19, 134, 105, 0.8) !default; // Base green color with 80% opacity
|
|
389
|
+
$lumx-color-green-L2: rgba(19, 134, 105, 0.6) !default; // Base green color with 60% opacity
|
|
390
|
+
$lumx-color-green-L3: rgba(19, 134, 105, 0.4) !default; // Base green color with 40% opacity
|
|
391
|
+
$lumx-color-green-L4: rgba(19, 134, 105, 0.2) !default; // Base green color with 20% opacity
|
|
392
|
+
$lumx-color-green-L5: rgba(19, 134, 105, 0.1) !default; // Base green color with 10% opacity
|
|
393
|
+
$lumx-color-green-L6: rgba(19, 134, 105, 0.05) !default; // Base green color with 5% opacity
|
|
394
|
+
$lumx-color-yellow-D2: rgb(255, 161, 37) !default; // Darkest yellow color
|
|
395
|
+
$lumx-color-yellow-D1: rgb(255, 179, 37) !default; // Dark yellow color
|
|
396
|
+
$lumx-color-yellow-N: rgb(255, 196, 37) !default; // Neutral yellow color
|
|
397
|
+
$lumx-color-yellow-L1: rgba(255, 196, 37, 0.9) !default; // Base yellow color with 80% opacity
|
|
398
|
+
$lumx-color-yellow-L2: rgba(255, 196, 37, 0.8) !default; // Base yellow color with 70% opacity
|
|
399
|
+
$lumx-color-yellow-L3: rgba(255, 196, 37, 0.6) !default; // Base yellow color with 60% opacity
|
|
400
|
+
$lumx-color-yellow-L4: rgba(255, 196, 37, 0.48) !default; // Base yellow color with 40% opacity
|
|
401
|
+
$lumx-color-yellow-L5: rgba(255, 196, 37, 0.24) !default; // Base yellow color with 20% opacity
|
|
402
|
+
$lumx-color-yellow-L6: rgba(255, 196, 37, 0.12) !default; // Base yellow color with 10% opacity
|
|
403
|
+
$lumx-color-red-D2: rgb(190, 30, 70) !default; // Darkest red color
|
|
404
|
+
$lumx-color-red-D1: rgb(212, 33, 72) !default; // Dark red color
|
|
405
|
+
$lumx-color-red-N: rgb(223, 48, 80) !default; // Neutral red color
|
|
406
|
+
$lumx-color-red-L1: rgba(223, 48, 80, 0.8) !default; // Base red color with 80% opacity
|
|
407
|
+
$lumx-color-red-L2: rgba(223, 48, 80, 0.6) !default; // Base red color with 60% opacity
|
|
408
|
+
$lumx-color-red-L3: rgba(223, 48, 80, 0.4) !default; // Base red color with 40% opacity
|
|
409
|
+
$lumx-color-red-L4: rgba(223, 48, 80, 0.2) !default; // Base red color with 20% opacity
|
|
410
|
+
$lumx-color-red-L5: rgba(223, 48, 80, 0.1) !default; // Base red color with 10% opacity
|
|
411
|
+
$lumx-color-red-L6: rgba(223, 48, 80, 0.05) !default; // Base red color with 5% opacity
|
|
412
412
|
$lumx-color-grey-N: rgb(117, 117, 117) !default; // Neutral grey color
|
|
413
413
|
$lumx-color-grey-L1: rgba(117, 117, 117, 0.8) !default; // Base grey color with 80% opacity
|
|
414
414
|
$lumx-color-grey-L2: rgba(117, 117, 117, 0.6) !default; // Base grey color with 60% opacity
|
|
@@ -416,33 +416,33 @@ $lumx-color-grey-L3: rgba(117, 117, 117, 0.4) !default; // Base grey color with
|
|
|
416
416
|
$lumx-color-grey-L4: rgba(117, 117, 117, 0.2) !default; // Base grey color with 20% opacity
|
|
417
417
|
$lumx-color-grey-L5: rgba(117, 117, 117, 0.1) !default; // Base grey color with 10% opacity
|
|
418
418
|
$lumx-color-grey-L6: rgba(117, 117, 117, 0.05) !default; // Base grey color with 5% opacity
|
|
419
|
-
$lumx-color-primary-D2: rgb(
|
|
420
|
-
$lumx-color-primary-D1: rgb(
|
|
421
|
-
$lumx-color-primary-N: rgb(
|
|
422
|
-
$lumx-color-primary-L1: rgba(
|
|
423
|
-
$lumx-color-primary-L2: rgba(
|
|
424
|
-
$lumx-color-primary-L3: rgba(
|
|
425
|
-
$lumx-color-primary-L4: rgba(
|
|
426
|
-
$lumx-color-primary-L5: rgba(
|
|
427
|
-
$lumx-color-primary-L6: rgba(
|
|
428
|
-
$lumx-color-secondary-D2: rgb(
|
|
429
|
-
$lumx-color-secondary-D1: rgb(
|
|
430
|
-
$lumx-color-secondary-N: rgb(
|
|
431
|
-
$lumx-color-secondary-L1: rgba(
|
|
432
|
-
$lumx-color-secondary-L2: rgba(
|
|
433
|
-
$lumx-color-secondary-L3: rgba(
|
|
434
|
-
$lumx-color-secondary-L4: rgba(
|
|
435
|
-
$lumx-color-secondary-L5: rgba(
|
|
436
|
-
$lumx-color-secondary-L6: rgba(
|
|
437
|
-
$lumx-color-accent-D2: rgb(
|
|
438
|
-
$lumx-color-accent-D1: rgb(
|
|
439
|
-
$lumx-color-accent-N: rgb(
|
|
440
|
-
$lumx-color-accent-L1: rgba(
|
|
441
|
-
$lumx-color-accent-L2: rgba(
|
|
442
|
-
$lumx-color-accent-L3: rgba(
|
|
443
|
-
$lumx-color-accent-L4: rgba(
|
|
444
|
-
$lumx-color-accent-L5: rgba(
|
|
445
|
-
$lumx-color-accent-L6: rgba(
|
|
419
|
+
$lumx-color-primary-D2: rgb(21, 70, 193) !default; // Darkest blue color
|
|
420
|
+
$lumx-color-primary-D1: rgb(24, 78, 216) !default; // Dark blue color
|
|
421
|
+
$lumx-color-primary-N: rgb(36, 91, 231) !default; // Neutral blue color
|
|
422
|
+
$lumx-color-primary-L1: rgba(36, 91, 231, 0.8) !default; // Base blue color with 80% opacity
|
|
423
|
+
$lumx-color-primary-L2: rgba(36, 91, 231, 0.6) !default; // Base blue color with 60% opacity
|
|
424
|
+
$lumx-color-primary-L3: rgba(36, 91, 231, 0.4) !default; // Base blue color with 40% opacity
|
|
425
|
+
$lumx-color-primary-L4: rgba(36, 91, 231, 0.2) !default; // Base blue color with 20% opacity
|
|
426
|
+
$lumx-color-primary-L5: rgba(36, 91, 231, 0.1) !default; // Base blue color with 10% opacity
|
|
427
|
+
$lumx-color-primary-L6: rgba(36, 91, 231, 0.05) !default; // Base blue color with 5% opacity
|
|
428
|
+
$lumx-color-secondary-D2: rgb(26, 110, 89) !default; // Darkest green color
|
|
429
|
+
$lumx-color-secondary-D1: rgb(23, 122, 97) !default; // Dark green color
|
|
430
|
+
$lumx-color-secondary-N: rgb(19, 134, 105) !default; // Neutral green color
|
|
431
|
+
$lumx-color-secondary-L1: rgba(19, 134, 105, 0.8) !default; // Base green color with 80% opacity
|
|
432
|
+
$lumx-color-secondary-L2: rgba(19, 134, 105, 0.6) !default; // Base green color with 60% opacity
|
|
433
|
+
$lumx-color-secondary-L3: rgba(19, 134, 105, 0.4) !default; // Base green color with 40% opacity
|
|
434
|
+
$lumx-color-secondary-L4: rgba(19, 134, 105, 0.2) !default; // Base green color with 20% opacity
|
|
435
|
+
$lumx-color-secondary-L5: rgba(19, 134, 105, 0.1) !default; // Base green color with 10% opacity
|
|
436
|
+
$lumx-color-secondary-L6: rgba(19, 134, 105, 0.05) !default; // Base green color with 5% opacity
|
|
437
|
+
$lumx-color-accent-D2: rgb(26, 110, 89) !default; // Darkest green color
|
|
438
|
+
$lumx-color-accent-D1: rgb(23, 122, 97) !default; // Dark green color
|
|
439
|
+
$lumx-color-accent-N: rgb(19, 134, 105) !default; // Neutral green color
|
|
440
|
+
$lumx-color-accent-L1: rgba(19, 134, 105, 0.8) !default; // Base green color with 80% opacity
|
|
441
|
+
$lumx-color-accent-L2: rgba(19, 134, 105, 0.6) !default; // Base green color with 60% opacity
|
|
442
|
+
$lumx-color-accent-L3: rgba(19, 134, 105, 0.4) !default; // Base green color with 40% opacity
|
|
443
|
+
$lumx-color-accent-L4: rgba(19, 134, 105, 0.2) !default; // Base green color with 20% opacity
|
|
444
|
+
$lumx-color-accent-L5: rgba(19, 134, 105, 0.1) !default; // Base green color with 10% opacity
|
|
445
|
+
$lumx-color-accent-L6: rgba(19, 134, 105, 0.05) !default; // Base green color with 5% opacity
|
|
446
446
|
$lumx-color-black-N: rgba(0, 0, 0, 0.87) !default; // Neutral dark color
|
|
447
447
|
$lumx-color-black-L1: rgba(0, 0, 0, 0.7) !default; // Base dark color with 70% opacity
|
|
448
448
|
$lumx-color-black-L2: rgba(0, 0, 0, 0.54) !default; // Base dark color with 54% opacity
|
|
@@ -457,15 +457,15 @@ $lumx-color-white-L3: rgba(255, 255, 255, 0.6) !default; // Base light color wit
|
|
|
457
457
|
$lumx-color-white-L4: rgba(255, 255, 255, 0.4) !default; // Base light color with 40% opacity
|
|
458
458
|
$lumx-color-white-L5: rgba(255, 255, 255, 0.2) !default; // Base light color with 20% opacity
|
|
459
459
|
$lumx-color-white-L6: rgba(255, 255, 255, 0.1) !default; // Base light color with 10% opacity
|
|
460
|
-
$lumx-color-orange-D2: rgb(255,
|
|
461
|
-
$lumx-color-orange-D1: rgb(255,
|
|
462
|
-
$lumx-color-orange-N: rgb(255,
|
|
463
|
-
$lumx-color-orange-L1: rgba(255,
|
|
464
|
-
$lumx-color-orange-L2: rgba(255,
|
|
465
|
-
$lumx-color-orange-L3: rgba(255,
|
|
466
|
-
$lumx-color-orange-L4: rgba(255,
|
|
467
|
-
$lumx-color-orange-L5: rgba(255,
|
|
468
|
-
$lumx-color-orange-L6: rgba(255,
|
|
460
|
+
$lumx-color-orange-D2: rgb(255, 161, 37) !default; // Darkest yellow color
|
|
461
|
+
$lumx-color-orange-D1: rgb(255, 179, 37) !default; // Dark yellow color
|
|
462
|
+
$lumx-color-orange-N: rgb(255, 196, 37) !default; // Neutral yellow color
|
|
463
|
+
$lumx-color-orange-L1: rgba(255, 196, 37, 0.9) !default; // Base yellow color with 80% opacity
|
|
464
|
+
$lumx-color-orange-L2: rgba(255, 196, 37, 0.8) !default; // Base yellow color with 70% opacity
|
|
465
|
+
$lumx-color-orange-L3: rgba(255, 196, 37, 0.6) !default; // Base yellow color with 60% opacity
|
|
466
|
+
$lumx-color-orange-L4: rgba(255, 196, 37, 0.48) !default; // Base yellow color with 40% opacity
|
|
467
|
+
$lumx-color-orange-L5: rgba(255, 196, 37, 0.24) !default; // Base yellow color with 20% opacity
|
|
468
|
+
$lumx-color-orange-L6: rgba(255, 196, 37, 0.12) !default; // Base yellow color with 10% opacity
|
|
469
469
|
$lumx-size-xxs: 14px !default;
|
|
470
470
|
$lumx-size-xs: 20px !default;
|
|
471
471
|
$lumx-size-s: 24px !default;
|
|
@@ -35,7 +35,11 @@
|
|
|
35
35
|
@if $key == 'light' {
|
|
36
36
|
@include lumx-elevation(2);
|
|
37
37
|
} @else {
|
|
38
|
-
|
|
38
|
+
@if $key == 'yellow' {
|
|
39
|
+
color: lumx-color-variant('dark', 'L1');
|
|
40
|
+
} @else {
|
|
41
|
+
color: lumx-color-variant('light', 'N');
|
|
42
|
+
}
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
|
|
29
29
|
.#{$lumx-base-prefix}-flag__label,
|
|
30
30
|
.#{$lumx-base-prefix}-flag__icon {
|
|
31
|
-
@if $key == 'dark' {
|
|
32
|
-
color: lumx-color-variant(
|
|
31
|
+
@if $key == 'dark' or $key == 'yellow' {
|
|
32
|
+
color: lumx-color-variant('dark', 'L1');
|
|
33
33
|
} @else {
|
|
34
|
-
color: lumx-color-variant($key, '
|
|
34
|
+
color: lumx-color-variant($key, 'N');
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -33,6 +33,28 @@
|
|
|
33
33
|
display: none;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
&--has-dark-layer {
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
&::after {
|
|
41
|
+
position: absolute;
|
|
42
|
+
z-index: 0;
|
|
43
|
+
top: $lumx-spacing-unit / 2;
|
|
44
|
+
right: $lumx-spacing-unit / 2;
|
|
45
|
+
bottom: $lumx-spacing-unit / 2;
|
|
46
|
+
left: $lumx-spacing-unit / 2;
|
|
47
|
+
background-color: lumx-color-variant('dark', 'L1');
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
content: '';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before,
|
|
53
|
+
svg {
|
|
54
|
+
position: relative;
|
|
55
|
+
z-index: 1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
36
58
|
}
|
|
37
59
|
|
|
38
60
|
/* Icon sizes
|
|
@@ -13,8 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
@mixin lumx-icon-color($color, $has-shape: false) {
|
|
15
15
|
@if $has-shape == true {
|
|
16
|
-
background-color: lumx-color-variant($color, '
|
|
17
|
-
|
|
16
|
+
background-color: lumx-color-variant($color, 'L6');
|
|
17
|
+
|
|
18
|
+
@if $color == 'yellow' {
|
|
19
|
+
color: lumx-color-variant('dark', 'L1');
|
|
20
|
+
} @else {
|
|
21
|
+
color: lumx-color-variant($color, 'N');
|
|
22
|
+
}
|
|
18
23
|
} @else if $has-shape == false {
|
|
19
24
|
@if $color == 'dark' {
|
|
20
25
|
color: lumx-color-variant('dark', 'L1');
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
@include lumx-typography('body1');
|
|
21
21
|
|
|
22
22
|
flex: 1 1 auto;
|
|
23
|
+
color: lumx-color-variant('dark', 'N');
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -31,10 +32,5 @@
|
|
|
31
32
|
&.#{$lumx-base-prefix}-message--has-background {
|
|
32
33
|
background-color: lumx-color-variant($color, 'L6');
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
.#{$lumx-base-prefix}-message__icon,
|
|
36
|
-
.#{$lumx-base-prefix}-message__text {
|
|
37
|
-
color: lumx-color-variant($color, 'D2');
|
|
38
|
-
}
|
|
39
35
|
}
|
|
40
36
|
}
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
height: $lumx-notification-height;
|
|
30
30
|
align-items: center;
|
|
31
31
|
justify-content: center;
|
|
32
|
-
color: lumx-color-variant('light', 'L3');
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
&__content {
|
|
@@ -62,5 +61,11 @@
|
|
|
62
61
|
@each $color in $lumx-notification-color-palette {
|
|
63
62
|
.#{$lumx-base-prefix}-notification--color-#{$color} .#{$lumx-base-prefix}-notification__icon {
|
|
64
63
|
background-color: lumx-color-variant($color, 'N');
|
|
64
|
+
|
|
65
|
+
@if $color == 'yellow' {
|
|
66
|
+
color: lumx-color-variant('dark', 'L1');
|
|
67
|
+
} @else {
|
|
68
|
+
color: lumx-color-variant('light', 'N');
|
|
69
|
+
}
|
|
65
70
|
}
|
|
66
71
|
}
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
@if $state == lumx-base-const('state', 'DEFAULT') {
|
|
3
3
|
@if $theme == lumx-base-const('theme', 'LIGHT') {
|
|
4
4
|
background-color: lumx-color-variant($color, 'N');
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
@if $color == 'yellow' {
|
|
7
|
+
color: lumx-color-variant('dark', 'L1');
|
|
8
|
+
} @else {
|
|
9
|
+
color: lumx-color-variant('light', 'N');
|
|
10
|
+
}
|
|
6
11
|
} @else if $theme == lumx-base-const('theme', 'DARK') {
|
|
7
12
|
background-color: lumx-color-variant('light', 'N');
|
|
8
13
|
color: lumx-color-variant($color, 'N');
|
|
@@ -31,7 +36,12 @@
|
|
|
31
36
|
@mixin lumx-state-medium($state, $color, $has-focus-inset: false) {
|
|
32
37
|
@if $state == lumx-base-const('state', 'DEFAULT') {
|
|
33
38
|
background-color: lumx-color-variant($color, 'L5');
|
|
34
|
-
|
|
39
|
+
|
|
40
|
+
@if $color == 'yellow' {
|
|
41
|
+
color: lumx-color-variant('dark', 'L1');
|
|
42
|
+
} @else {
|
|
43
|
+
color: lumx-color-variant($color, 'N');
|
|
44
|
+
}
|
|
35
45
|
} @else if $state == lumx-base-const('state', 'HOVER') {
|
|
36
46
|
background-color: lumx-color-variant($color, 'L4');
|
|
37
47
|
} @else if $state == lumx-base-const('state', 'ACTIVE') {
|