@smitag/angular-shared-ui 19.2.14 → 19.2.15

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smitag/angular-shared-ui",
3
3
  "email": "benjamin.speidel@smartinsurtech.de",
4
- "version": "19.2.14",
4
+ "version": "19.2.15",
5
5
  "license": "MIT",
6
6
  "description": "Styling elements and methods shared by all frontends",
7
7
  "man": "README.md",
@@ -42,8 +42,12 @@
42
42
  }
43
43
 
44
44
  .mat-mdc-list-item:hover {
45
- background-color: var(--mat-sys-surface-variant);
46
- cursor: pointer;
45
+ background-color: var(--mat-sys-primary-container);
46
+ cursor: pointer !important;
47
+
48
+ .mat-icon {
49
+ color: var(--mat-sys-on-primary-container);
50
+ }
47
51
  }
48
52
 
49
53
  .mat-mdc-list-item.active {
@@ -1,36 +1,3 @@
1
- @mixin customComponents($primary, $secondary) {
2
- .mat-mdc-card-title.colored {
3
- background-color: rgba($secondary, 0.1);
4
- color: $primary;
5
- margin-bottom: 0 !important;
6
- }
7
-
8
- a,
9
- a:visited {
10
- color: $primary;
11
- }
12
-
13
- input[type='file']::file-selector-button {
14
- background-color: $primary;
15
- }
16
-
17
- mat-toolbar.first-toolbar {
18
- background-color: $primary;
19
- }
20
-
21
- .theme-color-primary {
22
- color: $primary;
23
- }
24
-
25
- .theme-color-secondary {
26
- color: $secondary;
27
- }
28
-
29
- .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label {
30
- color: $primary;
31
- }
32
- }
33
-
34
1
  @mixin whiteToolbar($primary, $second-color) {
35
2
  .mat-toolbar.first-toolbar {
36
3
  background-color: #fff !important;
@@ -53,18 +20,3 @@
53
20
  }
54
21
  }
55
22
  }
56
-
57
- @mixin mdc-surface-colors($theme) {
58
- $colors: (
59
- 'surface',
60
- 'surface-container-lowest',
61
- 'surface-container-low',
62
- 'surface-container',
63
- 'surface-container-high',
64
- 'surface-container-highest'
65
- );
66
-
67
- @each $color in $colors {
68
- --mdc-#{$color}: #{mat.get-theme-color($theme, $color)};
69
- }
70
- }
@@ -19,12 +19,16 @@ mat-toolbar {
19
19
  .mat-icon {
20
20
  font-size: 24px;
21
21
  }
22
- }
23
22
 
24
- .second-toolbar {
25
- border: none;
26
- box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
27
- 0 1px 3px 0 rgba(60, 64, 67, 0.16);
23
+ &.first-toolbar {
24
+ background-color: var(--mat-sys-primary);
25
+ }
26
+
27
+ &.second-toolbar {
28
+ border: none;
29
+ box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
30
+ 0 1px 3px 0 rgba(60, 64, 67, 0.16);
31
+ }
28
32
  }
29
33
 
30
34
  @media (max-width: 599px) {
@@ -26,6 +26,15 @@ main {
26
26
  padding: 32px;
27
27
  }
28
28
 
29
+ a,
30
+ a:visited {
31
+ color: var(--mat-sys-primary);
32
+ }
33
+
34
+ input[type='file']::file-selector-button {
35
+ background-color: var(--mat-sys-primary);
36
+ }
37
+
29
38
  strong {
30
39
  font-weight: 600;
31
40
  }
@@ -38,6 +47,20 @@ strong {
38
47
  color: #0000;
39
48
  }
40
49
 
50
+ // Deprecated
51
+ .theme-color-primary {
52
+ color: var(--mat-sys-primary);
53
+ }
54
+
55
+ // Deprecated
56
+ .theme-color-secondary {
57
+ color: var(--mat-sys-secondary);
58
+ }
59
+
60
+ .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label {
61
+ color: var(--mat-sys-primary);
62
+ }
63
+
41
64
  .mat-icon {
42
65
  overflow: visible !important;
43
66
  }
@@ -161,8 +161,4 @@ html {
161
161
  @include mat.system-level-typography($light-theme);
162
162
  @include mat.system-level-elevation($light-theme);
163
163
  @include mat.typography-hierarchy($light-theme);
164
- @include helper.customComponents(
165
- mat.get-theme-color($light-theme, primary, 40),
166
- mat.get-theme-color($light-theme, secondary, 40)
167
- );
168
164
  }
@@ -161,10 +161,6 @@ html {
161
161
  @include mat.system-level-typography($light-theme);
162
162
  @include mat.system-level-elevation($light-theme);
163
163
  @include mat.typography-hierarchy($light-theme);
164
- @include helper.customComponents(
165
- mat.get-theme-color($light-theme, primary, 40),
166
- mat.get-theme-color($light-theme, secondary, 40)
167
- );
168
164
  @include helper.whiteToolbar(
169
165
  mat.get-theme-color($light-theme, primary, 40),
170
166
  mat.get-theme-color($light-theme, primary, 40)