@ihk-gfi/lux-components-theme 11.13.0 → 14.0.0
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/README.md +15 -0
- package/package.json +7 -7
- package/prebuilt-themes/luxtheme-authentic-min.css +1 -0
- package/prebuilt-themes/luxtheme-authentic-min.css.map +1 -0
- package/prebuilt-themes/{luxtheme-orange.css → luxtheme-authentic.css} +6922 -4856
- package/prebuilt-themes/luxtheme-authentic.css.map +1 -0
- package/prebuilt-themes/luxtheme-blue-min.css +1 -1
- package/prebuilt-themes/luxtheme-blue-min.css.map +1 -1
- package/prebuilt-themes/luxtheme-blue.css +4624 -3171
- package/prebuilt-themes/luxtheme-blue.css.map +1 -1
- package/prebuilt-themes/luxtheme-green-min.css +1 -1
- package/prebuilt-themes/luxtheme-green-min.css.map +1 -1
- package/prebuilt-themes/luxtheme-green.css +4655 -3196
- package/prebuilt-themes/luxtheme-green.css.map +1 -1
- package/src/authentic/_custom.scss +873 -0
- package/src/authentic/_luxcommon.scss +128 -0
- package/src/authentic/_luxpalette.scss +106 -0
- package/src/authentic/luxtheme.scss +103 -0
- package/src/base/_luxcommon.scss +98 -0
- package/src/base/_luxcomponents.scss +521 -167
- package/src/base/_luxelevations.scss +49 -0
- package/src/base/_luxfocus.scss +220 -102
- package/src/base/_luxpalette.scss +9 -0
- package/src/base/_luxstyles.scss +162 -112
- package/src/base/_luxtheme.scss +10 -6
- package/src/base/components/_luxAppHeaderAc.scss +140 -0
- package/src/base/components/_luxFormControlWrapper.scss +173 -0
- package/src/base/components/_luxFormControlsAuthentic.scss +279 -0
- package/src/base/components/_luxLinkPlain.scss +56 -0
- package/src/base/components/_luxMasterDetailAc.scss +193 -0
- package/src/base/components/_luxTileAc.scss +64 -0
- package/src/blue/_custom.scss +101 -8
- package/src/blue/_luxcommon.scss +19 -2
- package/src/blue/_luxpalette.scss +4 -3
- package/src/blue/luxtheme.scss +101 -9
- package/src/green/_custom.scss +241 -124
- package/src/green/_luxcommon.scss +22 -5
- package/src/green/_luxpalette.scss +4 -3
- package/src/green/luxtheme.scss +103 -12
- package/src/public/global.scss +6 -10
- package/CHANGELOG.md +0 -84
- package/prebuilt-themes/luxtheme-orange-min.css +0 -1
- package/prebuilt-themes/luxtheme-orange-min.css.map +0 -1
- package/prebuilt-themes/luxtheme-orange.css.map +0 -1
- package/src/orange/_custom.scss +0 -66
- package/src/orange/_luxcommon.scss +0 -84
- package/src/orange/_luxpalette.scss +0 -106
- package/src/orange/luxtheme.scss +0 -10
package/src/base/_luxstyles.scss
CHANGED
|
@@ -1,73 +1,92 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:string";
|
|
4
|
+
@use "luxcommon";
|
|
5
|
+
@use "luxpalette";
|
|
6
|
+
@use "../public/global";
|
|
7
|
+
|
|
1
8
|
$sizes: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700;
|
|
2
|
-
$paletten:
|
|
9
|
+
$paletten: luxpalette.$lux-palette_primary, luxpalette.$lux-palette_accent, luxpalette.$lux-palette_warn;
|
|
3
10
|
$paletteNamen: primary, accent, warn;
|
|
4
11
|
|
|
5
12
|
:root {
|
|
6
13
|
@for $i from 1 through 3 {
|
|
7
14
|
@each $size in $sizes {
|
|
8
|
-
--lux-theme-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}: #{map
|
|
9
|
-
--lux-theme-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast: #{map
|
|
15
|
+
--lux-theme-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}: #{map.get(list.nth($paletten, $i), $size)};
|
|
16
|
+
--lux-theme-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast: #{map.get(list.nth($paletten, $i), contrast, $size)};
|
|
10
17
|
}
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
// Allgemein
|
|
14
|
-
--lux-theme-dark-primary-text: #{
|
|
15
|
-
--lux-theme-dark-secondary-text: #{
|
|
16
|
-
--lux-theme-dark-disabled-text: #{
|
|
17
|
-
--lux-theme-dark-dividers: #{
|
|
18
|
-
--lux-theme-dark-focused: #{
|
|
19
|
-
|
|
20
|
-
--lux-theme-light-primary-text: #{
|
|
21
|
-
--lux-theme-light-secondary-text: #{
|
|
22
|
-
--lux-theme-light-disabled-text: #{
|
|
23
|
-
--lux-theme-light-dividers: #{
|
|
24
|
-
--lux-theme-light-focused: #{
|
|
21
|
+
--lux-theme-dark-primary-text: #{luxcommon.$dark-primary-text};
|
|
22
|
+
--lux-theme-dark-secondary-text: #{luxcommon.$dark-secondary-text};
|
|
23
|
+
--lux-theme-dark-disabled-text: #{luxcommon.$dark-disabled-text};
|
|
24
|
+
--lux-theme-dark-dividers: #{luxcommon.$dark-dividers};
|
|
25
|
+
--lux-theme-dark-focused: #{luxcommon.$dark-focused};
|
|
26
|
+
|
|
27
|
+
--lux-theme-light-primary-text: #{luxcommon.$light-primary-text};
|
|
28
|
+
--lux-theme-light-secondary-text: #{luxcommon.$light-secondary-text};
|
|
29
|
+
--lux-theme-light-disabled-text: #{luxcommon.$light-disabled-text};
|
|
30
|
+
--lux-theme-light-dividers: #{luxcommon.$light-dividers};
|
|
31
|
+
--lux-theme-light-focused: #{luxcommon.$light-focused};
|
|
25
32
|
|
|
26
33
|
// App
|
|
27
|
-
--lux-theme-app-header-bg: #{
|
|
28
|
-
--lux-theme-app-content-bg: #{
|
|
29
|
-
--lux-theme-app-footer-bg: #{
|
|
30
|
-
--lux-theme-app-data-bg: #{
|
|
34
|
+
--lux-theme-app-header-bg: #{luxcommon.$app-header-bg};
|
|
35
|
+
--lux-theme-app-content-bg: #{luxcommon.$app-content-bg};
|
|
36
|
+
--lux-theme-app-footer-bg: #{luxcommon.$app-footer-bg};
|
|
37
|
+
--lux-theme-app-data-bg: #{luxcommon.$app-data-bg};
|
|
38
|
+
--lux-theme-app-gradient: #{luxcommon.$app-gradient};
|
|
39
|
+
--lux-theme-app-gradient-reverse: #{luxcommon.$app-gradient-reverse};
|
|
40
|
+
--lux-theme-app-border-color: #{app-border-color};
|
|
31
41
|
|
|
32
42
|
// Form
|
|
33
|
-
--lux-theme-form-border-color: #{
|
|
34
|
-
--lux-theme-form-control-default-height-not-scalable: #{
|
|
35
|
-
--lux-theme-form-control-height: #{
|
|
36
|
-
--lux-theme-form-control-height-small: #{
|
|
37
|
-
--lux-theme-form-control-font-size: #{
|
|
38
|
-
--lux-theme-form-control-font-size-small: #{
|
|
43
|
+
--lux-theme-form-border-color: #{luxcommon.$form-border-color};
|
|
44
|
+
--lux-theme-form-control-default-height-not-scalable: #{luxcommon.$form-control-default-height-not-scalable};
|
|
45
|
+
--lux-theme-form-control-height: #{luxcommon.$form-control-height};
|
|
46
|
+
--lux-theme-form-control-height-small: #{luxcommon.$form-control-height-small};
|
|
47
|
+
--lux-theme-form-control-font-size: #{luxcommon.$form-control-font-size};
|
|
48
|
+
--lux-theme-form-control-font-size-small: #{luxcommon.$form-control-font-size-small};
|
|
49
|
+
--lux-theme-form-control-label-padding: #{luxcommon.$form-control-label-padding};
|
|
50
|
+
--lux-theme-form-control-container-padding: #{luxcommon.$form-control-container-padding};
|
|
51
|
+
--lux-theme-form-control-misc-margin: #{luxcommon.$form-control-misc-margin};
|
|
52
|
+
--lux-theme-form-control-complete-height: #{luxcommon.$form-control-complete-height};
|
|
53
|
+
--lux-theme-form-control-buffer: #{luxcommon.$form-control-buffer};
|
|
54
|
+
--lux-theme-form-control-margin: #{luxcommon.$form-control-margin};
|
|
39
55
|
|
|
40
56
|
// Button
|
|
41
|
-
--lux-theme-button-
|
|
42
|
-
--lux-theme-button-
|
|
57
|
+
--lux-theme-button-font-size: #{luxcommon.$button-font-size};
|
|
58
|
+
--lux-theme-button-height: #{luxcommon.$button-height};
|
|
59
|
+
--lux-theme-button-fav-height: #{luxcommon.$button-fav-height};
|
|
43
60
|
|
|
44
61
|
// Fokus
|
|
45
|
-
--lux-theme-outline-
|
|
46
|
-
--lux-theme-outline-
|
|
62
|
+
--lux-theme-outline-width: #{luxcommon.$outline-width};
|
|
63
|
+
--lux-theme-outline-style: #{luxcommon.$outline-style};
|
|
64
|
+
--lux-theme-outline-color-bright: #{luxcommon.$outline-color-bright};
|
|
65
|
+
--lux-theme-outline-color-dark: #{luxcommon.$outline-color-dark};
|
|
47
66
|
|
|
48
67
|
// Hover
|
|
49
|
-
--lux-theme-hover-color: #{
|
|
50
|
-
--lux-theme-hover-color-for-dark-background: #{
|
|
68
|
+
--lux-theme-hover-color: #{luxcommon.$lux-hover-color};
|
|
69
|
+
--lux-theme-hover-color-for-dark-background: #{luxcommon.$lux-hover-color-for-dark-background};
|
|
51
70
|
|
|
52
71
|
// Selektion
|
|
53
|
-
--lux-theme-selected-border-color: #{
|
|
54
|
-
--lux-theme-selected-bg-color: #{
|
|
72
|
+
--lux-theme-selected-border-color: #{luxcommon.$lux-selected-border-color};
|
|
73
|
+
--lux-theme-selected-bg-color: #{luxcommon.$lux-selected-bg-color};
|
|
55
74
|
|
|
56
75
|
// Hauptfarben
|
|
57
|
-
--lux-theme-primary-color: #{map
|
|
58
|
-
--lux-theme-accent-color: #{map
|
|
59
|
-
--lux-theme-warn-color: #{map
|
|
76
|
+
--lux-theme-primary-color: #{map.get(luxpalette.$lux-palette_primary, 500)};
|
|
77
|
+
--lux-theme-accent-color: #{map.get(luxpalette.$lux-palette_accent, 500)};
|
|
78
|
+
--lux-theme-warn-color: #{map.get(luxpalette.$lux-palette_warn, 500)};
|
|
60
79
|
|
|
61
80
|
// Hintergrundfarben (z.B. Badge oder Progress)
|
|
62
|
-
@each $colorName, $colorNameHex in
|
|
81
|
+
@each $colorName, $colorNameHex in luxcommon.$componentBgColors {
|
|
63
82
|
--lux-theme-component-bg-#{''+$colorName+''}: #{$colorNameHex};
|
|
64
83
|
}
|
|
65
84
|
|
|
66
|
-
@each $colorName, $colorNameHex in
|
|
85
|
+
@each $colorName, $colorNameHex in luxcommon.$colorsForDarkBg {
|
|
67
86
|
--lux-theme-component-bg-dark-#{''+$colorName+''}: #{$colorNameHex};
|
|
68
87
|
}
|
|
69
88
|
|
|
70
|
-
@each $colorName, $colorNameHex in
|
|
89
|
+
@each $colorName, $colorNameHex in luxcommon.$componentFontColors {
|
|
71
90
|
--lux-theme-component-font-color-#{''+$colorName+''}: #{$colorNameHex};
|
|
72
91
|
}
|
|
73
92
|
}
|
|
@@ -79,7 +98,7 @@ body,
|
|
|
79
98
|
}
|
|
80
99
|
|
|
81
100
|
h1, h2, h3, h4, h5, h6 {
|
|
82
|
-
font-family:
|
|
101
|
+
font-family: luxcommon.$app-headline-font, global.$app-font-family;
|
|
83
102
|
}
|
|
84
103
|
|
|
85
104
|
h1 {
|
|
@@ -125,78 +144,92 @@ h6 {
|
|
|
125
144
|
}
|
|
126
145
|
|
|
127
146
|
.lux-app-header-bg {
|
|
128
|
-
background-color:
|
|
147
|
+
background-color: luxcommon.$app-header-bg;
|
|
129
148
|
}
|
|
130
149
|
|
|
131
150
|
.lux-app-content-bg {
|
|
132
|
-
background-color:
|
|
151
|
+
background-color: luxcommon.$app-content-bg;
|
|
133
152
|
}
|
|
134
153
|
|
|
135
154
|
.lux-app-footer-bg {
|
|
136
|
-
background-color:
|
|
155
|
+
background-color: luxcommon.$app-footer-bg;
|
|
137
156
|
}
|
|
138
157
|
|
|
139
158
|
.lux-app-data-bg {
|
|
140
|
-
background-color:
|
|
159
|
+
background-color: luxcommon.$app-data-bg;
|
|
141
160
|
}
|
|
142
161
|
|
|
143
162
|
.lux-selected-bg {
|
|
144
|
-
background-color:
|
|
163
|
+
background-color: luxcommon.$lux-selected-bg-color;
|
|
145
164
|
}
|
|
146
165
|
|
|
147
166
|
.lux-hover-bg {
|
|
148
|
-
background-color:
|
|
167
|
+
background-color: luxcommon.$lux-hover-color;
|
|
149
168
|
}
|
|
150
169
|
|
|
151
170
|
.lux-hover-dark-bg {
|
|
152
|
-
background-color:
|
|
171
|
+
background-color: luxcommon.$lux-hover-color-for-dark-background;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.lux-gradient-bg {
|
|
175
|
+
background-color: #fff; //Fallback
|
|
176
|
+
background-image: luxcommon.$app-gradient;
|
|
153
177
|
}
|
|
154
178
|
|
|
155
179
|
.lux-color-dark-divider {
|
|
156
|
-
color:
|
|
180
|
+
color: luxcommon.$dark-dividers;
|
|
157
181
|
}
|
|
158
182
|
|
|
159
183
|
.lux-color-light-divider {
|
|
160
|
-
color:
|
|
184
|
+
color: luxcommon.$light-dividers;
|
|
161
185
|
}
|
|
162
186
|
|
|
163
187
|
.lux-outline-color-light {
|
|
164
|
-
color:
|
|
188
|
+
color: luxcommon.$outline-color-bright;
|
|
165
189
|
}
|
|
166
190
|
|
|
167
191
|
.lux-outline-color-dark {
|
|
168
|
-
color:
|
|
192
|
+
color: luxcommon.$outline-color-dark;
|
|
169
193
|
}
|
|
170
194
|
|
|
171
195
|
.lux-outline-width {
|
|
172
|
-
outline-width:
|
|
196
|
+
outline-width: luxcommon.$outline-width;
|
|
173
197
|
}
|
|
174
198
|
|
|
175
199
|
.lux-outline-style {
|
|
176
|
-
outline-style:
|
|
200
|
+
outline-style: luxcommon.$outline-style;
|
|
177
201
|
}
|
|
178
202
|
|
|
179
203
|
.lux-outline-light {
|
|
180
|
-
color:
|
|
181
|
-
outline-width:
|
|
182
|
-
outline-style:
|
|
204
|
+
color: luxcommon.$outline-color-bright;
|
|
205
|
+
outline-width: luxcommon.$outline-width;
|
|
206
|
+
outline-style: luxcommon.$outline-style;
|
|
183
207
|
}
|
|
184
208
|
|
|
185
209
|
.lux-outline-dark {
|
|
186
|
-
color:
|
|
187
|
-
outline-width:
|
|
188
|
-
outline-style:
|
|
210
|
+
color: luxcommon.$outline-color-dark;
|
|
211
|
+
outline-width: luxcommon.$outline-width;
|
|
212
|
+
outline-style: luxcommon.$outline-style;
|
|
189
213
|
}
|
|
190
214
|
|
|
191
215
|
.lux-highlight-section {
|
|
192
216
|
-webkit-border-radius: 4px;
|
|
193
217
|
-moz-border-radius: 4px;
|
|
194
218
|
border-radius: 4px;
|
|
195
|
-
|
|
196
|
-
|
|
219
|
+
margin: 16px 0;
|
|
220
|
+
padding: 16px 16px;
|
|
221
|
+
border: 1px solid luxcommon.$dark-dividers;
|
|
197
222
|
display: flex;
|
|
198
|
-
margin: 0 0 16px 0;
|
|
199
223
|
word-break: break-word;
|
|
224
|
+
|
|
225
|
+
&.column {
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
gap: 16px;
|
|
228
|
+
}
|
|
229
|
+
&.row {
|
|
230
|
+
flex-direction: row;
|
|
231
|
+
gap: 16px;
|
|
232
|
+
}
|
|
200
233
|
}
|
|
201
234
|
|
|
202
235
|
.lux-highlight-section-label {
|
|
@@ -204,6 +237,19 @@ h6 {
|
|
|
204
237
|
margin-left: 0;
|
|
205
238
|
}
|
|
206
239
|
|
|
240
|
+
.lux-simple-form {
|
|
241
|
+
margin: 4px 0;
|
|
242
|
+
display: flex;
|
|
243
|
+
&.column {
|
|
244
|
+
flex-direction: column;
|
|
245
|
+
gap: 16px;
|
|
246
|
+
}
|
|
247
|
+
&.row {
|
|
248
|
+
flex-direction: row;
|
|
249
|
+
gap: 16px;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
207
253
|
.lux-app-container {
|
|
208
254
|
flex-direction: column;
|
|
209
255
|
box-sizing: border-box;
|
|
@@ -211,12 +257,19 @@ h6 {
|
|
|
211
257
|
flex: 1 1 100%;
|
|
212
258
|
}
|
|
213
259
|
|
|
260
|
+
.lux-tile-ac-wrapper-demo {
|
|
261
|
+
.lux-tile-ac {
|
|
262
|
+
width: 260px;
|
|
263
|
+
min-height: 120px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
214
267
|
body {
|
|
215
268
|
-webkit-overflow-scrolling: touch;
|
|
216
269
|
}
|
|
217
270
|
|
|
218
271
|
div {
|
|
219
|
-
font-family:
|
|
272
|
+
font-family: global.$app-font-family;
|
|
220
273
|
}
|
|
221
274
|
|
|
222
275
|
.cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
|
|
@@ -227,7 +280,7 @@ div {
|
|
|
227
280
|
}
|
|
228
281
|
|
|
229
282
|
.mat-dialog-container {
|
|
230
|
-
background-color:
|
|
283
|
+
background-color: luxcommon.$app-content-bg !important;
|
|
231
284
|
}
|
|
232
285
|
|
|
233
286
|
lux-card.lux-card-grow {
|
|
@@ -256,12 +309,12 @@ lux-card.lux-card-grow {
|
|
|
256
309
|
}
|
|
257
310
|
|
|
258
311
|
.lux-label {
|
|
259
|
-
color:
|
|
312
|
+
color: luxcommon.$dark-secondary-text;
|
|
260
313
|
font-size: 75%;
|
|
261
314
|
}
|
|
262
315
|
|
|
263
316
|
.lux-hint {
|
|
264
|
-
color:
|
|
317
|
+
color: luxcommon.$dark-secondary-text;
|
|
265
318
|
font-size: 12px;
|
|
266
319
|
}
|
|
267
320
|
|
|
@@ -298,7 +351,7 @@ lux-card.lux-card-grow {
|
|
|
298
351
|
}
|
|
299
352
|
|
|
300
353
|
.lux-black-semi-transparent {
|
|
301
|
-
color:
|
|
354
|
+
color: luxcommon.$dark-primary-text;
|
|
302
355
|
}
|
|
303
356
|
|
|
304
357
|
.lux-semi-transparent {
|
|
@@ -351,12 +404,9 @@ lux-card.lux-card-grow {
|
|
|
351
404
|
}
|
|
352
405
|
|
|
353
406
|
.lux-snackbar {
|
|
354
|
-
top: 68px;
|
|
355
|
-
right: 8px;
|
|
356
407
|
position: relative;
|
|
357
408
|
margin: 0 !important;
|
|
358
409
|
min-width: unset !important;
|
|
359
|
-
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
|
|
360
410
|
// Die Snackbar wird durch die App umpositioniert, bevor sie sichtbar geschaltet wird.
|
|
361
411
|
// Würde man die Snackbar nicht verstecken, würde sie von der initialen Position zur neuen
|
|
362
412
|
// springen.
|
|
@@ -395,21 +445,21 @@ lux-card.lux-card-grow {
|
|
|
395
445
|
$directions: "t", "b", "l", "r";
|
|
396
446
|
$directionsLong: "top", "bottom", "left", "right";
|
|
397
447
|
$pxStep: 2;
|
|
398
|
-
$steps: 0, 1, 2, 3, 4;
|
|
448
|
+
$steps: 0, 1, 2, 3, 4, 5, 6;
|
|
399
449
|
|
|
400
|
-
@for $i from 1 through length($directions) {
|
|
450
|
+
@for $i from 1 through list.length($directions) {
|
|
401
451
|
@each $step in $steps {
|
|
402
452
|
.lux-m-#{$step} {
|
|
403
453
|
margin: pow($pxStep, $step, px);
|
|
404
454
|
}
|
|
405
|
-
.lux-m#{nth($directions, $i)}-#{$step} {
|
|
406
|
-
margin-#{nth($directionsLong, $i)}: pow($pxStep, $step, px);
|
|
455
|
+
.lux-m#{list.nth($directions, $i)}-#{$step} {
|
|
456
|
+
margin-#{list.nth($directionsLong, $i)}: pow($pxStep, $step, px);
|
|
407
457
|
}
|
|
408
458
|
.lux-p-#{$step} {
|
|
409
459
|
padding: pow($pxStep, $step, px);
|
|
410
460
|
}
|
|
411
|
-
.lux-p#{nth($directions, $i)}-#{$step} {
|
|
412
|
-
padding-#{nth($directionsLong, $i)}: pow($pxStep, $step, px);
|
|
461
|
+
.lux-p#{list.nth($directions, $i)}-#{$step} {
|
|
462
|
+
padding-#{list.nth($directionsLong, $i)}: pow($pxStep, $step, px);
|
|
413
463
|
}
|
|
414
464
|
}
|
|
415
465
|
}
|
|
@@ -451,104 +501,104 @@ lux-button.lux-uppercase {
|
|
|
451
501
|
}
|
|
452
502
|
}
|
|
453
503
|
|
|
454
|
-
@each $colorName, $colorNameHex in
|
|
504
|
+
@each $colorName, $colorNameHex in luxcommon.$componentBgColors {
|
|
455
505
|
.lux-color-#{''+$colorName+''} {
|
|
456
506
|
color: $colorNameHex;
|
|
457
507
|
}
|
|
458
508
|
}
|
|
459
509
|
|
|
460
|
-
@each $colorName, $colorNameHex in
|
|
510
|
+
@each $colorName, $colorNameHex in luxcommon.$componentBgColors {
|
|
461
511
|
.lux-bg-color-#{''+$colorName+''} {
|
|
462
512
|
background: $colorNameHex;
|
|
463
513
|
}
|
|
464
514
|
}
|
|
465
515
|
|
|
466
|
-
@each $colorName, $colorNameHex in
|
|
516
|
+
@each $colorName, $colorNameHex in luxcommon.$componentFontColors {
|
|
467
517
|
.lux-font-color-#{''+$colorName+''} {
|
|
468
518
|
color: $colorNameHex;
|
|
469
519
|
}
|
|
470
520
|
}
|
|
471
521
|
|
|
472
522
|
.lux-color-dark-primary-text {
|
|
473
|
-
color:
|
|
523
|
+
color: luxcommon.$dark-primary-text;
|
|
474
524
|
}
|
|
475
525
|
|
|
476
526
|
.lux-color-dark-secondary-text {
|
|
477
|
-
color:
|
|
527
|
+
color: luxcommon.$dark-secondary-text;
|
|
478
528
|
}
|
|
479
529
|
|
|
480
530
|
.lux-color-dark-disabled-text {
|
|
481
|
-
color:
|
|
531
|
+
color: luxcommon.$dark-disabled-text;
|
|
482
532
|
}
|
|
483
533
|
|
|
484
534
|
.lux-color-dark-focused {
|
|
485
|
-
color:
|
|
535
|
+
color: luxcommon.$dark-focused;
|
|
486
536
|
}
|
|
487
537
|
|
|
488
538
|
.lux-color-light-primary-text {
|
|
489
|
-
color:
|
|
539
|
+
color: luxcommon.$light-primary-text;
|
|
490
540
|
}
|
|
491
541
|
|
|
492
542
|
.lux-color-light-secondary-text {
|
|
493
|
-
color:
|
|
543
|
+
color: luxcommon.$light-secondary-text;
|
|
494
544
|
}
|
|
495
545
|
|
|
496
546
|
.lux-color-light-disabled-text {
|
|
497
|
-
color:
|
|
547
|
+
color: luxcommon.$light-disabled-text;
|
|
498
548
|
}
|
|
499
549
|
|
|
500
550
|
.lux-color-light-focused {
|
|
501
|
-
color:
|
|
551
|
+
color: luxcommon.$light-focused;
|
|
502
552
|
}
|
|
503
553
|
|
|
504
554
|
@each $size in $sizes {
|
|
505
555
|
@for $i from 1 through 3 {
|
|
506
|
-
.lux-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
|
|
507
|
-
color: map
|
|
556
|
+
.lux-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
|
|
557
|
+
color: map.get(list.nth($paletten, $i), $size);
|
|
508
558
|
}
|
|
509
559
|
|
|
510
|
-
.lux-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
|
|
511
|
-
color: map
|
|
560
|
+
.lux-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast {
|
|
561
|
+
color: map.get(list.nth($paletten, $i), contrast, $size);
|
|
512
562
|
}
|
|
513
563
|
|
|
514
|
-
.lux-bg-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
|
|
515
|
-
background-color: map
|
|
564
|
+
.lux-bg-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
|
|
565
|
+
background-color: map.get(list.nth($paletten, $i), $size);
|
|
516
566
|
}
|
|
517
567
|
|
|
518
|
-
.lux-bg-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
|
|
519
|
-
background-color: map
|
|
568
|
+
.lux-bg-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast {
|
|
569
|
+
background-color: map.get(list.nth($paletten, $i), contrast, $size);
|
|
520
570
|
}
|
|
521
571
|
|
|
522
|
-
.lux-border-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
|
|
523
|
-
border-color: map
|
|
572
|
+
.lux-border-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
|
|
573
|
+
border-color: map.get(list.nth($paletten, $i), $size);
|
|
524
574
|
}
|
|
525
575
|
|
|
526
|
-
.lux-border-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
|
|
527
|
-
border-color: map
|
|
576
|
+
.lux-border-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast {
|
|
577
|
+
border-color: map.get(list.nth($paletten, $i), contrast, $size);
|
|
528
578
|
}
|
|
529
579
|
|
|
530
|
-
.lux-outline-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
|
|
531
|
-
outline-color: map
|
|
580
|
+
.lux-outline-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
|
|
581
|
+
outline-color: map.get(list.nth($paletten, $i), $size);
|
|
532
582
|
}
|
|
533
583
|
|
|
534
|
-
.lux-outline-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
|
|
535
|
-
outline-color: map
|
|
584
|
+
.lux-outline-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast {
|
|
585
|
+
outline-color: map.get(list.nth($paletten, $i), contrast, $size);
|
|
536
586
|
}
|
|
537
587
|
|
|
538
|
-
.lux-text-decoration-#{nth($paletteNamen, $i)}-color-#{to-lower-case("" + $size)} {
|
|
539
|
-
text-decoration-color: map
|
|
588
|
+
.lux-text-decoration-#{list.nth($paletteNamen, $i)}-color-#{string.to-lower-case("" + $size)} {
|
|
589
|
+
text-decoration-color: map.get(list.nth($paletten, $i), $size);
|
|
540
590
|
}
|
|
541
591
|
|
|
542
|
-
.lux-text-decoration-#{nth($paletteNamen, $i)}-color-#{to-lower-case("" + $size)}-contrast {
|
|
543
|
-
text-decoration-color: map
|
|
592
|
+
.lux-text-decoration-#{list.nth($paletteNamen, $i)}-color-#{string.to-lower-case("" + $size)}-contrast {
|
|
593
|
+
text-decoration-color: map.get(list.nth($paletten, $i), contrast, $size);
|
|
544
594
|
}
|
|
545
595
|
|
|
546
|
-
.lux-column-rule-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
|
|
547
|
-
column-rule-color: map
|
|
596
|
+
.lux-column-rule-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
|
|
597
|
+
column-rule-color: map.get(list.nth($paletten, $i), $size);
|
|
548
598
|
}
|
|
549
599
|
|
|
550
|
-
.lux-column-rule-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
|
|
551
|
-
column-rule-color: map
|
|
600
|
+
.lux-column-rule-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast {
|
|
601
|
+
column-rule-color: map.get(list.nth($paletten, $i), contrast, $size);
|
|
552
602
|
}
|
|
553
603
|
}
|
|
554
604
|
}
|
|
@@ -569,13 +619,13 @@ lux-button.lux-uppercase {
|
|
|
569
619
|
}
|
|
570
620
|
|
|
571
621
|
&.mat-badge:not(.mat-badge-disabled).mat-badge-accent .mat-badge-content {
|
|
572
|
-
background-color: map
|
|
622
|
+
background-color: map.get(luxcommon.$componentBgColors, "green");
|
|
573
623
|
}
|
|
574
624
|
|
|
575
625
|
&.lux-badge-color-default {
|
|
576
626
|
&.mat-badge:not(.mat-badge-disabled) .mat-badge-content {
|
|
577
627
|
color: white;
|
|
578
|
-
background:
|
|
628
|
+
background: map.get(luxcommon.$componentBgColors, "gray");
|
|
579
629
|
}
|
|
580
630
|
}
|
|
581
631
|
}
|
package/src/base/_luxtheme.scss
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$lux-warn: mat-palette($lux-palette_warn);
|
|
4
|
-
$lux-theme: mat-light-theme($lux-primary, $lux-accent, $lux-warn);
|
|
1
|
+
@use "@angular/material" as mat;
|
|
2
|
+
@use "luxpalette";
|
|
5
3
|
|
|
6
|
-
@include mat
|
|
7
|
-
|
|
4
|
+
@include mat.core();
|
|
5
|
+
|
|
6
|
+
$lux-primary: mat.define-palette(luxpalette.$lux-palette_primary);
|
|
7
|
+
$lux-accent: mat.define-palette(luxpalette.$lux-palette_accent);
|
|
8
|
+
$lux-warn: mat.define-palette(luxpalette.$lux-palette_warn);
|
|
9
|
+
$lux-theme: mat.define-light-theme($lux-primary, $lux-accent, $lux-warn);
|
|
10
|
+
|
|
11
|
+
@include mat.all-component-themes($lux-theme);
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "../luxfocus";
|
|
4
|
+
@use "../luxcommon";
|
|
5
|
+
@use "../luxpalette";
|
|
6
|
+
@use "../../public/global";
|
|
7
|
+
@use "../luxelevations";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
lux-app-header-ac {
|
|
11
|
+
display: block;
|
|
12
|
+
|
|
13
|
+
.lux-image {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
padding: 4px;
|
|
16
|
+
&:focus-visible {
|
|
17
|
+
@include luxfocus.focus-dark-mixin;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
}
|
|
20
|
+
&:hover {
|
|
21
|
+
@include luxfocus.lux-hovered-mixin;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
lux-button {
|
|
26
|
+
button.lux-button.lux-button-rounded {
|
|
27
|
+
min-width: 36px; //Weil der Menu-Trigger hier ein andere Min-width setzt- könnte vielleich geändert werden?
|
|
28
|
+
width: 36px;
|
|
29
|
+
padding-left: 0px !important;
|
|
30
|
+
padding-right: 0px !important;
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
@include luxelevations.lux-elevation-z0;
|
|
33
|
+
|
|
34
|
+
lux-icon {
|
|
35
|
+
color: luxpalette.$lux-primary-color;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover:not([disabled]).mat-fab:hover.mat-primary {
|
|
39
|
+
lux-icon { color: #ffffff !important; }
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
&:focus-visible:not([disabled]).mat-fab.mat-primary.cdk-focused.cdk-keyboard-focused {
|
|
43
|
+
background-color: transparent !important;
|
|
44
|
+
lux-icon {
|
|
45
|
+
color: map.get(luxpalette.$lux-palette_primary, 700) !important;
|
|
46
|
+
}
|
|
47
|
+
@include luxfocus.focus-dark-mixin;
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.menu-opened {
|
|
55
|
+
button.lux-button.lux-button-rounded {
|
|
56
|
+
background-color: map.get(luxpalette.$lux-palette_primary, 300);
|
|
57
|
+
lux-icon {
|
|
58
|
+
color: #ffffff !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.lux-menu-trigger-default {
|
|
64
|
+
button.mat-button.lux-button {
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: map.get(luxpalette.$lux-palette-primary, 300) !important;
|
|
67
|
+
color: #ffffff !important;
|
|
68
|
+
}
|
|
69
|
+
&:focus-visible:not(:hover) {
|
|
70
|
+
color: map.get(luxpalette.$lux-palette-primary, 700)!important;
|
|
71
|
+
background-color: transparent !important;
|
|
72
|
+
}
|
|
73
|
+
&:active {
|
|
74
|
+
color: map.get(luxpalette.$lux-palette-primary, 700)!important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.lux-app-header-top-bar {
|
|
81
|
+
padding: 4px 24px;
|
|
82
|
+
min-height: 52px;
|
|
83
|
+
font-size: 1rem;
|
|
84
|
+
color: luxcommon.$dark-primary-text;
|
|
85
|
+
background-color: #fff;
|
|
86
|
+
|
|
87
|
+
&.lux-mobile {
|
|
88
|
+
padding: 4px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
lux-menu {
|
|
92
|
+
width: unset;
|
|
93
|
+
.lux-menu-extended {
|
|
94
|
+
overflow: unset;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.lux-app-header-nav-bar {
|
|
100
|
+
background-color: map.get(luxpalette.$lux-palette-primary, 50);
|
|
101
|
+
padding: 4px 24px;
|
|
102
|
+
min-height: 30px;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
|
|
106
|
+
&.lux-mobile {
|
|
107
|
+
padding: 4px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.lux-app-title {
|
|
111
|
+
color:luxcommon.$dark-primary-text;
|
|
112
|
+
padding: 4px;
|
|
113
|
+
font-size: 20px;
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
font-family: luxcommon.$app-headline-font, luxcommon.$app-font-family;
|
|
116
|
+
|
|
117
|
+
&.lux-mobile {
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
font-weight: 500;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.lux-header-ac-nav-menu {
|
|
124
|
+
lux-button.lux-menu-item {
|
|
125
|
+
button.lux-button .lux-button-label {
|
|
126
|
+
font-size: 16px !important;
|
|
127
|
+
letter-spacing: 0px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.nav-item-selected button.lux-button .lux-button-label {
|
|
131
|
+
font-weight: 600;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.lux-menu-extended {
|
|
136
|
+
padding: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|