@elderbyte/ngx-starter 19.1.0-beta.7 → 19.1.0-beta.9
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/_index.scss +1 -1
- package/fesm2022/elderbyte-ngx-starter.mjs +50 -17
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/utils/public_api.d.ts +1 -0
- package/lib/components/layout/pane-header/pane-header.component.d.ts +7 -0
- package/lib/components/layout/public_api.d.ts +1 -0
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +1 -1
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +5 -5
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +4 -4
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +1 -1
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +1 -1
- package/theming/abstracts/_elder-design-tokens.scss +170 -0
- package/theming/{system/_elder-config.scss → abstracts/_elder-scss-variables.scss} +40 -0
- package/theming/{system/_elder-defaults.scss → abstracts/_elder-set-defaults-fn.scss} +8 -8
- package/theming/abstracts/_elder-starter-theme.scss +47 -0
- package/theming/abstracts/_elder-theme-main.scss +92 -0
- package/theming/{style-tweaks/_elder-common.scss → base/_elder-common-base.scss} +8 -11
- package/theming/{style-tweaks → base}/_elder-component-themes.scss +1 -1
- package/theming/{style-tweaks/_elder-style-fixes.scss → base/_elder-fixes-base.scss} +49 -19
- package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +2 -2
- package/theming/{style-tweaks/_elder-color-variants.scss → base/_elder-m2-legacy-base.scss} +7 -1
- package/theming/components/_elder-chip-theme.scss +158 -0
- package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss} +1 -8
- package/theming/{utility-classes/_elder-common-helpers.scss → utilities/_elder-common-utils.scss} +2 -5
- package/theming/{utility-classes/_elder-flex-layout.scss → utilities/_elder-flex-layout-utils.scss} +2 -2
- package/theming/{utility-classes/_elder-layout-system.scss → utilities/_elder-layout-utils.scss} +46 -21
- package/theming/{utility-classes/_elder-typography-helpers.scss → utilities/_elder-typography-utils.scss} +1 -1
- package/src/lib/components/chips/_elder-chip-theme.scss +0 -129
- package/theming/style-tweaks/_elder-reset.scss +0 -13
- package/theming/system/_elder-design-tokens.scss +0 -136
- package/theming/system/_elder-m3-theme.scss +0 -156
- package/theming/system/_elder-starter-theme.scss +0 -45
- /package/theming/{style-tweaks/_elder-style-tweak-mixins.scss → base/_elder-base-mixins.scss} +0 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// "mat.color-variants-backwards-compatibility()"
|
|
14
14
|
// But can be customized in this mixin below:
|
|
15
15
|
|
|
16
|
-
@mixin elder-
|
|
16
|
+
@mixin elder-m2-legacy-base($theme) {
|
|
17
17
|
// Apply primary color variants for button components
|
|
18
18
|
mat-chip-option[color='primary'] {
|
|
19
19
|
@include mat.chips-color($theme, $color-variant: primary);
|
|
@@ -28,4 +28,10 @@
|
|
|
28
28
|
mat-chip-option[color='accent'] {
|
|
29
29
|
@include mat.chips-color($theme, $color-variant: tertiary);
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
// &.elder-light-theme {
|
|
33
|
+
// .mat-accent.mat-mdc-standard-chip {
|
|
34
|
+
// background-color: var(--md-sys-color-tertiary-fixed) !important;
|
|
35
|
+
// }
|
|
36
|
+
// }
|
|
31
37
|
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../abstracts/elder-scss-variables' as config;
|
|
4
|
+
|
|
5
|
+
$colorStateNone: var(--elder-chip-color-state-none);
|
|
6
|
+
$colorStateOpen: var(--elder-chip-color-state-open);
|
|
7
|
+
|
|
8
|
+
$colorStateInProgress: var(--elder-chip-color-state-in-progress);
|
|
9
|
+
$colorStateCompleted: var(--elder-chip-color-state-completed);
|
|
10
|
+
$colorStateWarn: var(--elder-chip-color-state-warn);
|
|
11
|
+
$colorStateError: var(--elder-chip-color-state-error);
|
|
12
|
+
$colorStateOther: var(--elder-chip-color-state-other);
|
|
13
|
+
|
|
14
|
+
$level-low: $colorStateCompleted;
|
|
15
|
+
$level-medium: $colorStateInProgress;
|
|
16
|
+
$level-high: $colorStateWarn;
|
|
17
|
+
$level-critical: $colorStateError;
|
|
18
|
+
|
|
19
|
+
@mixin theme($config-or-theme) {
|
|
20
|
+
.mat-mdc-chip.mat-mdc-chip {
|
|
21
|
+
--mdc-chip-elevated-container-color: rgba(143, 143, 143, 0.2);
|
|
22
|
+
background-color: var(--mdc-chip-elevated-container-color);
|
|
23
|
+
|
|
24
|
+
&.elder-chip-color-primary,
|
|
25
|
+
&.color-primary {
|
|
26
|
+
background-color: var(--md-sys-color-primary-container);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.elder-chip-color-primary,
|
|
30
|
+
&.color-primary {
|
|
31
|
+
@include _theme_color_chip(
|
|
32
|
+
var(--md-sys-color-primary-container),
|
|
33
|
+
var(--md-sys-color-primary),
|
|
34
|
+
var(--md-sys-color-on-primary)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.elder-chip-color-accent,
|
|
39
|
+
&.elder-chip-color-tertiary,
|
|
40
|
+
&.color-accent {
|
|
41
|
+
@include _theme_color_chip(
|
|
42
|
+
var(--md-sys-color-tertiary-container),
|
|
43
|
+
var(--md-sys-color-tertiary),
|
|
44
|
+
var(--md-sys-color-on-tertiary)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.elder-chip-color-warn,
|
|
49
|
+
&.color-warn {
|
|
50
|
+
@include _theme_color_chip(
|
|
51
|
+
var(--md-sys-color-error-container),
|
|
52
|
+
var(--md-sys-color-error),
|
|
53
|
+
var(--md-sys-color-on-error)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.elder-chip-state-none,
|
|
58
|
+
&.none {
|
|
59
|
+
@include _outlined-label-chip($colorStateNone);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.elder-chip-state-open,
|
|
63
|
+
&.state-open {
|
|
64
|
+
@include _outlined-label-chip($colorStateOpen);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.elder-chip-state-in-progress,
|
|
68
|
+
&.state-in-progress {
|
|
69
|
+
@include _outlined-label-chip($colorStateInProgress);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.elder-chip-state-completed,
|
|
73
|
+
&.state-completed {
|
|
74
|
+
@include _outlined-label-chip($colorStateCompleted);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.elder-chip-state-warn,
|
|
78
|
+
&.state-warn {
|
|
79
|
+
@include _outlined-label-chip($colorStateWarn);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.elder-chip-state-error,
|
|
83
|
+
&.state-error {
|
|
84
|
+
@include _outlined-label-chip($colorStateError);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.elder-chip-state-other,
|
|
88
|
+
&.state-other {
|
|
89
|
+
@include _outlined-label-chip($colorStateOther);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ---
|
|
93
|
+
|
|
94
|
+
&.elder-chip-level-low,
|
|
95
|
+
&.level-low {
|
|
96
|
+
@include _outlined-label-chip($level-low);
|
|
97
|
+
}
|
|
98
|
+
&.elder-chip-level-medium,
|
|
99
|
+
&.level-medium {
|
|
100
|
+
@include _outlined-label-chip($level-medium);
|
|
101
|
+
}
|
|
102
|
+
&.elder-chip-level-high,
|
|
103
|
+
&.level-high {
|
|
104
|
+
@include _outlined-label-chip($level-high);
|
|
105
|
+
}
|
|
106
|
+
&.elder-chip-level-critical,
|
|
107
|
+
&.level-critical {
|
|
108
|
+
@include _outlined-label-chip($level-critical);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// &.elder-chip-state-none,
|
|
112
|
+
// &.elder-chip-state-open,
|
|
113
|
+
// &.elder-chip-state-in-progress,
|
|
114
|
+
// &.elder-chip-state-completed,
|
|
115
|
+
// &.elder-chip-state-warn,
|
|
116
|
+
// &.elder-chip-state-error,
|
|
117
|
+
// &.elder-chip-state-other,
|
|
118
|
+
// &.elder-chip-level-low,
|
|
119
|
+
// &.elder-chip-level-medium,
|
|
120
|
+
// &.elder-chip-level-high,
|
|
121
|
+
// &.elder-chip-level-critical {
|
|
122
|
+
// color: red !important;
|
|
123
|
+
// .mat-mdc-chip-action-label,
|
|
124
|
+
// .mat-mdc-chip-avatar {
|
|
125
|
+
// color: red !important;
|
|
126
|
+
// }
|
|
127
|
+
// }
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@mixin _theme_color_chip($color1, $color2, $color3) {
|
|
132
|
+
&.legacy {
|
|
133
|
+
background-color: $color2;
|
|
134
|
+
.mat-mdc-chip-action-label,
|
|
135
|
+
.mat-mdc-chip-avatar,
|
|
136
|
+
.mdc-evolution-chip__checkmark {
|
|
137
|
+
color: $color3;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
&.md3 {
|
|
141
|
+
background-color: $color1;
|
|
142
|
+
border-color: $color2;
|
|
143
|
+
.mat-mdc-chip-action-label,
|
|
144
|
+
.mat-mdc-chip-avatar,
|
|
145
|
+
.mdc-evolution-chip__checkmark {
|
|
146
|
+
//color: $color2;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin _outlined-label-chip($color1) {
|
|
152
|
+
background-color: $color1;
|
|
153
|
+
// border-color: $color1;
|
|
154
|
+
// .mat-mdc-chip-action-label,
|
|
155
|
+
// .mat-mdc-chip-avatar {
|
|
156
|
+
// color: $color1;
|
|
157
|
+
// }
|
|
158
|
+
}
|
package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@mixin elder-color-
|
|
1
|
+
@mixin elder-color-utils() {
|
|
2
2
|
$color-variables: (
|
|
3
3
|
'background': var(--md-sys-color-background),
|
|
4
4
|
'error': var(--md-sys-color-error),
|
|
@@ -69,13 +69,6 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// border colors
|
|
73
|
-
@each $name, $value in $color-variables {
|
|
74
|
-
.elder-border-#{$name} {
|
|
75
|
-
border-color: #{$value};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
72
|
.elder-pane-bg-color {
|
|
80
73
|
background-color: var(--elder-pane-bg-color);
|
|
81
74
|
}
|
package/theming/{utility-classes/_elder-common-helpers.scss → utilities/_elder-common-utils.scss}
RENAMED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
@mixin elder-common-
|
|
1
|
+
@mixin elder-common-utils() {
|
|
2
2
|
.border-none {
|
|
3
3
|
border: none;
|
|
4
4
|
}
|
|
5
5
|
.display-none {
|
|
6
|
-
display: none;
|
|
7
|
-
}
|
|
8
|
-
.p-pane {
|
|
9
|
-
padding: var(--elder-pane-padding);
|
|
6
|
+
display: none;
|
|
10
7
|
}
|
|
11
8
|
.text-center {
|
|
12
9
|
text-align: center;
|
package/theming/{utility-classes/_elder-flex-layout.scss → utilities/_elder-flex-layout-utils.scss}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../
|
|
1
|
+
@use '../abstracts/elder-scss-variables' as settings;
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
/***************************************************************************
|
|
@@ -33,7 +33,7 @@ $media: (
|
|
|
33
33
|
flex: 1 1 100%;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@mixin elder-flex-layout($theme) {
|
|
36
|
+
@mixin elder-flex-layout-utils($theme) {
|
|
37
37
|
$common-sizes: map.get($theme, elder, common-sizes);
|
|
38
38
|
|
|
39
39
|
/***************************************************************************
|
package/theming/{utility-classes/_elder-layout-system.scss → utilities/_elder-layout-utils.scss}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@mixin elder-layout-
|
|
4
|
+
@mixin elder-layout-utils($theme) {
|
|
5
5
|
$common-sizes: map.get($theme, elder, common-sizes);
|
|
6
6
|
|
|
7
7
|
/***************************************************************************
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
* *
|
|
24
24
|
**************************************************************************/
|
|
25
25
|
|
|
26
|
+
.p-pane {
|
|
27
|
+
padding: var(--elder-pane-padding);
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
.p-xs {
|
|
27
31
|
padding: $xs;
|
|
28
32
|
}
|
|
@@ -248,34 +252,25 @@
|
|
|
248
252
|
margin-right: auto;
|
|
249
253
|
}
|
|
250
254
|
|
|
251
|
-
.
|
|
252
|
-
margin:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
.mt-0 {
|
|
256
|
-
margin-top: 0;
|
|
255
|
+
.my-auto {
|
|
256
|
+
margin-top: auto;
|
|
257
|
+
margin-bottom: auto;
|
|
257
258
|
}
|
|
258
259
|
|
|
259
|
-
.
|
|
260
|
-
margin-
|
|
260
|
+
.mt-auto {
|
|
261
|
+
margin-top: auto;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
|
-
.
|
|
264
|
-
margin-
|
|
264
|
+
.mb-auto {
|
|
265
|
+
margin-bottom: auto;
|
|
265
266
|
}
|
|
266
267
|
|
|
267
|
-
.
|
|
268
|
-
margin-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.mx-0 {
|
|
272
|
-
margin-left: 0;
|
|
273
|
-
margin-right: 0;
|
|
268
|
+
.mr-auto {
|
|
269
|
+
margin-right: auto;
|
|
274
270
|
}
|
|
275
271
|
|
|
276
|
-
.
|
|
277
|
-
margin-
|
|
278
|
-
margin-bottom: 0;
|
|
272
|
+
.ml-auto {
|
|
273
|
+
margin-left: auto;
|
|
279
274
|
}
|
|
280
275
|
|
|
281
276
|
.m-xs {
|
|
@@ -458,6 +453,36 @@
|
|
|
458
453
|
margin-bottom: $xxl;
|
|
459
454
|
}
|
|
460
455
|
|
|
456
|
+
.m-0 {
|
|
457
|
+
margin: 0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.mt-0 {
|
|
461
|
+
margin-top: 0;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.mb-0 {
|
|
465
|
+
margin-bottom: 0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.mr-0 {
|
|
469
|
+
margin-right: 0;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.ml-0 {
|
|
473
|
+
margin-left: 0;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.mx-0 {
|
|
477
|
+
margin-left: 0;
|
|
478
|
+
margin-right: 0;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.my-0 {
|
|
482
|
+
margin-top: 0;
|
|
483
|
+
margin-bottom: 0;
|
|
484
|
+
}
|
|
485
|
+
|
|
461
486
|
/***************************************************************************
|
|
462
487
|
* *
|
|
463
488
|
* Layout Widths *
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
|
|
4
|
-
$colorStateNone: rgb(143, 143, 143);
|
|
5
|
-
$colorStateOpen: rgb(199, 199, 199);
|
|
6
|
-
|
|
7
|
-
$colorStateInProgress: rgb(33, 150, 243);
|
|
8
|
-
$colorStateCompleted: rgb(4, 170, 109);
|
|
9
|
-
$colorStateWarn: rgb(255, 145, 0);
|
|
10
|
-
$colorStateError: rgb(255, 0, 0);
|
|
11
|
-
$colorStateOther: rgb(121, 73, 252);
|
|
12
|
-
|
|
13
|
-
$level-low: rgb(4, 170, 109);
|
|
14
|
-
$level-medium: rgb(33, 150, 243);
|
|
15
|
-
$level-high: rgb(255, 145, 0);
|
|
16
|
-
$level-critical: rgb(255, 0, 0);
|
|
17
|
-
|
|
18
|
-
@mixin theme($config-or-theme) {
|
|
19
|
-
.mat-mdc-chip.elder-chip-label {
|
|
20
|
-
--mdc-chip-elevated-container-color: rgba(143, 143, 143, 0.2);
|
|
21
|
-
background-color: var(--mdc-chip-elevated-container-color);
|
|
22
|
-
|
|
23
|
-
&.color-primary {
|
|
24
|
-
background-color: var(--md-sys-color-primary-container);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.color-primary {
|
|
28
|
-
@include _theme_color_chip(
|
|
29
|
-
var(--md-sys-color-primary-container),
|
|
30
|
-
var(--md-sys-color-primary),
|
|
31
|
-
var(--md-sys-color-on-primary)
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.color-accent {
|
|
36
|
-
@include _theme_color_chip(
|
|
37
|
-
var(--md-sys-color-tertiary-container),
|
|
38
|
-
var(--md-sys-color-tertiary),
|
|
39
|
-
var(--md-sys-color-on-tertiary)
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.color-warn {
|
|
44
|
-
@include _theme_color_chip(
|
|
45
|
-
var(--md-sys-color-error-container),
|
|
46
|
-
var(--md-sys-color-error),
|
|
47
|
-
var(--md-sys-color-on-error)
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.none {
|
|
52
|
-
background-color: rgba($colorStateNone, 0.2);
|
|
53
|
-
border-color: $colorStateNone;
|
|
54
|
-
background-color: var(--md-sys-color-surface-variant);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.state-open {
|
|
58
|
-
background-color: rgba($colorStateOpen, 0.2);
|
|
59
|
-
border-color: var(--md-sys-color-surface-variant);
|
|
60
|
-
.mat-mdc-chip-avatar {
|
|
61
|
-
color: var(--md-sys-color-surface-variant);
|
|
62
|
-
}
|
|
63
|
-
background-color: var(--md-sys-color-surface-container);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.state-in-progress {
|
|
67
|
-
--mdc-chip-elevated-container-color: var(--md-sys-color-primary-container);
|
|
68
|
-
--mdc-chip-label-text-color: var(--md-sys-color-on-primary-container);
|
|
69
|
-
}
|
|
70
|
-
&.state-completed {
|
|
71
|
-
--mdc-chip-elevated-container-color: var(--mdc-chip-elevated-selected-container-color);
|
|
72
|
-
--mdc-chip-label-text-color: var(--mdc-chip-elevated-on-container-color);
|
|
73
|
-
}
|
|
74
|
-
&.state-warn {
|
|
75
|
-
--mdc-chip-elevated-container-color: var(--md-sys-color-tertiary-container);
|
|
76
|
-
--mdc-chip-label-text-color: var(--md-sys-color-tertiary-on-container);
|
|
77
|
-
}
|
|
78
|
-
&.state-error {
|
|
79
|
-
--mdc-chip-elevated-container-color: var(--md-sys-color-error-container);
|
|
80
|
-
--mdc-chip-label-text-color: var(--md-sys-color-error-on-container);
|
|
81
|
-
}
|
|
82
|
-
&.state-other {
|
|
83
|
-
--mdc-chip-elevated-container-color: var(--md-sys-color-primary-fixed-dim);
|
|
84
|
-
--mdc-chip-label-text-color: var(--md-sys-color-on-primary-fixed);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.level-low {
|
|
88
|
-
@include _outlined-label-chip($level-low);
|
|
89
|
-
}
|
|
90
|
-
&.level-medium {
|
|
91
|
-
@include _outlined-label-chip($level-medium);
|
|
92
|
-
}
|
|
93
|
-
&.level-high {
|
|
94
|
-
@include _outlined-label-chip($level-high);
|
|
95
|
-
}
|
|
96
|
-
&.level-critical {
|
|
97
|
-
@include _outlined-label-chip($level-critical);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@mixin _theme_color_chip($color1, $color2, $color3) {
|
|
103
|
-
&.legacy {
|
|
104
|
-
background-color: $color2;
|
|
105
|
-
.mat-mdc-chip-action-label,
|
|
106
|
-
.mat-mdc-chip-avatar,
|
|
107
|
-
.mdc-evolution-chip__checkmark {
|
|
108
|
-
color: $color3;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
&.md3 {
|
|
112
|
-
background-color: $color1;
|
|
113
|
-
border-color: $color2;
|
|
114
|
-
.mat-mdc-chip-action-label,
|
|
115
|
-
.mat-mdc-chip-avatar,
|
|
116
|
-
.mdc-evolution-chip__checkmark {
|
|
117
|
-
//color: $color2;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@mixin _outlined-label-chip($color1) {
|
|
123
|
-
background-color: rgba($color1, 0.2);
|
|
124
|
-
border-color: $color1;
|
|
125
|
-
.mat-mdc-chip-action-label,
|
|
126
|
-
.mat-mdc-chip-avatar {
|
|
127
|
-
color: $color1;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/***************************************************************************
|
|
2
|
-
* *
|
|
3
|
-
* CSS reset *
|
|
4
|
-
* *
|
|
5
|
-
**************************************************************************/
|
|
6
|
-
|
|
7
|
-
@mixin elder-reset() {
|
|
8
|
-
*,
|
|
9
|
-
*::before,
|
|
10
|
-
*::after {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use './elder-config' as config;
|
|
3
|
-
|
|
4
|
-
@mixin elder-design-tokens() {
|
|
5
|
-
@include elder-badge-sizing();
|
|
6
|
-
|
|
7
|
-
// bg color
|
|
8
|
-
--md-sys-color-background: var(--md-sys-color-surface-container-highest);
|
|
9
|
-
--mat-app-background-color: var(--md-sys-color-background);
|
|
10
|
-
|
|
11
|
-
// mat variables
|
|
12
|
-
--mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
|
|
13
|
-
--mat-badge-small-size-text-size: 9px; // this is the mat2 setting, mat3 somehow sets this to 0, which hides the font, unclear why.
|
|
14
|
-
--mdc-dialog-container-shape: 16px; // make border-radius of dialog container smaller (default is 28px)
|
|
15
|
-
--mat-dialog-container-max-width: 80vw; // 80vw is mat 2 default, mat 3 default is very narrow: 560px;
|
|
16
|
-
--mat-toolbar-title-text-tracking: 0; // mat toolbar typography
|
|
17
|
-
--mat-toolbar-title-text-weight: 500; // mat toolbar typography
|
|
18
|
-
--mat-table-row-item-outline-color: var(--md-sys-color-outline-variant);
|
|
19
|
-
--mat-divider-color: var(--md-sys-color-outline-variant); // make divider color lighter
|
|
20
|
-
--mat-sidenav-container-elevation-shadow: var(--mat-app-elevation-shadow-level-16);
|
|
21
|
-
--mat-sidenav-container-background-color: var(--md-sys-color-surface-container);
|
|
22
|
-
|
|
23
|
-
// elder custom variables
|
|
24
|
-
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
25
|
-
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
26
|
-
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
27
|
-
--elder-scrollbar-width: 8px;
|
|
28
|
-
--elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
|
|
29
|
-
|
|
30
|
-
// elder pane
|
|
31
|
-
--elder-pane-padding: #{map.get(config.$sizes, sm)};
|
|
32
|
-
--elder-pane-gap: #{map.get(config.$sizes, sm)};
|
|
33
|
-
--elder-pane-border-radius: var(
|
|
34
|
-
--mdc-outlined-card-container-shape,
|
|
35
|
-
var(--mat-app-corner-medium)
|
|
36
|
-
);
|
|
37
|
-
--elder-pane-bg-color: var(--md-sys-color-surface-container-lowest);
|
|
38
|
-
|
|
39
|
-
// card header
|
|
40
|
-
--elder-card-header-padding: 15px 15px 5px 15px;
|
|
41
|
-
|
|
42
|
-
// cards, table etc bg
|
|
43
|
-
--mdc-elevated-card-container-color: var(--md-sys-color-surface-container-lowest);
|
|
44
|
-
--mdc-outlined-card-container-color: var(--mdc-elevated-card-container-color);
|
|
45
|
-
--mat-table-background-color: var(--md-sys-color-surface-container-lowest);
|
|
46
|
-
--mat-paginator-container-background-color: var(--mat-table-background-color);
|
|
47
|
-
--elder-grid-background-color: var(--mat-table-background-color);
|
|
48
|
-
|
|
49
|
-
// elder toast messages
|
|
50
|
-
--elder-toast-message-color-title-default: var(--md-sys-color-inverse-on-surface);
|
|
51
|
-
--elder-toast-message-color-title-warn: var(--md-sys-color-inverse-on-surface);
|
|
52
|
-
--elder-toast-message-color-title-error: var(--md-sys-color-inverse-on-surface);
|
|
53
|
-
|
|
54
|
-
// main nav top left button color
|
|
55
|
-
--elder-toolbar-main-nav-button-color: var(--md-sys-color-on-primary);
|
|
56
|
-
--elder-toolbar-main-nav-button-container-bg-color: var(--md-sys-color-primary);
|
|
57
|
-
|
|
58
|
-
// custom colors
|
|
59
|
-
--elder-blue: rgb(11, 40, 79);
|
|
60
|
-
--elder-gold: rgb(182, 159, 106);
|
|
61
|
-
--elder-gold-darkest: #423d32;
|
|
62
|
-
--elder-gold-semi-dark: #7f7054;
|
|
63
|
-
|
|
64
|
-
--elder-color-highlight: var(--md-sys-color-primary-container);
|
|
65
|
-
--elder-color-highlight-dim: rgb(232, 239, 255);
|
|
66
|
-
|
|
67
|
-
// missing md3 color
|
|
68
|
-
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-surface);
|
|
69
|
-
|
|
70
|
-
// dialog
|
|
71
|
-
--elder-dialog-panel-bg-color: var(md-sys-color-surface-container-low);
|
|
72
|
-
|
|
73
|
-
// xy
|
|
74
|
-
--elder-round-form-field-outline: none;
|
|
75
|
-
|
|
76
|
-
&.elder-dark-theme {
|
|
77
|
-
--elder-dialog-panel-bg-color: var(--md-sys-color-surface-container);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// light theme overwrites
|
|
81
|
-
&.elder-light-theme {
|
|
82
|
-
--md-sys-color-primary: var(--elder-blue);
|
|
83
|
-
--md-sys-color-tertiary: var(--elder-gold);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// dark theme overwrites
|
|
87
|
-
&.elder-dark-theme {
|
|
88
|
-
--elder-round-form-field-outline: solid 1px var(--md-sys-color-outline);
|
|
89
|
-
--mat-sidenav-scrim-color: rgba(255, 255, 255, 0.4);
|
|
90
|
-
//--md-sys-color-primary-container: #d2cab4; // lighten up dark mode container color
|
|
91
|
-
--md-sys-color-primary-container: var(--elder-gold-semi-dark);
|
|
92
|
-
--md-sys-color-primary-fixed-dim: var(--elder-gold-darkest);
|
|
93
|
-
--elder-color-highlight-dim: var(--elder-gold-darkest);
|
|
94
|
-
--elder-color-highlight: var(--elder-gold-semi-dark);
|
|
95
|
-
--md-sys-color-tertiary-fixed-dim: var(--md-sys-color-primary-fixed-dim);
|
|
96
|
-
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-surface);
|
|
97
|
-
--md-sys-color-tertiary-container: var(--md-sys-color-primary-container);
|
|
98
|
-
--md-sys-color-surface-container-highest: #191919;
|
|
99
|
-
--md-sys-color-surface-container-lowest: #262626;
|
|
100
|
-
--md-sys-color-error: #FF999F;
|
|
101
|
-
--md-sys-color-inverse-primary: var(--md-sys-color-primary-container);
|
|
102
|
-
--md-sys-color-surface-tint: var(--elder-gold-darkest);
|
|
103
|
-
--elder-dark-gray: var(--md-sys-color-surface-container);
|
|
104
|
-
--mdc-chip-outline-color: rgba(255, 255, 255, 0.3);
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
// dark mode specific colors
|
|
109
|
-
--elder-dark-mode-color-primary: var(--md-sys-color-primary);
|
|
110
|
-
--elder-dark-mode-color-on-primary: var(--md-sys-color-on-primary);
|
|
111
|
-
--elder-dark-mode-color-surface: var(--md-sys-color-surface);
|
|
112
|
-
--elder-dark-mode-color-on-surface: var(--md-sys-color-on-surface);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@mixin elder-badge-sizing() {
|
|
117
|
-
// Use legacy MAT 2 badge sizing
|
|
118
|
-
--mat-badge-container-size: unset;
|
|
119
|
-
--mat-badge-small-size-container-size: unset;
|
|
120
|
-
--mat-badge-large-size-container-size: unset;
|
|
121
|
-
--mat-badge-legacy-container-size: 22px;
|
|
122
|
-
--mat-badge-legacy-small-size-container-size: 16px;
|
|
123
|
-
--mat-badge-legacy-large-size-container-size: 28px;
|
|
124
|
-
--mat-badge-container-offset: -11px 0;
|
|
125
|
-
--mat-badge-small-size-container-offset: -8px 0;
|
|
126
|
-
--mat-badge-large-size-container-offset: -14px 0;
|
|
127
|
-
--mat-badge-container-overlap-offset: -11px;
|
|
128
|
-
--mat-badge-small-size-container-overlap-offset: -8px;
|
|
129
|
-
--mat-badge-large-size-container-overlap-offset: -14px;
|
|
130
|
-
--mat-badge-container-padding: 0;
|
|
131
|
-
--mat-badge-small-size-container-padding: 0;
|
|
132
|
-
--mat-badge-large-size-container-padding: 0;
|
|
133
|
-
--mat-badge-line-height: var(--mat-badge-legacy-container-size);
|
|
134
|
-
--mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
|
|
135
|
-
--mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
|
|
136
|
-
}
|