@lumx/core 3.9.5 → 3.9.6-alpha.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.
- package/css/design-tokens.css +52 -28
- package/js/constants/design-tokens.js +381 -39
- 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 +195 -39
- package/lumx.css +1 -1
- package/lumx.min.css +1 -1
- package/package.json +1 -1
- package/scss/_design-tokens.scss +116 -28
- package/scss/components/chip/_index.scss +75 -30
- package/scss/components/list/_mixins.scss +10 -6
- package/scss/components/navigation/_index.scss +43 -134
- package/scss/components/side-navigation/_index.scss +1 -1
- package/scss/core/state/_mixins.scss +35 -8
|
@@ -54,15 +54,24 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@mixin lumx-state-as-selected($state, $theme) {
|
|
57
|
+
@mixin lumx-state-as-selected($state, $theme, $component: null) {
|
|
58
58
|
@if $theme == lumx-base-const("theme", "LIGHT") {
|
|
59
59
|
@if $state == lumx-base-const("state", "DEFAULT") {
|
|
60
60
|
color: lumx-color-variant("primary", "D2");
|
|
61
|
-
background-color:
|
|
61
|
+
background-color: if($component,
|
|
62
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-background-color),
|
|
63
|
+
lumx-color-variant("primary", "L5"),
|
|
64
|
+
);
|
|
62
65
|
} @else if $state == lumx-base-const("state", "HOVER") {
|
|
63
|
-
background-color:
|
|
66
|
+
background-color: if($component,
|
|
67
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-background-color),
|
|
68
|
+
lumx-color-variant("primary", "L4"),
|
|
69
|
+
);
|
|
64
70
|
} @else if $state == lumx-base-const("state", "ACTIVE") {
|
|
65
|
-
background-color:
|
|
71
|
+
background-color: if($component,
|
|
72
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-background-color),
|
|
73
|
+
lumx-color-variant("primary", "L3"),
|
|
74
|
+
);
|
|
66
75
|
} @else if $state == lumx-base-const("state", "FOCUS") {
|
|
67
76
|
outline: 2px solid lumx-color-variant("dark", "N");
|
|
68
77
|
outline-offset: 2px;
|
|
@@ -70,16 +79,31 @@
|
|
|
70
79
|
} @else if $theme == lumx-base-const("theme", "DARK") {
|
|
71
80
|
@if $state == lumx-base-const("state", "DEFAULT") {
|
|
72
81
|
color: lumx-color-variant("light", "N");
|
|
73
|
-
background-color:
|
|
82
|
+
background-color: if($component,
|
|
83
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-background-color),
|
|
84
|
+
lumx-color-variant("light", "L3"),
|
|
85
|
+
);
|
|
74
86
|
} @else if $state == lumx-base-const("state", "HOVER") {
|
|
75
|
-
background-color:
|
|
87
|
+
background-color: if($component,
|
|
88
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-background-color),
|
|
89
|
+
lumx-color-variant("light", "L4"),
|
|
90
|
+
);
|
|
76
91
|
} @else if $state == lumx-base-const("state", "ACTIVE") {
|
|
77
|
-
background-color:
|
|
92
|
+
background-color: if($component,
|
|
93
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-background-color),
|
|
94
|
+
lumx-color-variant("light", "L5"),
|
|
95
|
+
);
|
|
78
96
|
} @else if $state == lumx-base-const("state", "FOCUS") {
|
|
79
97
|
outline: 2px solid lumx-color-variant("light", "N");
|
|
80
98
|
outline-offset: 2px;
|
|
81
99
|
}
|
|
82
100
|
}
|
|
101
|
+
|
|
102
|
+
@if $component and $state != lumx-base-const("state", "FOCUS") {
|
|
103
|
+
box-shadow: inset 0 0 0
|
|
104
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-border-width)
|
|
105
|
+
var(--lumx-#{$component}-emphasis-selected-#{$state}-#{$theme}-border-color);
|
|
106
|
+
}
|
|
83
107
|
}
|
|
84
108
|
|
|
85
109
|
@mixin lumx-state-low($state, $color) {
|
|
@@ -114,7 +138,10 @@
|
|
|
114
138
|
@mixin lumx-state($state, $emphasis, $color, $theme: null) {
|
|
115
139
|
@if $emphasis == lumx-base-const("emphasis", "HIGH") {
|
|
116
140
|
@include lumx-state-high($state, $color, $theme);
|
|
117
|
-
} @else if
|
|
141
|
+
} @else if (
|
|
142
|
+
$emphasis == lumx-base-const("emphasis", "MEDIUM")
|
|
143
|
+
or $emphasis == lumx-base-const("emphasis", "SELECTED")
|
|
144
|
+
) {
|
|
118
145
|
@include lumx-state-medium($state, $color);
|
|
119
146
|
} @else if $emphasis == lumx-base-const("emphasis", "LOW") {
|
|
120
147
|
@include lumx-state-low($state, $color);
|