@ihk-gfi/lux-components-theme 11.13.0 → 13.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.
@@ -11,6 +11,13 @@ $outline-bright: $outline-width $outline-style $outline-color-bright !important;
11
11
  outline: $outline-dark;
12
12
  }
13
13
 
14
+ @mixin focus-dark-mixin-inline {
15
+ // der Focus um Elemente in Panels wird mit negativen Margin nach in das Element verlegt
16
+ // damit wird er nicht mehr am Rand abgeschnitten oder verdeckt
17
+ outline: $outline-dark;
18
+ outline-offset: -$outline-width;
19
+ }
20
+
14
21
  @mixin focus-bright-mixin {
15
22
  outline: $outline-bright;
16
23
  }
@@ -198,6 +205,9 @@ lux-chips {
198
205
  & .mat-standard-chip:focus {
199
206
  @include focus-dark-mixin;
200
207
  }
208
+ .mat-chip.mat-standard-chip:after { //mat-overlay für focus deaktivieren
209
+ background-color: unset;
210
+ }
201
211
  }
202
212
 
203
213
  /** ########## Form-Control ########## **/
@@ -228,6 +238,12 @@ lux-form-control {
228
238
  height: 2px;
229
239
  border-bottom: 2px solid $lux-selected-border-color;
230
240
  }
241
+
242
+ &.lux-form-control-error {
243
+ .lux-form-control-container:after {
244
+ border-bottom: 2px solid $lux-warn-color;
245
+ }
246
+ }
231
247
  }
232
248
  }
233
249
 
@@ -236,6 +252,7 @@ lux-datepicker {
236
252
  mat-datepicker-toggle {
237
253
  button:focus {
238
254
  @include focus-dark-mixin;
255
+ border-radius: 4px;
239
256
  }
240
257
 
241
258
  .mat-button-focus-overlay {
@@ -282,6 +299,7 @@ lux-datetimepicker {
282
299
  mat-datepicker-toggle {
283
300
  button:focus {
284
301
  @include focus-dark-mixin;
302
+ border-radius: 4px;
285
303
  }
286
304
 
287
305
  .mat-button-focus-overlay {
@@ -364,11 +382,13 @@ lux-table {
364
382
  }
365
383
 
366
384
  &:focus {
367
- @include focus-dark-mixin;
385
+ @include focus-dark-mixin-inline;
386
+ border-radius: 4px;
368
387
  }
369
388
 
370
389
  &.mat-active {
371
- @include focus-dark-mixin;
390
+ @include focus-dark-mixin-inline;
391
+ border-radius: 4px;
372
392
  }
373
393
 
374
394
  &:hover {
@@ -446,11 +466,13 @@ lux-button {
446
466
  mat-option {
447
467
 
448
468
  &:focus {
449
- @include focus-dark-mixin;
469
+ @include focus-dark-mixin-inline;
470
+ border-radius: 4px;
450
471
  }
451
472
 
452
473
  &.mat-active {
453
- @include focus-dark-mixin;
474
+ @include focus-dark-mixin-inline;
475
+ border-radius: 4px;
454
476
  }
455
477
 
456
478
  &:hover {
@@ -0,0 +1,2 @@
1
+ @import 'https://use.fontawesome.com/releases/v5.13.0/css/all.css';
2
+ @import 'https://fonts.googleapis.com/icon?family=Material+Icons';
@@ -36,6 +36,12 @@ $paletteNamen: primary, accent, warn;
36
36
  --lux-theme-form-control-height-small: #{$form-control-height-small};
37
37
  --lux-theme-form-control-font-size: #{$form-control-font-size};
38
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};
39
45
 
40
46
  // Button
41
47
  --lux-theme-button-height: #{$button-height};
@@ -192,11 +198,20 @@ h6 {
192
198
  -webkit-border-radius: 4px;
193
199
  -moz-border-radius: 4px;
194
200
  border-radius: 4px;
195
- padding: 8px;
201
+ margin: 16px 0;
202
+ padding: 16px 16px;
196
203
  border: 1px solid $dark-dividers;
197
204
  display: flex;
198
- margin: 0 0 16px 0;
199
205
  word-break: break-word;
206
+
207
+ &.column {
208
+ flex-direction: column;
209
+ gap: 16px;
210
+ }
211
+ &.row {
212
+ flex-direction: row;
213
+ gap: 16px;
214
+ }
200
215
  }
201
216
 
202
217
  .lux-highlight-section-label {
@@ -204,6 +219,19 @@ h6 {
204
219
  margin-left: 0;
205
220
  }
206
221
 
222
+ .lux-simple-form {
223
+ margin: 4px 0;
224
+ display: flex;
225
+ &.column {
226
+ flex-direction: column;
227
+ gap: 16px;
228
+ }
229
+ &.row {
230
+ flex-direction: row;
231
+ gap: 16px;
232
+ }
233
+ }
234
+
207
235
  .lux-app-container {
208
236
  flex-direction: column;
209
237
  box-sizing: border-box;
@@ -266,7 +294,7 @@ lux-card.lux-card-grow {
266
294
  }
267
295
 
268
296
  .lux-display-none {
269
- display: none;
297
+ display: none !important;
270
298
  }
271
299
 
272
300
  .lux-display-none-important {
@@ -356,7 +384,6 @@ lux-card.lux-card-grow {
356
384
  position: relative;
357
385
  margin: 0 !important;
358
386
  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
387
  // Die Snackbar wird durch die App umpositioniert, bevor sie sichtbar geschaltet wird.
361
388
  // Würde man die Snackbar nicht verstecken, würde sie von der initialen Position zur neuen
362
389
  // springen.
@@ -6,12 +6,3 @@ lux-tabs {
6
6
  }
7
7
  }
8
8
  }
9
-
10
- /**
11
- * Theming für LUX-Chips
12
- */
13
- .lux-chips-autocomplete-panel {
14
- margin-left: 4px;
15
- margin-right: 4px;
16
- border-radius: 4px;
17
- }
@@ -24,6 +24,12 @@ $form-control-height: 24px;
24
24
  $form-control-height-small: 18px;
25
25
  $form-control-font-size: 15px;
26
26
  $form-control-font-size-small: 12px;
27
+ $form-control-label-padding: 2px 0 0 0;
28
+ $form-control-container-padding: 6px 0 0 0;
29
+ $form-control-misc-margin: 4px 0 2px 0;
30
+ $form-control-complete-height: 70px;
31
+ $form-control-buffer: 4px;
32
+ $form-control-margin: 0px;
27
33
 
28
34
  // Button
29
35
  $button-height: 45px;
@@ -1,10 +1,10 @@
1
1
  @import "luxpalette";
2
2
  @import "../public/global";
3
3
  @import "luxcommon";
4
+ @import "../base/luxelevations";
4
5
  @import "../base/luxcomponents";
5
6
  @import "../base/luxfocus";
6
7
  @import "../base/luxstyles";
7
8
  @import "../../node_modules/@angular/material/theming";
8
9
  @import "../base/luxtheme";
9
10
  @import "custom";
10
-
@@ -2,6 +2,7 @@ $button-font-size: 22px;
2
2
  $light-green: #E4F1E4;
3
3
  $light-gray: #EFF3F6;
4
4
  $light-blue: #E3EBF5;
5
+ $dark-green: #2E8533;
5
6
 
6
7
  body {
7
8
  color: #003366;
@@ -211,8 +212,9 @@ lux-app-header {
211
212
  */
212
213
  lux-button button.lux-button {
213
214
 
214
- font-weight: lighter !important;
215
-
215
+ font-weight: normal !important;
216
+ align-items: center;
217
+
216
218
  &.mat-button, &.mat-raised-button {
217
219
  border-radius: 18px;
218
220
  height: $button-height;
@@ -234,14 +236,15 @@ lux-button button.lux-button {
234
236
  &.lux-icon-button {
235
237
  border-radius: 18px;
236
238
  height: $button-height;
237
- padding-top: 4px;
238
- padding-bottom: 2px;
239
239
 
240
240
  & lux-icon {
241
- i,
242
- mat-icon {
241
+ line-height: 1;
242
+ i {
243
243
  font-size: 1em;
244
244
  }
245
+ mat-icon {
246
+ font-size: 1.2em !important;
247
+ }
245
248
  }
246
249
  }
247
250
 
@@ -249,25 +252,17 @@ lux-button button.lux-button {
249
252
  border-radius: 16px !important;
250
253
  height: $button-fav-height;
251
254
  width: $button-fav-height;
252
-
255
+ font-size: $button-font-size;
253
256
  & lux-icon {
257
+ line-height: 1;
254
258
  i,
255
259
  mat-icon {
256
- font-size: 1.5em;
260
+ font-size: 1.2em !important;
257
261
  }
258
262
  }
259
263
  }
260
264
  }
261
265
 
262
- /**
263
- * Theming für LUX-Chips
264
- */
265
- .lux-chips-autocomplete-panel {
266
- margin-left: 6px;
267
- margin-right: 6px;
268
- border-radius: 4px;
269
- }
270
-
271
266
  /*
272
267
  * Theming for LUX-Menu
273
268
  */
@@ -300,6 +295,13 @@ lux-tile {
300
295
  .lux-highlight {
301
296
  color: #003366;
302
297
  }
298
+
299
+ .lux-tile-label {
300
+ flex-shrink: 1;
301
+ flex-grow: 0;
302
+ min-height: 70px;
303
+ max-height: 70px;
304
+ }
303
305
  }
304
306
 
305
307
  lux-tile {
@@ -310,18 +312,17 @@ lux-tile {
310
312
 
311
313
  mat-card[class~=lux-cursor] {
312
314
 
313
- box-shadow: 0px 2px 1px -1px rgb(0 51 102 / 60%), 0px 1px 1px 0px rgb(0 51 102 / 50%), 0px 1px 3px 0px rgb(0 51 102 / 40%) !important;
314
-
315
315
  &:focus {
316
316
  @include focus-dark-mixin;
317
317
  }
318
318
 
319
319
  &:hover {
320
320
  background-color: white !important;
321
- box-shadow: 0px 2px 1px -1px rgb(46 133 51 / 60%), 0px 1px 1px 0px rgb(46 133 51 / 50%), 0px 1px 3px 0px rgb(46 133 51 / 40%) !important;
321
+ // farbiger Schatten beim Hover
322
+ @include mat-elevation(2, $dark-green, 1);
322
323
 
323
324
  h2 {
324
- color: #56BD66;
325
+ color: #56bd66;
325
326
  }
326
327
  }
327
328
  }
@@ -342,16 +343,12 @@ lux-tile {
342
343
  /*
343
344
  * Theming for LUX-Form-Controls
344
345
  */
345
- $form-control-padding: 10px 5px 10px 5px;
346
346
  $form-control-label-padding-bottom: 4px;
347
347
  $form-control-border-radius: 4px;
348
348
  $form-control-old-border-bottom: 0px;
349
349
 
350
350
  lux-checkbox, lux-toggle, lux-radio, lux-slider {
351
351
  & .lux-form-control {
352
- margin-right: 4px;
353
- margin-left: 4px;
354
-
355
352
  .lux-form-control-label {
356
353
  padding-bottom: $form-control-label-padding-bottom;
357
354
  }
@@ -371,14 +368,11 @@ lux-checkbox, lux-toggle, lux-radio, lux-slider {
371
368
  }
372
369
 
373
370
  .mat-select-value {
374
- color: currentColor;
371
+ color: $dark-secondary-text;
375
372
  }
376
373
 
377
374
  lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datepicker, lux-datetimepicker, lux-chips {
378
375
  & .lux-form-control {
379
- margin-right: 4px;
380
- margin-left: 4px;
381
-
382
376
  .lux-form-control-label {
383
377
  padding-bottom: $form-control-label-padding-bottom;
384
378
  }
@@ -386,7 +380,7 @@ lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datep
386
380
  .lux-form-control-container {
387
381
  border: 1px solid $form-border-color;
388
382
  border-radius: $form-control-border-radius;
389
- padding: $form-control-padding;
383
+ padding: $form-control-container-padding;
390
384
 
391
385
  &:after {
392
386
  border-bottom: $form-control-old-border-bottom;
@@ -408,6 +402,10 @@ lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datep
408
402
  .lux-form-control-container {
409
403
  border-color: $lux-selected-border-color !important;
410
404
  box-shadow: 0 0 0 2px $lux-warn-color, 0 0 4px 2px $lux-warn-color;
405
+
406
+ &:after {
407
+ border-bottom: $form-control-old-border-bottom;
408
+ }
411
409
  }
412
410
 
413
411
  .lux-form-control-misc {
@@ -422,7 +420,7 @@ lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datep
422
420
  color: $dark-disabled-text !important;
423
421
  border: 1px dashed $dark-disabled-text !important;
424
422
  border-radius: $form-control-border-radius;
425
- padding: $form-control-padding;
423
+ padding: $form-control-container-padding;
426
424
 
427
425
  &:after {
428
426
  border-bottom: $form-control-old-border-bottom;
@@ -441,7 +439,17 @@ lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datep
441
439
  box-shadow: 0 0 0 2px $lux-selected-border-color, 0 0 4px 2px $lux-selected-border-color;
442
440
 
443
441
  &:after {
444
- border-bottom: $form-control-old-border-bottom;
442
+ border-bottom: $form-control-old-border-bottom !important;
443
+ }
444
+ }
445
+
446
+ &.lux-form-control-error {
447
+ .lux-form-control-container {
448
+ border-color: $lux-warn-color !important;
449
+ box-shadow: 0 0 0 2px $lux-warn-color, 0 0 4px 2px $lux-warn-color;
450
+ }
451
+ &:after {
452
+ border-bottom: $form-control-old-border-bottom !important;
445
453
  }
446
454
  }
447
455
  }
@@ -465,6 +473,18 @@ lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datep
465
473
  }
466
474
  }
467
475
 
476
+ /*
477
+ * Theming für LUX-Layout-Form-Row
478
+ */
479
+ lux-layout-form-row {
480
+ lux-input, lux-select, lux-file-input, lux-textarea, lux-autocomplete, lux-datepicker, lux-datetimepicker, lux-chips {
481
+ & .lux-form-control {
482
+ margin-right: 0px;
483
+ margin-left: 0px;
484
+ }
485
+ }
486
+ }
487
+
468
488
  /*
469
489
  * Theming für LUX-Checkbox
470
490
  */
@@ -24,6 +24,12 @@ $form-control-height: 24px;
24
24
  $form-control-height-small: 18px;
25
25
  $form-control-font-size: 15px;
26
26
  $form-control-font-size-small: 12px;
27
+ $form-control-label-padding: 2px 0 4px 0;
28
+ $form-control-container-padding: 10px 5px 10px 5px;
29
+ $form-control-misc-margin: 4px 0 2px 0;
30
+ $form-control-complete-height: 84px;
31
+ $form-control-buffer: 6px;
32
+ $form-control-margin: 0px;
27
33
 
28
34
  // Button
29
35
  $button-height: 45px;
@@ -3,6 +3,7 @@
3
3
  $app-font-family: "Source Sans Pro", "Helvetica", "Arial", "sans-serif";
4
4
  $outline-width: 1px;
5
5
  @import "luxcommon";
6
+ @import "../base/luxelevations";
6
7
  @import "../base/luxcomponents";
7
8
  $lux-hover-color: #e3ebf5;
8
9
  @import "../base/luxfocus";
@@ -24,6 +24,12 @@ $form-control-height: 24px;
24
24
  $form-control-height-small: 18px;
25
25
  $form-control-font-size: 15px;
26
26
  $form-control-font-size-small: 12px;
27
+ $form-control-label-padding: 2px 0 0 0;
28
+ $form-control-container-padding: 6px 0 0 0;
29
+ $form-control-misc-margin: 4px 0 2px 0;
30
+ $form-control-complete-height: 70px;
31
+ $form-control-buffer: 4px;
32
+ $form-control-margin: 0px;
27
33
 
28
34
  // Button
29
35
  $button-height: 45px;
@@ -1,10 +1,10 @@
1
1
  @import "luxpalette";
2
2
  @import "../public/global";
3
3
  @import "luxcommon";
4
+ @import "../base/luxelevations";
4
5
  @import "../base/luxcomponents";
5
6
  @import "../base/luxfocus";
6
7
  @import "../base/luxstyles";
7
8
  @import "../../node_modules/@angular/material/theming";
8
9
  @import "../base/luxtheme";
9
- @import "custom";
10
-
10
+ @import "custom";
package/CHANGELOG.md DELETED
@@ -1,84 +0,0 @@
1
- # Version 11.13.0
2
- ## New
3
- - **chips**: Vorschlagsliste soll so breit wie die Chips-Komponente sein. [Issue 20](https://github.com/IHK-GfI/lux-components-theme/issues/20)
4
- - **stepper-large**: Farben und Hover-Effekte ändern. [Issue 22](https://github.com/IHK-GfI/lux-components-theme/issues/22)
5
-
6
- ## New - Theme "green"
7
- - **select**: Schriftfarbe anpasse. [Issue 21](https://github.com/IHK-GfI/lux-components-theme/issues/21)
8
-
9
- # Version 11.12.0
10
- - **file-upload**: Styles für die neue Dateiupload-Komponente (lux-file-upload) entwickeln. [Issue 19](https://github.com/IHK-GfI/lux-components-theme/issues/19)
11
-
12
- # Version 11.11.0
13
- - **allgemein**: Die Font Awesome- und Material-Icons sollen nicht über die Server von Google und Font Awesome direkt importiert werden. [Issue 17](https://github.com/IHK-GfI/lux-components-theme/issues/17)
14
- - **stepper-large**: lux-stepper-larger - Der Inhaltscontainer soll sich automatisch der Größe seines Containers anpassen. [Issue 18](https://github.com/IHK-GfI/lux-components-theme/issues/18)
15
-
16
- # Version 11.10.0
17
- ## New - Theme "green"
18
- - **stepper-large**: Styles für den neuen Stepper (lux-stepper-large) entwickeln. [Issue 16](https://github.com/IHK-GfI/lux-components-theme/issues/16)
19
-
20
- # Version 11.9.0
21
- - **allgemein**: Die folgenden neuen CSS-Klassen wurden eingeführt: [Issue 15](https://github.com/IHK-GfI/lux-components-theme/issues/15)
22
- - lux-display-none-important
23
- - lux-hidden-important
24
-
25
- # Version 11.8.0
26
- ## New - Theme "green"
27
- - **tabs**: Die Schrift der Tablabels soll auf die Schrift "Korb (700) 22px" umgestellt werden. [Issue 14](https://github.com/IHK-GfI/lux-components-theme/issues/14)
28
- - **tabs**: Die Hover- und Active-Farbe soll auf den Wert "E3EBF5" eingestellt werden. [Issue 14](https://github.com/IHK-GfI/lux-components-theme/issues/14)
29
-
30
- # Version 11.7.1
31
- ## Bug Fixes - Theme "green"
32
- - **checkbox**: Deaktivierte Checkbox wird nicht angezeigt. [Issue 13](https://github.com/IHK-GfI/lux-components-theme/issues/13)
33
-
34
- # Version 11.7.0
35
- ## New
36
- - **allgemein**: Die folgenden neuen CSS-Variablen wurden eingeführt: [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
37
- - `--lux-theme-form-control-default-height-not-scalable`
38
- - `--lux-theme-form-control-height`
39
- - `--lux-theme-form-control-height-small`
40
- - `--lux-theme-form-control-font-size`
41
- - `--lux-theme-form-control-font-size-small`
42
-
43
- ## New - Theme "green"
44
- - **checkbox**: Checkboxen abgerundet darstellen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
45
- - **radio**: Aktivierte Radio-Buttons mit Haken-Icon darstellen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
46
- - **form-fields**: Eingabefelder mit abgerundetem Rahmen und Label darstellen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
47
- - **table**: Die Zeilenhintergrundfarbe alternierend in Weiß und Hellgrau darstellen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
48
- - **table**: Den Tabellenheader in Grün darstellen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
49
- - **datepicker**: Überschriften (Wochentage) mit zwei Buchstaben darstellen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
50
- - **datepicker**: Tagehintergrund in hellblauen Kästchen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
51
- - **datepicker**: Selektierter Tag als dunkelblaues Kästchen. [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
52
- - **datepicker**: Monatsname unterhalb der Tagesspaltenköpfe soll entfallen (falls möglich). [Issue 12](https://github.com/IHK-GfI/lux-components-theme/issues/12)
53
-
54
- # Version 11.6.1
55
- ## Bug Fixes
56
- - **table**: Falsche Fokusdarstellung bei den Tabellenzellen (td-Tags) [Issue 11](https://github.com/IHK-GfI/lux-components-theme/issues/11)
57
-
58
- # Version 11.6.0
59
- ## New
60
- - **badge-notification**: Accent-Farbe noch ans Theme anpassen [Issue 7](https://github.com/IHK-GfI/lux-components-theme/issues/7)
61
- - **allgemein**: Themefarben auch als Css-Variablen zur Verfügung stellen [Issue 8](https://github.com/IHK-GfI/lux-components-theme/issues/8)
62
-
63
- # Version 11.5.0
64
- ## New
65
- - **green**: Die Buttons und Schriften im Theme "green" überarbeiten. [Issue 6](https://github.com/IHK-GfI/lux-components-theme/issues/6)
66
-
67
- ## Bug Fixes
68
- - **button**: Unterschiedliche Buttonhöhen (mit/ohne Icons) korrigieren [Issue 5](https://github.com/IHK-GfI/lux-components-theme/issues/5)
69
-
70
- # Version 11.4.0
71
- ## New
72
- - **lux-datetimepicker**: Styles für den neuen Datetimepicker inklusive Uhrzeit bereitstellen. [Issue 4](https://github.com/IHK-GfI/lux-components/issues/4)
73
-
74
- # Version 11.3.0
75
- ## New
76
- - **green**: Theme "green" vollständig überarbeiten. [Issue 3](https://github.com/IHK-GfI/lux-components-theme/issues/3)
77
-
78
- # Version 11.2.1
79
- ## Bug Fixes
80
- - **tab-notification**: "Tab Notification"-Icons haben fälschlicherweise einen roten Rand. [Issue 2](https://github.com/IHK-GfI/lux-components-theme/issues/2)
81
-
82
- # Version 11.2.0
83
- ## New
84
- - **tooltip**: Schriftgröße erhöhen. [Issue 1](https://github.com/IHK-GfI/lux-components-theme/issues/1)