@elderbyte/ngx-starter 18.13.0-beta.0 → 18.13.0-beta.2
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 +7 -0
- package/esm2022/lib/components/access-denied/elder-access-denied.component.mjs +3 -3
- package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +3 -3
- package/esm2022/lib/components/card-organizer/card-stack/elder-card-stack.component.mjs +3 -3
- package/esm2022/lib/components/cards/elder-card/elder-card.component.mjs +3 -3
- package/esm2022/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +3 -3
- package/esm2022/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +3 -3
- package/esm2022/lib/components/data-view/grid/elder-grid/elder-grid.component.mjs +3 -3
- package/esm2022/lib/components/data-view/table/elder-table/elder-table.component.mjs +3 -3
- package/esm2022/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +3 -3
- package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +3 -3
- package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +3 -3
- package/esm2022/lib/components/forms/search/search-box/elder-search-box.component.mjs +3 -3
- package/esm2022/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +3 -3
- package/esm2022/lib/components/headers/elder-header/elder-header.component.mjs +3 -3
- package/esm2022/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +3 -3
- package/esm2022/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +3 -3
- package/esm2022/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +3 -3
- package/esm2022/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +4 -5
- package/esm2022/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.mjs +3 -3
- package/esm2022/lib/components/page/exit-guard/page-exit-lock-overview/page-exit-lock-overview.component.mjs +3 -3
- package/esm2022/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.mjs +3 -3
- package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +2 -2
- package/esm2022/lib/components/shell/shell/elder-shell.component.mjs +6 -6
- package/esm2022/lib/components/toasts/standard-toast/standard-toast.component.mjs +3 -3
- package/fesm2022/elderbyte-ngx-starter.mjs +52 -52
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -2
- package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +3 -3
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +9 -25
- package/src/lib/components/cards/elder-card/elder-card.component.scss +7 -8
- package/src/lib/components/chips/_elder-chip-theme.scss +3 -3
- package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +1 -1
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +3 -6
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +8 -10
- package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +2 -2
- package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +1 -1
- package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +4 -10
- package/src/lib/components/graph/elder-progress-bar/elder-progress-bar.component.scss +0 -1
- package/src/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.scss +2 -0
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +8 -4
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +1 -1
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +4 -4
- package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +2 -2
- package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +2 -2
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +3 -3
- package/src/lib/components/panels/flat/_elder-panel-theme.scss +8 -41
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +2 -3
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +1 -2
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +2 -2
- package/src/lib/components/shell/shell/elder-shell.component.scss +8 -0
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +31 -2
- package/theming/_elder-badge-sizing.scss +21 -0
- package/theming/_elder-color-helpers.scss +74 -0
- package/theming/_elder-common.scss +15 -3
- package/theming/_elder-design-token-overwrites.scss +33 -0
- package/theming/_elder-flex-layout.scss +0 -11
- package/theming/_elder-layout-system.scss +225 -0
- package/theming/_elder-m3-theme.scss +208 -4
- package/theming/_elder-scrollbar-theme.scss +1 -1
- package/theming/_elder-style-fixes.scss +214 -20
- package/theming/_mixins.scss +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@mixin elder-color-helpers() {
|
|
2
|
+
$color-variables: (
|
|
3
|
+
'background': var(--md-sys-color-background),
|
|
4
|
+
'error': var(--md-sys-color-error),
|
|
5
|
+
'error-container': var(--md-sys-color-error-container),
|
|
6
|
+
'inverse-on-surface': var(--md-sys-color-inverse-on-surface),
|
|
7
|
+
'inverse-primary': var(--md-sys-color-inverse-primary),
|
|
8
|
+
'inverse-surface': var(--md-sys-color-inverse-surface),
|
|
9
|
+
'on-background': var(--md-sys-color-on-background),
|
|
10
|
+
'on-error': var(--md-sys-color-on-error),
|
|
11
|
+
'on-error-container': var(--md-sys-color-on-error-container),
|
|
12
|
+
'on-primary': var(--md-sys-color-on-primary),
|
|
13
|
+
'on-primary-container': var(--md-sys-color-on-primary-container),
|
|
14
|
+
'on-primary-fixed': var(--md-sys-color-on-primary-fixed),
|
|
15
|
+
'on-primary-fixed-variant': var(--md-sys-color-on-primary-fixed-variant),
|
|
16
|
+
'on-secondary': var(--md-sys-color-on-secondary),
|
|
17
|
+
'on-secondary-container': var(--md-sys-color-on-secondary-container),
|
|
18
|
+
'on-secondary-fixed': var(--md-sys-color-on-secondary-fixed),
|
|
19
|
+
'on-secondary-fixed-variant': var(--md-sys-color-on-secondary-fixed-variant),
|
|
20
|
+
'on-surface': var(--md-sys-color-on-surface),
|
|
21
|
+
'on-surface-variant': var(--md-sys-color-on-surface-variant),
|
|
22
|
+
'on-tertiary': var(--md-sys-color-on-tertiary),
|
|
23
|
+
'on-tertiary-container': var(--md-sys-color-on-tertiary-container),
|
|
24
|
+
'on-tertiary-fixed': var(--md-sys-color-on-tertiary-fixed),
|
|
25
|
+
'on-tertiary-fixed-variant': var(--md-sys-color-on-tertiary-fixed-variant),
|
|
26
|
+
'outline': var(--md-sys-color-outline),
|
|
27
|
+
'outline-variant': var(--md-sys-color-outline-variant),
|
|
28
|
+
'primary': var(--md-sys-color-primary),
|
|
29
|
+
'primary-container': var(--md-sys-color-primary-container),
|
|
30
|
+
'primary-fixed': var(--md-sys-color-primary-fixed),
|
|
31
|
+
'primary-fixed-dim': var(--md-sys-color-primary-fixed-dim),
|
|
32
|
+
'scrim': var(--md-sys-color-scrim),
|
|
33
|
+
'secondary': var(--md-sys-color-secondary),
|
|
34
|
+
'secondary-container': var(--md-sys-color-secondary-container),
|
|
35
|
+
'secondary-fixed': var(--md-sys-color-secondary-fixed),
|
|
36
|
+
'secondary-fixed-dim': var(--md-sys-color-secondary-fixed-dim),
|
|
37
|
+
'shadow': var(--md-sys-color-shadow),
|
|
38
|
+
'surface': var(--md-sys-color-surface),
|
|
39
|
+
'surface-bright': var(--md-sys-color-surface-bright),
|
|
40
|
+
'surface-container': var(--md-sys-color-surface-container),
|
|
41
|
+
'surface-container-high': var(--md-sys-color-surface-container-high),
|
|
42
|
+
'surface-container-highest': var(--md-sys-color-surface-container-highest),
|
|
43
|
+
'surface-container-low': var(--md-sys-color-surface-container-low),
|
|
44
|
+
'surface-container-lowest': var(--md-sys-color-surface-container-lowest),
|
|
45
|
+
'surface-dim': var(--md-sys-color-surface-dim),
|
|
46
|
+
'surface-tint': var(--md-sys-color-surface-tint),
|
|
47
|
+
'surface-variant': var(--md-sys-color-surface-variant),
|
|
48
|
+
'tertiary': var(--md-sys-color-tertiary),
|
|
49
|
+
'tertiary-container': var(--md-sys-color-tertiary-container),
|
|
50
|
+
'tertiary-fixed': var(--md-sys-color-tertiary-fixed),
|
|
51
|
+
'tertiary-fixed-dim': var(--md-sys-color-tertiary-fixed-dim),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
// background colors
|
|
55
|
+
@each $name, $value in $color-variables {
|
|
56
|
+
.elder-bg-#{$name} {
|
|
57
|
+
background-color: #{$value};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// text colors
|
|
62
|
+
@each $name, $value in $color-variables {
|
|
63
|
+
.elder-text-#{$name} {
|
|
64
|
+
color: #{$value};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// border colors
|
|
69
|
+
@each $name, $value in $color-variables {
|
|
70
|
+
.elder-border-#{$name} {
|
|
71
|
+
border-color: #{$value};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -19,6 +19,18 @@
|
|
|
19
19
|
$xl: map-get($common-sizes, xl);
|
|
20
20
|
$xxl: map-get($common-sizes, xxl);
|
|
21
21
|
|
|
22
|
+
/***************************************************************************
|
|
23
|
+
* *
|
|
24
|
+
* CSS reset *
|
|
25
|
+
* *
|
|
26
|
+
**************************************************************************/
|
|
27
|
+
|
|
28
|
+
*,
|
|
29
|
+
*::before,
|
|
30
|
+
*::after {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
|
|
22
34
|
/***************************************************************************
|
|
23
35
|
* *
|
|
24
36
|
* Angular Material Extensions (Optional) *
|
|
@@ -112,9 +124,9 @@
|
|
|
112
124
|
**************************************************************************/
|
|
113
125
|
|
|
114
126
|
.custom-dialog-container .mat-mdc-dialog-container {
|
|
115
|
-
overflow-y: hidden;
|
|
116
|
-
padding: 0;
|
|
117
|
-
margin: 0;
|
|
127
|
+
// overflow-y: hidden;
|
|
128
|
+
// padding: 0;
|
|
129
|
+
// margin: 0;
|
|
118
130
|
}
|
|
119
131
|
|
|
120
132
|
.no-padding-dialog .mat-mdc-dialog-container {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@mixin elder-design-token-overwrites() {
|
|
2
|
+
// mat variables
|
|
3
|
+
--mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
|
|
4
|
+
--mat-badge-small-size-text-size: 9px; // this is the mat2 setting, mat3 somehow sets this to 0, which hides the font, unclear why.
|
|
5
|
+
--mdc-dialog-container-shape: 16px; // make border-radius of dialog container smaller (default is 28px)
|
|
6
|
+
--mat-dialog-container-max-width: 80vw; // 80vw is mat 2 default, mat 3 default is very narrow: 560px;
|
|
7
|
+
--mat-toolbar-title-text-tracking: 0; // mat toolbar typography
|
|
8
|
+
--mat-toolbar-title-text-weight: 500; // mat toolbar typography
|
|
9
|
+
// make table row border color lighter
|
|
10
|
+
--mat-table-row-item-outline-color: var(--md-sys-color-outline-variant);
|
|
11
|
+
--mat-divider-color: var(--md-sys-color-outline-variant); // make divider color lighter
|
|
12
|
+
|
|
13
|
+
//--mat-table-row-item-outline-color: var(--md-sys-color-outline-variant); // make table row border color lighter
|
|
14
|
+
|
|
15
|
+
// elder custom variables
|
|
16
|
+
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
17
|
+
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
18
|
+
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
19
|
+
|
|
20
|
+
// cards white bg
|
|
21
|
+
--mdc-elevated-card-container-color: var(--md-sys-color-surface-container-lowest);
|
|
22
|
+
--mdc-outlined-card-container-color: var(--mdc-elevated-card-container-color);
|
|
23
|
+
--mat-table-background-color: var(--mdc-elevated-card-container-color);
|
|
24
|
+
|
|
25
|
+
// dark theme overwrites
|
|
26
|
+
&.elder-dark-theme {
|
|
27
|
+
//--mdc-elevated-card-container-color: var(--md-sys-color-surface-bright);
|
|
28
|
+
--elder-dark-gray: #1f1f1f; // copied from mat 2 theme
|
|
29
|
+
--mdc-elevated-card-container-color: #262626; // copied from mat 2 theme
|
|
30
|
+
--mdc-outlined-card-container-color: var(--mdc-elevated-card-container-color);
|
|
31
|
+
--mat-table-background-color: var(--mdc-elevated-card-container-color);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -25,13 +25,11 @@ $media: (
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@mixin flex-layout {
|
|
28
|
-
box-sizing: border-box;
|
|
29
28
|
display: flex !important;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
@mixin flex-initial-100 {
|
|
33
32
|
flex: 1 1 100%;
|
|
34
|
-
box-sizing: border-box;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
@mixin elder-flex-layout($theme) {
|
|
@@ -61,7 +59,6 @@ $media: (
|
|
|
61
59
|
min-height: 100%;
|
|
62
60
|
min-width: 100%;
|
|
63
61
|
width: 100%;
|
|
64
|
-
box-sizing: border-box;
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
/***************************************************************************
|
|
@@ -195,24 +192,20 @@ $media: (
|
|
|
195
192
|
|
|
196
193
|
.flex {
|
|
197
194
|
flex: 1 1 0%; // grow, shrink, no initial size
|
|
198
|
-
box-sizing: border-box;
|
|
199
195
|
min-width: 0;
|
|
200
196
|
min-height: 0;
|
|
201
197
|
}
|
|
202
198
|
|
|
203
199
|
.flex-auto {
|
|
204
200
|
flex: 1 1 auto; // grow, shrink
|
|
205
|
-
box-sizing: border-box;
|
|
206
201
|
}
|
|
207
202
|
|
|
208
203
|
.flex-initial {
|
|
209
204
|
flex: 0 1 auto; // No grow, shrink
|
|
210
|
-
box-sizing: border-box;
|
|
211
205
|
}
|
|
212
206
|
|
|
213
207
|
.flex-none {
|
|
214
208
|
flex: none;
|
|
215
|
-
box-sizing: border-box;
|
|
216
209
|
}
|
|
217
210
|
|
|
218
211
|
.layout-row {
|
|
@@ -325,22 +318,18 @@ $media: (
|
|
|
325
318
|
|
|
326
319
|
.flex-grow {
|
|
327
320
|
flex-grow: 1;
|
|
328
|
-
box-sizing: border-box;
|
|
329
321
|
}
|
|
330
322
|
|
|
331
323
|
.flex-nogrow {
|
|
332
324
|
flex-grow: 0;
|
|
333
|
-
box-sizing: border-box;
|
|
334
325
|
}
|
|
335
326
|
|
|
336
327
|
.flex-shrink {
|
|
337
328
|
flex-shrink: 1;
|
|
338
|
-
box-sizing: border-box;
|
|
339
329
|
}
|
|
340
330
|
|
|
341
331
|
.flex-noshrink {
|
|
342
332
|
flex: 1 0 0%; // grow, shrink, no initial size
|
|
343
|
-
box-sizing: border-box;
|
|
344
333
|
}
|
|
345
334
|
|
|
346
335
|
/***************************************************************************
|
|
@@ -202,6 +202,231 @@
|
|
|
202
202
|
padding-bottom: $xxl;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
/***************************************************************************
|
|
206
|
+
* *
|
|
207
|
+
* Margin *
|
|
208
|
+
* *
|
|
209
|
+
**************************************************************************/
|
|
210
|
+
|
|
211
|
+
.m-auto {
|
|
212
|
+
margin: auto;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.mx-auto {
|
|
216
|
+
margin-left: auto;
|
|
217
|
+
margin-right: auto;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.m-0 {
|
|
221
|
+
margin: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.mt-0 {
|
|
225
|
+
margin-top: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.mb-0 {
|
|
229
|
+
margin-bottom: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.mr-0 {
|
|
233
|
+
margin-right: 0;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ml-0 {
|
|
237
|
+
margin-left: 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.mx-0 {
|
|
241
|
+
margin-left: 0;
|
|
242
|
+
margin-right: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.my-0 {
|
|
246
|
+
margin-top: 0;
|
|
247
|
+
margin-bottom: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.m-xs {
|
|
251
|
+
margin: $xs;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.mt-xs {
|
|
255
|
+
margin-top: $xs;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.mb-xs {
|
|
259
|
+
margin-bottom: $xs;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.mr-xs {
|
|
263
|
+
margin-right: $xs;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ml-xs {
|
|
267
|
+
margin-left: $xs;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.mx-xs {
|
|
271
|
+
margin-left: $xs;
|
|
272
|
+
margin-right: $xs;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.my-xs {
|
|
276
|
+
margin-top: $xs;
|
|
277
|
+
margin-bottom: $xs;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.m-sm {
|
|
281
|
+
margin: $sm;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.mt-sm {
|
|
285
|
+
margin-top: $sm;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.mb-sm {
|
|
289
|
+
margin-bottom: $sm;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.mr-sm {
|
|
293
|
+
margin-right: $sm;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ml-sm {
|
|
297
|
+
margin-left: $sm;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.mx-sm {
|
|
301
|
+
margin-left: $sm;
|
|
302
|
+
margin-right: $sm;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.my-sm {
|
|
306
|
+
margin-top: $sm;
|
|
307
|
+
margin-bottom: $sm;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.m-md {
|
|
311
|
+
margin: $md;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.mt-md {
|
|
315
|
+
margin-top: $md;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.mb-md {
|
|
319
|
+
margin-bottom: $md;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.mr-md {
|
|
323
|
+
margin-right: $md;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.ml-md {
|
|
327
|
+
margin-left: $md;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.mx-md {
|
|
331
|
+
margin-left: $md;
|
|
332
|
+
margin-right: $md;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.my-md {
|
|
336
|
+
margin-top: $md;
|
|
337
|
+
margin-bottom: $md;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.m-lg {
|
|
341
|
+
margin: $lg;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.mt-lg {
|
|
345
|
+
margin-top: $lg;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.mb-lg {
|
|
349
|
+
margin-bottom: $lg;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mr-lg {
|
|
353
|
+
margin-right: $lg;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.ml-lg {
|
|
357
|
+
margin-left: $lg;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.mx-lg {
|
|
361
|
+
margin-left: $lg;
|
|
362
|
+
margin-right: $lg;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.my-lg {
|
|
366
|
+
margin-top: $lg;
|
|
367
|
+
margin-bottom: $lg;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.m-xl {
|
|
371
|
+
margin: $xl;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.mt-xl {
|
|
375
|
+
margin-top: $xl;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.mb-xl {
|
|
379
|
+
margin-bottom: $xl;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.mr-xl {
|
|
383
|
+
margin-right: $xl;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.ml-xl {
|
|
387
|
+
margin-left: $xl;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.mx-xl {
|
|
391
|
+
margin-left: $xl;
|
|
392
|
+
margin-right: $xl;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.my-xl {
|
|
396
|
+
margin-top: $xl;
|
|
397
|
+
margin-bottom: $xl;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.m-xxl {
|
|
401
|
+
margin: $xxl;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.mt-xxl {
|
|
405
|
+
margin-top: $xxl;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.mb-xxl {
|
|
409
|
+
margin-bottom: $xxl;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.mr-xxl {
|
|
413
|
+
margin-right: $xxl;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.ml-xxl {
|
|
417
|
+
margin-left: $xxl;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.mx-xxl {
|
|
421
|
+
margin-left: $xxl;
|
|
422
|
+
margin-right: $xxl;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.my-xxl {
|
|
426
|
+
margin-top: $xxl;
|
|
427
|
+
margin-bottom: $xxl;
|
|
428
|
+
}
|
|
429
|
+
|
|
205
430
|
/***************************************************************************
|
|
206
431
|
* *
|
|
207
432
|
* Layout Widths *
|
|
@@ -1,8 +1,45 @@
|
|
|
1
|
-
// This file was generated by running 'ng generate @angular/material:m3-theme'.
|
|
2
|
-
// Proceed with caution if making changes to this file.
|
|
3
|
-
|
|
4
1
|
@use 'sass:map';
|
|
5
2
|
@use '@angular/material' as mat;
|
|
3
|
+
@use 'elder-design-token-overwrites' as elder-design-token-overwrites;
|
|
4
|
+
@use '../index' as elder;
|
|
5
|
+
|
|
6
|
+
@mixin render-default-elder-theme ($themes, $options: ()) {
|
|
7
|
+
// map options
|
|
8
|
+
$use-typography-hierarchy: not map-has-key($options, 'no-typography-hierarchy');
|
|
9
|
+
|
|
10
|
+
// create theme
|
|
11
|
+
//$themes: create-default-elder-themes();
|
|
12
|
+
$elder-light-theme-m3: map.get($themes, light);
|
|
13
|
+
$elder-dark-theme-m3: map.get($themes, dark-reverse);
|
|
14
|
+
|
|
15
|
+
// render theme
|
|
16
|
+
@include mat.all-component-typographies();
|
|
17
|
+
@include mat.core();
|
|
18
|
+
|
|
19
|
+
@if $use-typography-hierarchy {
|
|
20
|
+
@include mat.typography-hierarchy($elder-light-theme-m3, $back-compat: true);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.elder-light-theme,
|
|
24
|
+
.elder-dark-theme {
|
|
25
|
+
@include mat.all-component-themes($elder-light-theme-m3);
|
|
26
|
+
@include mat.system-level-colors($elder-light-theme-m3);
|
|
27
|
+
@include mat.system-level-typography($elder-light-theme-m3);
|
|
28
|
+
@include mat.color-variants-backwards-compatibility($elder-light-theme-m3);
|
|
29
|
+
@include elder.starter-theme($elder-light-theme-m3);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.elder-dark-theme {
|
|
33
|
+
@include mat.all-component-colors($elder-dark-theme-m3);
|
|
34
|
+
@include mat.system-level-colors($elder-dark-theme-m3);
|
|
35
|
+
@include mat.color-variants-backwards-compatibility($elder-dark-theme-m3);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.elder-light-theme,
|
|
39
|
+
.elder-dark-theme {
|
|
40
|
+
@include elder-design-token-overwrites.elder-design-token-overwrites();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
6
43
|
|
|
7
44
|
@function create-default-elder-themes() {
|
|
8
45
|
@return create-themes(get-palettes());
|
|
@@ -19,6 +56,8 @@
|
|
|
19
56
|
);
|
|
20
57
|
$_primary: map.merge(map.get($_palettes, primary), $_rest);
|
|
21
58
|
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
59
|
+
$_primary-reverse: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
60
|
+
$_tertiary-reverse: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
22
61
|
|
|
23
62
|
$density: 0;
|
|
24
63
|
|
|
@@ -60,7 +99,47 @@
|
|
|
60
99
|
)
|
|
61
100
|
);
|
|
62
101
|
|
|
63
|
-
|
|
102
|
+
$light-theme-reverse: mat.define-theme(
|
|
103
|
+
(
|
|
104
|
+
color: (
|
|
105
|
+
theme-type: light,
|
|
106
|
+
primary: $_primary-reverse,
|
|
107
|
+
tertiary: $_tertiary-reverse,
|
|
108
|
+
use-system-variables: true,
|
|
109
|
+
system-variables-prefix: md-sys-color,
|
|
110
|
+
),
|
|
111
|
+
typography: (
|
|
112
|
+
use-system-variables: true,
|
|
113
|
+
system-variables-prefix: md-sys-typescale,
|
|
114
|
+
),
|
|
115
|
+
density: (
|
|
116
|
+
scale: $density,
|
|
117
|
+
),
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
$dark-theme-reverse: mat.define-theme(
|
|
122
|
+
(
|
|
123
|
+
color: (
|
|
124
|
+
theme-type: dark,
|
|
125
|
+
primary: $_primary-reverse,
|
|
126
|
+
tertiary: $_tertiary-reverse,
|
|
127
|
+
use-system-variables: true,
|
|
128
|
+
system-variables-prefix: md-sys-color,
|
|
129
|
+
),
|
|
130
|
+
typography: (
|
|
131
|
+
use-system-variables: true,
|
|
132
|
+
system-variables-prefix: md-sys-typescale,
|
|
133
|
+
),
|
|
134
|
+
density: (
|
|
135
|
+
scale: $density,
|
|
136
|
+
),
|
|
137
|
+
)
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
@return (light: $light-theme, dark: $dark-theme, light-reverse: $light-theme-reverse, dark-reverse: $dark-theme-reverse);
|
|
64
143
|
}
|
|
65
144
|
|
|
66
145
|
@function get-palettes() {
|
|
@@ -752,3 +831,128 @@
|
|
|
752
831
|
--md-sys-color-surface-container-high: rgb(41 42 45);
|
|
753
832
|
--md-sys-color-surface-container-highest: rgb(52 53 56);
|
|
754
833
|
}
|
|
834
|
+
|
|
835
|
+
@function get-palettes-variant-3() {
|
|
836
|
+
// Note: Color palettes are generated from primary: #00378F, tertiary: #ACACFF
|
|
837
|
+
$_palettes: (
|
|
838
|
+
primary: (
|
|
839
|
+
0: #000000,
|
|
840
|
+
10: #001848,
|
|
841
|
+
20: #002b74,
|
|
842
|
+
25: #00358b,
|
|
843
|
+
30: #144199,
|
|
844
|
+
35: #264da5,
|
|
845
|
+
40: #345ab2,
|
|
846
|
+
50: #5073cd,
|
|
847
|
+
60: #6b8de9,
|
|
848
|
+
70: #89a9ff,
|
|
849
|
+
80: #b2c5ff,
|
|
850
|
+
90: #dae2ff,
|
|
851
|
+
95: #eef0ff,
|
|
852
|
+
98: #faf8ff,
|
|
853
|
+
99: #fefbff,
|
|
854
|
+
100: #ffffff,
|
|
855
|
+
),
|
|
856
|
+
secondary: (
|
|
857
|
+
0: #000000,
|
|
858
|
+
10: #0d1a3a,
|
|
859
|
+
20: #232f50,
|
|
860
|
+
25: #2e3a5c,
|
|
861
|
+
30: #3a4668,
|
|
862
|
+
35: #455174,
|
|
863
|
+
40: #515d81,
|
|
864
|
+
50: #6a769b,
|
|
865
|
+
60: #8490b6,
|
|
866
|
+
70: #9eaad2,
|
|
867
|
+
80: #b9c5ee,
|
|
868
|
+
90: #dae2ff,
|
|
869
|
+
95: #eef0ff,
|
|
870
|
+
98: #faf8ff,
|
|
871
|
+
99: #fefbff,
|
|
872
|
+
100: #ffffff,
|
|
873
|
+
),
|
|
874
|
+
tertiary: (
|
|
875
|
+
0: #000000,
|
|
876
|
+
10: #100b5c,
|
|
877
|
+
20: #272671,
|
|
878
|
+
25: #32327c,
|
|
879
|
+
30: #3e3e89,
|
|
880
|
+
35: #4a4a95,
|
|
881
|
+
40: #5656a2,
|
|
882
|
+
50: #6f6fbd,
|
|
883
|
+
60: #8989d9,
|
|
884
|
+
70: #a3a3f6,
|
|
885
|
+
80: #c2c1ff,
|
|
886
|
+
90: #e2dfff,
|
|
887
|
+
95: #f2efff,
|
|
888
|
+
98: #fcf8ff,
|
|
889
|
+
99: #fffbff,
|
|
890
|
+
100: #ffffff,
|
|
891
|
+
),
|
|
892
|
+
neutral: (
|
|
893
|
+
0: #000000,
|
|
894
|
+
10: #1a1b21,
|
|
895
|
+
20: #2f3036,
|
|
896
|
+
25: #3a3b41,
|
|
897
|
+
30: #45464d,
|
|
898
|
+
35: #515259,
|
|
899
|
+
40: #5d5e65,
|
|
900
|
+
50: #76777e,
|
|
901
|
+
60: #909097,
|
|
902
|
+
70: #aaaab2,
|
|
903
|
+
80: #c6c6ce,
|
|
904
|
+
90: #e2e2ea,
|
|
905
|
+
95: #f1f0f8,
|
|
906
|
+
98: #faf8ff,
|
|
907
|
+
99: #fefbff,
|
|
908
|
+
100: #ffffff,
|
|
909
|
+
4: #0c0e13,
|
|
910
|
+
6: #121319,
|
|
911
|
+
12: #1e1f25,
|
|
912
|
+
17: #282a30,
|
|
913
|
+
22: #33343b,
|
|
914
|
+
24: #38393f,
|
|
915
|
+
87: #dad9e1,
|
|
916
|
+
92: #e8e7ef,
|
|
917
|
+
94: #eeedf5,
|
|
918
|
+
96: #f4f3fb,
|
|
919
|
+
),
|
|
920
|
+
neutral-variant: (
|
|
921
|
+
0: #000000,
|
|
922
|
+
10: #181b25,
|
|
923
|
+
20: #2d303b,
|
|
924
|
+
25: #383b46,
|
|
925
|
+
30: #434652,
|
|
926
|
+
35: #4f525e,
|
|
927
|
+
40: #5b5e6a,
|
|
928
|
+
50: #747683,
|
|
929
|
+
60: #8e909d,
|
|
930
|
+
70: #a8aab8,
|
|
931
|
+
80: #c4c6d4,
|
|
932
|
+
90: #e0e2f0,
|
|
933
|
+
95: #eef0fe,
|
|
934
|
+
98: #faf8ff,
|
|
935
|
+
99: #fefbff,
|
|
936
|
+
100: #ffffff,
|
|
937
|
+
),
|
|
938
|
+
error: (
|
|
939
|
+
0: #000000,
|
|
940
|
+
10: #410002,
|
|
941
|
+
20: #690005,
|
|
942
|
+
25: #7e0007,
|
|
943
|
+
30: #93000a,
|
|
944
|
+
35: #a80710,
|
|
945
|
+
40: #ba1a1a,
|
|
946
|
+
50: #de3730,
|
|
947
|
+
60: #ff5449,
|
|
948
|
+
70: #ff897d,
|
|
949
|
+
80: #ffb4ab,
|
|
950
|
+
90: #ffdad6,
|
|
951
|
+
95: #ffedea,
|
|
952
|
+
98: #fff8f7,
|
|
953
|
+
99: #fffbff,
|
|
954
|
+
100: #ffffff,
|
|
955
|
+
),
|
|
956
|
+
);
|
|
957
|
+
@return $_palettes;
|
|
958
|
+
}
|