@ihk-gfi/lux-components-theme 13.0.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.
Files changed (48) hide show
  1. package/README.md +9 -0
  2. package/package.json +7 -7
  3. package/prebuilt-themes/luxtheme-authentic-min.css +1 -0
  4. package/prebuilt-themes/luxtheme-authentic-min.css.map +1 -0
  5. package/prebuilt-themes/{luxtheme-orange.css → luxtheme-authentic.css} +6676 -4808
  6. package/prebuilt-themes/luxtheme-authentic.css.map +1 -0
  7. package/prebuilt-themes/luxtheme-blue-min.css +1 -1
  8. package/prebuilt-themes/luxtheme-blue-min.css.map +1 -1
  9. package/prebuilt-themes/luxtheme-blue.css +4517 -3253
  10. package/prebuilt-themes/luxtheme-blue.css.map +1 -1
  11. package/prebuilt-themes/luxtheme-green-min.css +1 -1
  12. package/prebuilt-themes/luxtheme-green-min.css.map +1 -1
  13. package/prebuilt-themes/luxtheme-green.css +4559 -3310
  14. package/prebuilt-themes/luxtheme-green.css.map +1 -1
  15. package/src/authentic/_custom.scss +873 -0
  16. package/src/authentic/_luxcommon.scss +128 -0
  17. package/src/authentic/_luxpalette.scss +106 -0
  18. package/src/authentic/luxtheme.scss +103 -0
  19. package/src/base/_luxcommon.scss +98 -0
  20. package/src/base/_luxcomponents.scss +374 -188
  21. package/src/base/_luxelevations.scss +8 -10
  22. package/src/base/_luxfocus.scss +196 -100
  23. package/src/base/_luxpalette.scss +9 -0
  24. package/src/base/_luxstyles.scss +139 -116
  25. package/src/base/_luxtheme.scss +10 -6
  26. package/src/base/components/_luxAppHeaderAc.scss +140 -0
  27. package/src/base/components/_luxFormControlWrapper.scss +173 -0
  28. package/src/base/components/_luxFormControlsAuthentic.scss +279 -0
  29. package/src/base/components/_luxLinkPlain.scss +56 -0
  30. package/src/base/components/_luxMasterDetailAc.scss +193 -0
  31. package/src/base/components/_luxTileAc.scss +64 -0
  32. package/src/blue/_custom.scss +103 -1
  33. package/src/blue/_luxcommon.scss +13 -2
  34. package/src/blue/_luxpalette.scss +4 -3
  35. package/src/blue/luxtheme.scss +102 -10
  36. package/src/green/_custom.scss +201 -104
  37. package/src/green/_luxcommon.scss +16 -5
  38. package/src/green/_luxpalette.scss +4 -3
  39. package/src/green/luxtheme.scss +103 -13
  40. package/src/public/global.scss +6 -10
  41. package/prebuilt-themes/luxtheme-orange-min.css +0 -1
  42. package/prebuilt-themes/luxtheme-orange-min.css.map +0 -1
  43. package/prebuilt-themes/luxtheme-orange.css.map +0 -1
  44. package/src/base/_luxicons.scss +0 -2
  45. package/src/orange/_custom.scss +0 -66
  46. package/src/orange/_luxcommon.scss +0 -90
  47. package/src/orange/_luxpalette.scss +0 -106
  48. package/src/orange/luxtheme.scss +0 -10
@@ -0,0 +1,9 @@
1
+ @use "sass:map";
2
+
3
+ $lux-palette_primary: () !default;
4
+ $lux-palette_accent: () !default;
5
+ $lux-palette_warn: () !default;
6
+
7
+ $lux-primary-color: mustOverriden !default;
8
+ $lux-accent-color: mustOverriden !default;
9
+ $lux-warn-color: mustOverriden !default;
@@ -1,79 +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: $lux-palette_primary, $lux-palette_accent, $lux-palette_warn;
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-get(nth($paletten, $i), $size)};
9
- --lux-theme-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast: #{map-get(nth($paletten, $i), contrast, $size)};
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: #{$dark-primary-text};
15
- --lux-theme-dark-secondary-text: #{$dark-secondary-text};
16
- --lux-theme-dark-disabled-text: #{$dark-disabled-text};
17
- --lux-theme-dark-dividers: #{$dark-dividers};
18
- --lux-theme-dark-focused: #{$dark-focused};
19
-
20
- --lux-theme-light-primary-text: #{$light-primary-text};
21
- --lux-theme-light-secondary-text: #{$light-secondary-text};
22
- --lux-theme-light-disabled-text: #{$light-disabled-text};
23
- --lux-theme-light-dividers: #{$light-dividers};
24
- --lux-theme-light-focused: #{$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: #{$app-header-bg};
28
- --lux-theme-app-content-bg: #{$app-content-bg};
29
- --lux-theme-app-footer-bg: #{$app-footer-bg};
30
- --lux-theme-app-data-bg: #{$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: #{$form-border-color};
34
- --lux-theme-form-control-default-height-not-scalable: #{$form-control-default-height-not-scalable};
35
- --lux-theme-form-control-height: #{$form-control-height};
36
- --lux-theme-form-control-height-small: #{$form-control-height-small};
37
- --lux-theme-form-control-font-size: #{$form-control-font-size};
38
- --lux-theme-form-control-font-size-small: #{$form-control-font-size-small};
39
- --lux-theme-form-control-label-padding: #{$form-control-label-padding};
40
- --lux-theme-form-control-container-padding: #{$form-control-container-padding};
41
- --lux-theme-form-control-misc-margin: #{$form-control-misc-margin};
42
- --lux-theme-form-control-complete-height: #{$form-control-complete-height};
43
- --lux-theme-form-control-buffer: #{$form-control-buffer};
44
- --lux-theme-form-control-margin: #{$form-control-margin};
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};
45
55
 
46
56
  // Button
47
- --lux-theme-button-height: #{$button-height};
48
- --lux-theme-button-fav-height: #{$button-fav-height};
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};
49
60
 
50
61
  // Fokus
51
- --lux-theme-outline-color-bright: #{$outline-color-bright};
52
- --lux-theme-outline-color-dark: #{$outline-color-dark};
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};
53
66
 
54
67
  // Hover
55
- --lux-theme-hover-color: #{$lux-hover-color};
56
- --lux-theme-hover-color-for-dark-background: #{$lux-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};
57
70
 
58
71
  // Selektion
59
- --lux-theme-selected-border-color: #{$lux-selected-border-color};
60
- --lux-theme-selected-bg-color: #{$lux-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};
61
74
 
62
75
  // Hauptfarben
63
- --lux-theme-primary-color: #{map-get($lux-palette_primary, 500)};
64
- --lux-theme-accent-color: #{map-get($lux-palette_accent, 500)};
65
- --lux-theme-warn-color: #{map-get($lux-palette_warn, 500)};
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)};
66
79
 
67
80
  // Hintergrundfarben (z.B. Badge oder Progress)
68
- @each $colorName, $colorNameHex in $componentBgColors {
81
+ @each $colorName, $colorNameHex in luxcommon.$componentBgColors {
69
82
  --lux-theme-component-bg-#{''+$colorName+''}: #{$colorNameHex};
70
83
  }
71
84
 
72
- @each $colorName, $colorNameHex in $colorsForDarkBg {
85
+ @each $colorName, $colorNameHex in luxcommon.$colorsForDarkBg {
73
86
  --lux-theme-component-bg-dark-#{''+$colorName+''}: #{$colorNameHex};
74
87
  }
75
88
 
76
- @each $colorName, $colorNameHex in $componentFontColors {
89
+ @each $colorName, $colorNameHex in luxcommon.$componentFontColors {
77
90
  --lux-theme-component-font-color-#{''+$colorName+''}: #{$colorNameHex};
78
91
  }
79
92
  }
@@ -85,7 +98,7 @@ body,
85
98
  }
86
99
 
87
100
  h1, h2, h3, h4, h5, h6 {
88
- font-family: $app-font-family;
101
+ font-family: luxcommon.$app-headline-font, global.$app-font-family;
89
102
  }
90
103
 
91
104
  h1 {
@@ -131,67 +144,72 @@ h6 {
131
144
  }
132
145
 
133
146
  .lux-app-header-bg {
134
- background-color: $app-header-bg;
147
+ background-color: luxcommon.$app-header-bg;
135
148
  }
136
149
 
137
150
  .lux-app-content-bg {
138
- background-color: $app-content-bg;
151
+ background-color: luxcommon.$app-content-bg;
139
152
  }
140
153
 
141
154
  .lux-app-footer-bg {
142
- background-color: $app-footer-bg;
155
+ background-color: luxcommon.$app-footer-bg;
143
156
  }
144
157
 
145
158
  .lux-app-data-bg {
146
- background-color: $app-data-bg;
159
+ background-color: luxcommon.$app-data-bg;
147
160
  }
148
161
 
149
162
  .lux-selected-bg {
150
- background-color: $lux-selected-bg-color;
163
+ background-color: luxcommon.$lux-selected-bg-color;
151
164
  }
152
165
 
153
166
  .lux-hover-bg {
154
- background-color: $lux-hover-color;
167
+ background-color: luxcommon.$lux-hover-color;
155
168
  }
156
169
 
157
170
  .lux-hover-dark-bg {
158
- background-color: $lux-hover-color-for-dark-background;
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;
159
177
  }
160
178
 
161
179
  .lux-color-dark-divider {
162
- color: $dark-dividers;
180
+ color: luxcommon.$dark-dividers;
163
181
  }
164
182
 
165
183
  .lux-color-light-divider {
166
- color: $light-dividers;
184
+ color: luxcommon.$light-dividers;
167
185
  }
168
186
 
169
187
  .lux-outline-color-light {
170
- color: $outline-color-bright;
188
+ color: luxcommon.$outline-color-bright;
171
189
  }
172
190
 
173
191
  .lux-outline-color-dark {
174
- color: $outline-color-dark;
192
+ color: luxcommon.$outline-color-dark;
175
193
  }
176
194
 
177
195
  .lux-outline-width {
178
- outline-width: $outline-width;
196
+ outline-width: luxcommon.$outline-width;
179
197
  }
180
198
 
181
199
  .lux-outline-style {
182
- outline-style: $outline-style;
200
+ outline-style: luxcommon.$outline-style;
183
201
  }
184
202
 
185
203
  .lux-outline-light {
186
- color: $outline-color-bright;
187
- outline-width: $outline-width;
188
- outline-style: $outline-style;
204
+ color: luxcommon.$outline-color-bright;
205
+ outline-width: luxcommon.$outline-width;
206
+ outline-style: luxcommon.$outline-style;
189
207
  }
190
208
 
191
209
  .lux-outline-dark {
192
- color: $outline-color-dark;
193
- outline-width: $outline-width;
194
- outline-style: $outline-style;
210
+ color: luxcommon.$outline-color-dark;
211
+ outline-width: luxcommon.$outline-width;
212
+ outline-style: luxcommon.$outline-style;
195
213
  }
196
214
 
197
215
  .lux-highlight-section {
@@ -200,7 +218,7 @@ h6 {
200
218
  border-radius: 4px;
201
219
  margin: 16px 0;
202
220
  padding: 16px 16px;
203
- border: 1px solid $dark-dividers;
221
+ border: 1px solid luxcommon.$dark-dividers;
204
222
  display: flex;
205
223
  word-break: break-word;
206
224
 
@@ -239,12 +257,19 @@ h6 {
239
257
  flex: 1 1 100%;
240
258
  }
241
259
 
260
+ .lux-tile-ac-wrapper-demo {
261
+ .lux-tile-ac {
262
+ width: 260px;
263
+ min-height: 120px;
264
+ }
265
+ }
266
+
242
267
  body {
243
268
  -webkit-overflow-scrolling: touch;
244
269
  }
245
270
 
246
271
  div {
247
- font-family: $app-font-family;
272
+ font-family: global.$app-font-family;
248
273
  }
249
274
 
250
275
  .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
@@ -255,7 +280,7 @@ div {
255
280
  }
256
281
 
257
282
  .mat-dialog-container {
258
- background-color: $app-content-bg !important;
283
+ background-color: luxcommon.$app-content-bg !important;
259
284
  }
260
285
 
261
286
  lux-card.lux-card-grow {
@@ -284,17 +309,17 @@ lux-card.lux-card-grow {
284
309
  }
285
310
 
286
311
  .lux-label {
287
- color: $dark-secondary-text;
312
+ color: luxcommon.$dark-secondary-text;
288
313
  font-size: 75%;
289
314
  }
290
315
 
291
316
  .lux-hint {
292
- color: $dark-secondary-text;
317
+ color: luxcommon.$dark-secondary-text;
293
318
  font-size: 12px;
294
319
  }
295
320
 
296
321
  .lux-display-none {
297
- display: none !important;
322
+ display: none;
298
323
  }
299
324
 
300
325
  .lux-display-none-important {
@@ -326,7 +351,7 @@ lux-card.lux-card-grow {
326
351
  }
327
352
 
328
353
  .lux-black-semi-transparent {
329
- color: $dark-primary-text;
354
+ color: luxcommon.$dark-primary-text;
330
355
  }
331
356
 
332
357
  .lux-semi-transparent {
@@ -379,8 +404,6 @@ lux-card.lux-card-grow {
379
404
  }
380
405
 
381
406
  .lux-snackbar {
382
- top: 68px;
383
- right: 8px;
384
407
  position: relative;
385
408
  margin: 0 !important;
386
409
  min-width: unset !important;
@@ -422,21 +445,21 @@ lux-card.lux-card-grow {
422
445
  $directions: "t", "b", "l", "r";
423
446
  $directionsLong: "top", "bottom", "left", "right";
424
447
  $pxStep: 2;
425
- $steps: 0, 1, 2, 3, 4;
448
+ $steps: 0, 1, 2, 3, 4, 5, 6;
426
449
 
427
- @for $i from 1 through length($directions) {
450
+ @for $i from 1 through list.length($directions) {
428
451
  @each $step in $steps {
429
452
  .lux-m-#{$step} {
430
453
  margin: pow($pxStep, $step, px);
431
454
  }
432
- .lux-m#{nth($directions, $i)}-#{$step} {
433
- 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);
434
457
  }
435
458
  .lux-p-#{$step} {
436
459
  padding: pow($pxStep, $step, px);
437
460
  }
438
- .lux-p#{nth($directions, $i)}-#{$step} {
439
- 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);
440
463
  }
441
464
  }
442
465
  }
@@ -478,104 +501,104 @@ lux-button.lux-uppercase {
478
501
  }
479
502
  }
480
503
 
481
- @each $colorName, $colorNameHex in $componentBgColors {
504
+ @each $colorName, $colorNameHex in luxcommon.$componentBgColors {
482
505
  .lux-color-#{''+$colorName+''} {
483
506
  color: $colorNameHex;
484
507
  }
485
508
  }
486
509
 
487
- @each $colorName, $colorNameHex in $componentBgColors {
510
+ @each $colorName, $colorNameHex in luxcommon.$componentBgColors {
488
511
  .lux-bg-color-#{''+$colorName+''} {
489
512
  background: $colorNameHex;
490
513
  }
491
514
  }
492
515
 
493
- @each $colorName, $colorNameHex in $componentFontColors {
516
+ @each $colorName, $colorNameHex in luxcommon.$componentFontColors {
494
517
  .lux-font-color-#{''+$colorName+''} {
495
518
  color: $colorNameHex;
496
519
  }
497
520
  }
498
521
 
499
522
  .lux-color-dark-primary-text {
500
- color: $dark-primary-text;
523
+ color: luxcommon.$dark-primary-text;
501
524
  }
502
525
 
503
526
  .lux-color-dark-secondary-text {
504
- color: $dark-secondary-text;
527
+ color: luxcommon.$dark-secondary-text;
505
528
  }
506
529
 
507
530
  .lux-color-dark-disabled-text {
508
- color: $dark-disabled-text;
531
+ color: luxcommon.$dark-disabled-text;
509
532
  }
510
533
 
511
534
  .lux-color-dark-focused {
512
- color: $dark-focused;
535
+ color: luxcommon.$dark-focused;
513
536
  }
514
537
 
515
538
  .lux-color-light-primary-text {
516
- color: $light-primary-text;
539
+ color: luxcommon.$light-primary-text;
517
540
  }
518
541
 
519
542
  .lux-color-light-secondary-text {
520
- color: $light-secondary-text;
543
+ color: luxcommon.$light-secondary-text;
521
544
  }
522
545
 
523
546
  .lux-color-light-disabled-text {
524
- color: $light-disabled-text;
547
+ color: luxcommon.$light-disabled-text;
525
548
  }
526
549
 
527
550
  .lux-color-light-focused {
528
- color: $light-focused;
551
+ color: luxcommon.$light-focused;
529
552
  }
530
553
 
531
554
  @each $size in $sizes {
532
555
  @for $i from 1 through 3 {
533
- .lux-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
534
- color: map-get(nth($paletten, $i), $size);
556
+ .lux-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
557
+ color: map.get(list.nth($paletten, $i), $size);
535
558
  }
536
559
 
537
- .lux-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
538
- color: map-get(nth($paletten, $i), contrast, $size);
560
+ .lux-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)}-contrast {
561
+ color: map.get(list.nth($paletten, $i), contrast, $size);
539
562
  }
540
563
 
541
- .lux-bg-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
542
- background-color: map-get(nth($paletten, $i), $size);
564
+ .lux-bg-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
565
+ background-color: map.get(list.nth($paletten, $i), $size);
543
566
  }
544
567
 
545
- .lux-bg-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
546
- background-color: map-get(nth($paletten, $i), contrast, $size);
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);
547
570
  }
548
571
 
549
- .lux-border-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
550
- border-color: map-get(nth($paletten, $i), $size);
572
+ .lux-border-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
573
+ border-color: map.get(list.nth($paletten, $i), $size);
551
574
  }
552
575
 
553
- .lux-border-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
554
- border-color: map-get(nth($paletten, $i), contrast, $size);
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);
555
578
  }
556
579
 
557
- .lux-outline-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
558
- outline-color: map-get(nth($paletten, $i), $size);
580
+ .lux-outline-color-#{list.nth($paletteNamen, $i)}-#{string.to-lower-case("" + $size)} {
581
+ outline-color: map.get(list.nth($paletten, $i), $size);
559
582
  }
560
583
 
561
- .lux-outline-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
562
- outline-color: map-get(nth($paletten, $i), contrast, $size);
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);
563
586
  }
564
587
 
565
- .lux-text-decoration-#{nth($paletteNamen, $i)}-color-#{to-lower-case("" + $size)} {
566
- text-decoration-color: map-get(nth($paletten, $i), $size);
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);
567
590
  }
568
591
 
569
- .lux-text-decoration-#{nth($paletteNamen, $i)}-color-#{to-lower-case("" + $size)}-contrast {
570
- text-decoration-color: map-get(nth($paletten, $i), contrast, $size);
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);
571
594
  }
572
595
 
573
- .lux-column-rule-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)} {
574
- column-rule-color: map-get(nth($paletten, $i), $size);
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);
575
598
  }
576
599
 
577
- .lux-column-rule-color-#{nth($paletteNamen, $i)}-#{to-lower-case("" + $size)}-contrast {
578
- column-rule-color: map-get(nth($paletten, $i), contrast, $size);
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);
579
602
  }
580
603
  }
581
604
  }
@@ -596,13 +619,13 @@ lux-button.lux-uppercase {
596
619
  }
597
620
 
598
621
  &.mat-badge:not(.mat-badge-disabled).mat-badge-accent .mat-badge-content {
599
- background-color: map-get($componentBgColors, "green");
622
+ background-color: map.get(luxcommon.$componentBgColors, "green");
600
623
  }
601
624
 
602
625
  &.lux-badge-color-default {
603
626
  &.mat-badge:not(.mat-badge-disabled) .mat-badge-content {
604
627
  color: white;
605
- background: #595959;
628
+ background: map.get(luxcommon.$componentBgColors, "gray");
606
629
  }
607
630
  }
608
631
  }
@@ -1,7 +1,11 @@
1
- $lux-primary: mat-palette($lux-palette_primary);
2
- $lux-accent: mat-palette($lux-palette_accent);
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-core();
7
- @include angular-material-theme($lux-theme);
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
+ }