@elderbyte/ngx-starter 19.1.2 → 19.1.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "19.1.2",
3
+ "version": "19.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.0 || ^19.0.0",
6
6
  "@angular/common": "^18.0.0 || ^19.0.0",
@@ -5,38 +5,12 @@
5
5
  @mixin elder-design-tokens() {
6
6
  @include elder-badge-sizing();
7
7
 
8
- @include color-theme-x();
9
-
10
- & {
11
- //--md-sys-color-surface-container-highest: hsl(216, 56%, 96%);
12
- }
13
-
8
+ @include m3-color-tokens();
9
+
14
10
  &.elder-light-theme,
15
11
  &.elder-dark-theme {
16
- // --md-sys-color-surface-container-highest: hsl(218, 56%, 95%); // light blue
17
- // --md-sys-color-surface-container-highest: hsl(220, 50%, 98%); // gmail bg blue
18
- // --md-sys-color-surface-container-highest: hsl(216, 56%, 98%); // google drive bg blue
19
- // --md-sys-color-surface-container-highest: hsl(216, 42%, 97%);
20
- //--md-sys-color-surface-container-highest: hsl(216, 56%, 96%);
21
- //--md-sys-color-surface-container-highest: hsl(216, 99%, 96%); // P favorit
22
- //--md-sys-color-surface-container-highest: hsl(216, 49%, 90%);
23
- --md-sys-color-surface-container-highest: hsl(41, 39%, 93%);
24
- --md-sys-color-surface-container-highest: hsl(0, 0%, 95%); // xy
25
- --md-sys-color-surface-container-highest: var(--md-sys-color-surface-container);
26
- // --md-sys-color-surface-container-high: hsl(218, 38%, 93%); // xy
27
- // --md-sys-color-surface-container: hsl(218, 38%, 91%); // xy
28
- // --md-sys-color-surface-container-low: hsl(218, 38%, 8%); // xy
29
- --md-sys-color-background: var(--md-sys-color-surface-container-highest);
30
- //--md-sys-color-background: var(--md-sys-color-surface-container-low);
12
+ --md-sys-color-background: var(--md-sys-color-surface-container);
31
13
  --mat-app-background-color: var(--md-sys-color-background);
32
- // --mat-app-background-color: hsl(218, 0%, 92%);
33
-
34
- //--mat-app-background-color: hsl(218, 21%, 34%);
35
- //--mat-app-background-color: var(--md-sys-color-primary);
36
-
37
- // .mat-mdc-tab-header * {
38
- // color: white !important;
39
- // }
40
14
 
41
15
  // mat variables
42
16
  --mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
@@ -51,6 +25,7 @@
51
25
  --mat-sidenav-container-background-color: var(--mat-app-background-color);
52
26
  --mdc-dialog-container-color: var(--md-sys-color-surface-container-lowest);
53
27
  --mat-tab-header-divider-height: 0; // remove tab header divider
28
+ --mat-menu-container-color: var(--md-sys-color-surface-container-lowest);
54
29
 
55
30
  // import fix for overflow of mat-icons, default is 40px in m3, in m2 it was 48px
56
31
  --mdc-icon-button-state-layer-size: 48px;
@@ -66,9 +41,10 @@
66
41
  --elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
67
42
  --elder-border-light: 1px solid var(--md-sys-color-outline-variant);
68
43
  --elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
69
- --elder-scrollbar-width: 8px;
44
+ --elder-scrollbar-width-default: 8px;
45
+ --elder-scrollbar-width-lg: #{map.get(config.$sizes, lg)};
70
46
  --elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
71
- --elder-main-nav-bg: var(--md-sys-color-surface);
47
+ --elder-main-nav-bg: var(--md-sys-color-surface-container-lowest);
72
48
  --elder-nav-item-height: 54px;
73
49
  --elder-button-horizontal-padding: 19px;
74
50
 
@@ -118,13 +94,6 @@
118
94
 
119
95
  --elder-blue: var(--md-sys-color-primary);
120
96
  --md-sys-color-tertiary: var(--elder-gold);
121
- //--md-sys-color-tertiary-container: var(--elder-gold-semi-light);
122
- //--elder-gold: var(--md-sys-color-tertiary);
123
- // --elder-gold-dark: var(--md-sys-color-tertiary-container);
124
- // --elder-gold-semi-dark: var(--md-sys-color-tertiary-fixed-dim);
125
- // --elder-gold-semi-light: var(--md-sys-color-tertiary-fixed);
126
- // --elder-gold-light: var(--md-sys-color-tertiary-container);
127
- --elder-gray-medium: var(--md-sys-color-secondary-container);
128
97
 
129
98
  --elder-color-highlight-strong: hsl(214, 18%, 85%);
130
99
  --elder-color-highlight-strong: var(--elder-gold-light);
@@ -199,16 +168,20 @@
199
168
 
200
169
  // dark theme overwrites
201
170
  &.elder-dark-theme {
171
+ --md-sys-color-background: var(--md-sys-color-surface-container-highest);
202
172
  --elder-round-form-field-outline: solid 1px var(--md-sys-color-outline);
203
173
  --mat-sidenav-scrim-color: rgba(255, 255, 255, 0.4);
204
174
  --elder-color-highlight-light: var(--elder-gray-medium);
205
175
  --elder-color-highlight-strong: var(--elder-gold-semi-dark);
206
176
  --elder-color-highlight-variant: var(--elder-gold-dark);
207
177
  --md-sys-color-tertiary-container: var(--elder-gold-semi-dark);
208
- --md-sys-color-surface-container-highest: #191919;
209
- --md-sys-color-surface-container-lowest: #232324;
178
+ --md-sys-color-surface-container-highest: #181818;
210
179
  --md-sys-color-surface-container: #1e1f20;
211
180
  --md-sys-color-surface-container-low: #1b1c1e;
181
+ --md-sys-color-surface-container-lowest: #232324;
182
+
183
+ // --md-sys-color-surface-container: #1e1f20;
184
+ // --md-sys-color-surface-container-low: #1b1c1e;
212
185
  --md-sys-color-error: #ff897d;
213
186
  --md-sys-color-inverse-primary: var(--md-sys-color-primary-container);
214
187
  --md-sys-color-surface-tint: var(--elder-gold-dark);
@@ -253,7 +226,7 @@
253
226
  }
254
227
  }
255
228
 
256
- @mixin color-theme-x() {
229
+ @mixin m3-color-tokens() {
257
230
  &.elder-light-theme,
258
231
  &.elder-dark-theme {
259
232
  @include mat.theme-overrides(
@@ -33,14 +33,14 @@
33
33
  .elder-light-theme,
34
34
  .elder-dark-theme {
35
35
  @include mat.all-component-themes($elder-light-theme);
36
- @include mat.system-level-colors($elder-light-theme);
36
+ //@include mat.system-level-colors($elder-light-theme);
37
37
  @include mat.system-level-typography($elder-light-theme);
38
38
  @include mat.color-variants-backwards-compatibility($elder-light-theme);
39
39
  }
40
40
 
41
41
  .elder-dark-theme {
42
42
  @include mat.all-component-colors($elder-dark-theme);
43
- @include mat.system-level-colors($elder-dark-theme);
43
+ //@include mat.system-level-colors($elder-dark-theme);
44
44
  @include mat.color-variants-backwards-compatibility($elder-dark-theme);
45
45
  }
46
46
 
@@ -3,6 +3,25 @@
3
3
  @use 'sass:map';
4
4
 
5
5
  @mixin elder-common-base($theme) {
6
+ /***************************************************************************
7
+ * *
8
+ * Scrollbar styling (webkit) *
9
+ * *
10
+ **************************************************************************/
11
+
12
+ ::-webkit-scrollbar {
13
+ width: var(--elder-scrollbar-width-default);
14
+ }
15
+
16
+ ::-webkit-scrollbar-thumb {
17
+ background: var(--md-sys-color-outline-variant);
18
+ border-radius: 5px;
19
+ }
20
+
21
+ ::-webkit-scrollbar-thumb:hover {
22
+ background: var(--md-sys-color-outline);
23
+ }
24
+
6
25
  /***************************************************************************
7
26
  * *
8
27
  * Angular Material Extensions (Optional) *
@@ -88,6 +88,12 @@
88
88
  --mat-badge-background-color: var(--md-sys-color-error);
89
89
  }
90
90
 
91
+ // disable button color grayed out
92
+ .mat-mdc-icon-button[disabled],
93
+ .mat-mdc-icon-button.mat-mdc-button-disabled {
94
+ opacity: 0.5;
95
+ };
96
+
91
97
  /**************************************************************************
92
98
  Card fixes
93
99
  **************************************************************************/
@@ -105,6 +111,7 @@
105
111
  .elder-card-title {
106
112
  padding-bottom: 0 !important;
107
113
  margin-bottom: 6px !important;
114
+ //font-weight: 500;
108
115
  }
109
116
 
110
117
  /**************************************************************************
@@ -5,19 +5,6 @@
5
5
 
6
6
  @mixin theme() {
7
7
  // scrollbar styling
8
- ::-webkit-scrollbar {
9
- width: var(--elder-scrollbar-width);
10
- }
11
-
12
- ::-webkit-scrollbar-thumb {
13
- background: var(--md-sys-color-outline-variant);
14
- border-radius: 5px;
15
- }
16
-
17
- ::-webkit-scrollbar-thumb:hover {
18
- background: var(--md-sys-color-outline);
19
- }
20
-
21
8
  .scrollbar-xs {
22
9
  @include scrollbar-width(map.get(config.$sizes, xs));
23
10
  }
@@ -39,7 +26,7 @@
39
26
  }
40
27
 
41
28
  @mixin scrollbar-width($width) {
42
- &::-webkit-scrollbar {
29
+ ::-webkit-scrollbar {
43
30
  width: $width;
44
31
  }
45
32
  }
@@ -74,6 +74,19 @@
74
74
  background-color: var(--elder-pane-bg-color);
75
75
  }
76
76
 
77
+ .bg-highlight-light {
78
+ background-color: var(--elder-color-highlight-light);
79
+ }
80
+
81
+ .bg-highlight-strong {
82
+ background-color: var(--elder-color-highlight-strong);
83
+ }
84
+
85
+ .bg-highlight-variant {
86
+ background-color: var(--elder-color-highlight-variant);
87
+ }
88
+
89
+
77
90
  // text colors
78
91
  @each $name, $value in $color-variables {
79
92
  .elder-text-#{$name} {
@@ -1,3 +1,6 @@
1
+ @use 'sass:map';
2
+ @use '../abstracts/elder-scss-variables' as config;
3
+
1
4
  @mixin elder-common-utils() {
2
5
  .border-none {
3
6
  border: none;
@@ -62,4 +65,11 @@
62
65
  .outlined {
63
66
  border: 1px solid var(--md-sys-color-outline-variant);
64
67
  }
68
+
69
+ // large scrollbar fix for webkit browsers
70
+ .scrollbar-lg {
71
+ ::-webkit-scrollbar {
72
+ width: var(--elder-scrollbar-width-lg) !important;
73
+ }
74
+ }
65
75
  }