@elderbyte/ngx-starter 19.1.0-beta.2 → 19.1.0-beta.21
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 +1203 -1145
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/utils/public_api.d.ts +1 -0
- package/lib/components/data-view/base/elder-data-view-base.d.ts +14 -0
- package/lib/components/layout/basic-pane-layout/basic-pane-layout.component.d.ts +1 -6
- package/lib/components/layout/pane/header/pane-actions.component.d.ts +5 -0
- package/lib/components/layout/pane/header/pane-header.component.d.ts +7 -0
- package/lib/components/layout/pane/header/pane-title.component.d.ts +5 -0
- package/lib/components/layout/pane/pane-content.component.d.ts +5 -0
- package/lib/components/layout/pane/pane.component.d.ts +1 -1
- package/lib/components/layout/public_api.d.ts +4 -0
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +7 -11
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +6 -5
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +70 -82
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +86 -105
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +4 -4
- package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +1 -0
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +22 -3
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +38 -4
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +2 -2
- package/src/lib/components/panels/toggle-panel/elder-toggle-panel.component.scss +3 -0
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +0 -77
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +0 -48
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +0 -60
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +14 -51
- 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 +198 -0
- package/theming/{system/_elder-config.scss → abstracts/_elder-scss-variables.scss} +34 -0
- package/theming/{system/_elder-defaults.scss → abstracts/_elder-set-defaults-fn.scss} +8 -8
- package/theming/abstracts/_elder-starter-theme.scss +45 -0
- package/theming/abstracts/_elder-theme-main.scss +92 -0
- package/theming/{style-tweaks/_elder-common.scss → base/_elder-common-base.scss} +26 -11
- package/theming/{style-tweaks/_elder-style-fixes.scss → base/_elder-fixes-base.scss} +29 -66
- package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +7 -4
- package/theming/components/_elder-chip-theme.scss +213 -0
- package/theming/components/_elder-select-theme.scss +75 -0
- package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss} +7 -14
- package/theming/utilities/_elder-common-utils.scss +20 -0
- package/theming/{utility-classes/_elder-flex-layout.scss → utilities/_elder-flex-layout-utils.scss} +108 -2
- package/theming/{utility-classes/_elder-layout-system.scss → utilities/_elder-layout-utils.scss} +226 -201
- package/theming/{utility-classes/_elder-typography-helpers.scss → utilities/_elder-typography-utils.scss} +1 -1
- package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +0 -5
- package/src/lib/components/chips/_elder-chip-theme.scss +0 -129
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +0 -66
- package/src/lib/components/select/_elder-select-base.scss +0 -28
- package/theming/style-tweaks/_elder-color-variants.scss +0 -31
- package/theming/style-tweaks/_elder-component-themes.scss +0 -22
- package/theming/style-tweaks/_elder-reset.scss +0 -13
- package/theming/system/_elder-design-tokens.scss +0 -101
- package/theming/system/_elder-m3-theme.scss +0 -156
- package/theming/system/_elder-starter-theme.scss +0 -45
- package/theming/utility-classes/_elder-common-helpers.scss +0 -8
- /package/theming/{style-tweaks/_elder-style-tweak-mixins.scss → base/_elder-base-mixins.scss} +0 -0
|
@@ -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,66 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin theme($theme) {
|
|
4
|
-
@include _group-theme($theme);
|
|
5
|
-
@include _link-theme($theme);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@mixin _group-theme($theme) {
|
|
9
|
-
.nav-group-button:hover {
|
|
10
|
-
background-color: var(--md-sys-color-surface-container-high);
|
|
11
|
-
transition: background-color 0.5s;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.nav-group-button:not(.nav-group-button-open) {
|
|
15
|
-
.mat-icon {
|
|
16
|
-
color: var(--md-sys-color-on-surface);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.nav-group-button-active {
|
|
21
|
-
background-color: var(--md-sys-color-primary-fixed);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.nav-group-button-open {
|
|
25
|
-
padding-left: 11px !important; // -5 to counter border-left
|
|
26
|
-
.mat-icon {
|
|
27
|
-
color: var(--md-sys-color-primary);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin _link-theme($theme) {
|
|
33
|
-
.nav-link.nav-link-clickable {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
&:hover {
|
|
36
|
-
background-color: var(--md-sys-color-surface-container-high);
|
|
37
|
-
color: var(--md-sys-color-on-surface);
|
|
38
|
-
.mat-icon {
|
|
39
|
-
color: var(--md-sys-color-on-surface);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.nav-link.nav-link-disabled {
|
|
45
|
-
cursor: default;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.nav-link:hover {
|
|
49
|
-
background-color: var(--md-sys-color-surface-container-low);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.nav-link.nav-link-active {
|
|
53
|
-
background-color: var(--md-sys-color-surface-container-highest);
|
|
54
|
-
color: var(--md-sys-color-on-surface-container);
|
|
55
|
-
.mat-icon {
|
|
56
|
-
color: var(--md-sys-color-on-teriary);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.nav-link.nav-link-inactive {
|
|
61
|
-
color: var(--md-sys-color-on-surface);
|
|
62
|
-
.mat-icon {
|
|
63
|
-
color: var(--md-sys-color-on-surface);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
|
|
4
|
-
@mixin typography($typography-config) {
|
|
5
|
-
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
6
|
-
|
|
7
|
-
$icon-size: 16px;
|
|
8
|
-
$arrow-icon-size: 24px;
|
|
9
|
-
|
|
10
|
-
.elder-input-prefix-icon-container {
|
|
11
|
-
height: $line-height-em !important;
|
|
12
|
-
min-width: $line-height-em !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.elder-select-arrow {
|
|
16
|
-
width: $arrow-icon-size !important;
|
|
17
|
-
height: $arrow-icon-size !important;
|
|
18
|
-
line-height: $arrow-icon-size !important;
|
|
19
|
-
font-size: $arrow-icon-size !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.elder-icon-small {
|
|
23
|
-
width: $icon-size !important;
|
|
24
|
-
height: $icon-size !important;
|
|
25
|
-
line-height: $icon-size !important;
|
|
26
|
-
font-size: $icon-size !important;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Source: https://material.angular.io/guide/theming#using-component-color-variants
|
|
5
|
-
*
|
|
6
|
-
* This applies custom color variants for the legacy M2 color system for usage in M3.
|
|
7
|
-
* There are different mixins for many components (not all).
|
|
8
|
-
* You can find the list of the components and there supported color variants here:
|
|
9
|
-
* https://material.angular.io/guide/theming#using-component-color-variants
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
// Custom Color variants for m3. They can already be provided through
|
|
13
|
-
// "mat.color-variants-backwards-compatibility()"
|
|
14
|
-
// But can be customized in this mixin below:
|
|
15
|
-
|
|
16
|
-
@mixin elder-color-variants($theme) {
|
|
17
|
-
// Apply primary color variants for button components
|
|
18
|
-
mat-chip-option[color='primary'] {
|
|
19
|
-
@include mat.chips-color($theme, $color-variant: primary);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Apply secondary color variants for button components
|
|
23
|
-
mat-chip-option[color='danger'] {
|
|
24
|
-
@include mat.chips-color($theme, $color-variant: error);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Apply tertiary color variants for button components
|
|
28
|
-
mat-chip-option[color='accent'] {
|
|
29
|
-
@include mat.chips-color($theme, $color-variant: tertiary);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@use '../../src/lib/components/chips/elder-chip-theme' as elder-chip;
|
|
2
|
-
@use '../../src/lib/components/data-view/table/elder-table/elder-table.component' as elder-table;
|
|
3
|
-
@use '../../src/lib/components/navigation/nav/elder-nav-theme' as elder-nav;
|
|
4
|
-
@use '../../src/lib/components/data-view/grid/elder-grid/elder-grid.component' as elder-grid;
|
|
5
|
-
@use '../../src/lib/components/card-organizer/card-stack/elder-card-stack.component' as
|
|
6
|
-
elder-card-stack;
|
|
7
|
-
@use '../../src/lib/components/select/single/elder-select/elder-select.component' as elder-select;
|
|
8
|
-
@use '../../src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component'
|
|
9
|
-
as elder-multi-select-chips;
|
|
10
|
-
@use '../../src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component'
|
|
11
|
-
as elder-multi-select-chip-options;
|
|
12
|
-
|
|
13
|
-
@mixin theme($theme) {
|
|
14
|
-
@include elder-chip.theme($theme);
|
|
15
|
-
@include elder-nav.theme($theme);
|
|
16
|
-
@include elder-select.theme($theme);
|
|
17
|
-
@include elder-multi-select-chips.theme($theme);
|
|
18
|
-
@include elder-multi-select-chip-options.theme($theme);
|
|
19
|
-
@include elder-table.theme($theme);
|
|
20
|
-
@include elder-card-stack.theme($theme);
|
|
21
|
-
@include elder-grid.theme($theme);
|
|
22
|
-
}
|
|
@@ -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,101 +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
|
-
|
|
22
|
-
// elder custom variables
|
|
23
|
-
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
24
|
-
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
25
|
-
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
26
|
-
--elder-scrollbar-width: 8px;
|
|
27
|
-
--elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
|
|
28
|
-
|
|
29
|
-
// elder pane
|
|
30
|
-
--elder-pane-padding: #{map.get(config.$sizes, sm)};
|
|
31
|
-
--elder-pane-gap: #{map.get(config.$sizes, sm)};
|
|
32
|
-
--elder-pane-border-radius: var(
|
|
33
|
-
--mdc-outlined-card-container-shape,
|
|
34
|
-
var(--mat-app-corner-medium)
|
|
35
|
-
);
|
|
36
|
-
--elder-pane-bg-color: var(--md-sys-color-surface-container-lowest);
|
|
37
|
-
|
|
38
|
-
// card header
|
|
39
|
-
--elder-card-header-padding: 15px 15px 5px 15px;
|
|
40
|
-
|
|
41
|
-
// cards white bg
|
|
42
|
-
--mdc-elevated-card-container-color: var(--md-sys-color-surface-container-lowest);
|
|
43
|
-
--mdc-outlined-card-container-color: var(--mdc-elevated-card-container-color);
|
|
44
|
-
--mat-table-background-color: var(--md-sys-color-surface-container-lowest);
|
|
45
|
-
--mat-paginator-container-background-color: var(--mat-table-background-color);
|
|
46
|
-
|
|
47
|
-
// elder toast messages
|
|
48
|
-
--elder-toast-message-color-title-default: var(--md-sys-color-inverse-on-surface);
|
|
49
|
-
--elder-toast-message-color-title-warn: var(--md-sys-color-inverse-on-surface);
|
|
50
|
-
--elder-toast-message-color-title-error: var(--md-sys-color-inverse-on-surface);
|
|
51
|
-
|
|
52
|
-
// main nav top left button color
|
|
53
|
-
--elder-toolbar-main-nav-button-color: var(--md-sys-color-on-primary);
|
|
54
|
-
--elder-toolbar-main-nav-button-container-bg-color: var(--md-sys-color-primary);
|
|
55
|
-
|
|
56
|
-
// light theme overwrites
|
|
57
|
-
&.elder-light-theme {
|
|
58
|
-
--md-sys-color-primary: rgb(11, 40, 79);
|
|
59
|
-
--md-sys-color-tertiary: rgb(182, 159, 106);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// dark theme overwrites
|
|
63
|
-
&.elder-dark-theme {
|
|
64
|
-
--md-sys-color-primary-container: #826e38; // lighten up dark mode container color
|
|
65
|
-
--md-sys-color-tertiary-container: var(--md-sys-color-primary-container);
|
|
66
|
-
--md-sys-color-surface-container-highest: #191919;
|
|
67
|
-
--md-sys-color-surface-container-lowest: #262626;
|
|
68
|
-
--md-sys-color-error: #FF999F;
|
|
69
|
-
--elder-dark-gray: var(--md-sys-color-surface-container);
|
|
70
|
-
--mat-sidenav-container-background-color: var(--md-sys-color-surface-container);
|
|
71
|
-
--mdc-chip-outline-color: rgba(255, 255, 255, 0.3);
|
|
72
|
-
|
|
73
|
-
// dark mode specific colors
|
|
74
|
-
--elder-dark-mode-color-primary: var(--md-sys-color-primary);
|
|
75
|
-
--elder-dark-mode-color-on-primary: var(--md-sys-color-on-primary);
|
|
76
|
-
--elder-dark-mode-color-surface: var(--md-sys-color-surface);
|
|
77
|
-
--elder-dark-mode-color-on-surface: var(--md-sys-color-on-surface);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@mixin elder-badge-sizing() {
|
|
82
|
-
// Use legacy MAT 2 badge sizing
|
|
83
|
-
--mat-badge-container-size: unset;
|
|
84
|
-
--mat-badge-small-size-container-size: unset;
|
|
85
|
-
--mat-badge-large-size-container-size: unset;
|
|
86
|
-
--mat-badge-legacy-container-size: 22px;
|
|
87
|
-
--mat-badge-legacy-small-size-container-size: 16px;
|
|
88
|
-
--mat-badge-legacy-large-size-container-size: 28px;
|
|
89
|
-
--mat-badge-container-offset: -11px 0;
|
|
90
|
-
--mat-badge-small-size-container-offset: -8px 0;
|
|
91
|
-
--mat-badge-large-size-container-offset: -14px 0;
|
|
92
|
-
--mat-badge-container-overlap-offset: -11px;
|
|
93
|
-
--mat-badge-small-size-container-overlap-offset: -8px;
|
|
94
|
-
--mat-badge-large-size-container-overlap-offset: -14px;
|
|
95
|
-
--mat-badge-container-padding: 0;
|
|
96
|
-
--mat-badge-small-size-container-padding: 0;
|
|
97
|
-
--mat-badge-large-size-container-padding: 0;
|
|
98
|
-
--mat-badge-line-height: var(--mat-badge-legacy-container-size);
|
|
99
|
-
--mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
|
|
100
|
-
--mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
|
|
101
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use 'elder-design-tokens' as elder-design-tokens;
|
|
4
|
-
@use './elder-starter-theme' as starter-theme;
|
|
5
|
-
@use './elder-config' as settings;
|
|
6
|
-
|
|
7
|
-
@function create-default-elder-themes() {
|
|
8
|
-
@return create-themes(settings.$palettes);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@function create-themes($palettesArg) {
|
|
12
|
-
$_palettes: $palettesArg;
|
|
13
|
-
|
|
14
|
-
$_rest: (
|
|
15
|
-
secondary: map.get($_palettes, secondary),
|
|
16
|
-
neutral: map.get($_palettes, neutral),
|
|
17
|
-
neutral-variant: map.get($_palettes, neutral-variant),
|
|
18
|
-
error: map.get($_palettes, error),
|
|
19
|
-
);
|
|
20
|
-
$_primary: map.merge(map.get($_palettes, primary), $_rest);
|
|
21
|
-
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
22
|
-
$_primary-reverse: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
23
|
-
$_tertiary-reverse: map.merge(map.get($_palettes, tertiary), $_rest);
|
|
24
|
-
|
|
25
|
-
$density: 0; // important ot start with 0, since we are (miss-)using the tighter -4 density settings only for forms later on
|
|
26
|
-
|
|
27
|
-
$light-theme: mat.define-theme(
|
|
28
|
-
(
|
|
29
|
-
color: (
|
|
30
|
-
theme-type: light,
|
|
31
|
-
primary: $_primary,
|
|
32
|
-
tertiary: $_tertiary,
|
|
33
|
-
use-system-variables: true,
|
|
34
|
-
system-variables-prefix: md-sys-color,
|
|
35
|
-
),
|
|
36
|
-
typography: (
|
|
37
|
-
use-system-variables: true,
|
|
38
|
-
system-variables-prefix: md-sys-typescale,
|
|
39
|
-
),
|
|
40
|
-
density: (
|
|
41
|
-
scale: $density,
|
|
42
|
-
),
|
|
43
|
-
)
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
$dark-theme: mat.define-theme(
|
|
47
|
-
(
|
|
48
|
-
color: (
|
|
49
|
-
theme-type: dark,
|
|
50
|
-
primary: $_primary,
|
|
51
|
-
tertiary: $_tertiary,
|
|
52
|
-
use-system-variables: true,
|
|
53
|
-
system-variables-prefix: md-sys-color,
|
|
54
|
-
),
|
|
55
|
-
typography: (
|
|
56
|
-
use-system-variables: true,
|
|
57
|
-
system-variables-prefix: md-sys-typescale,
|
|
58
|
-
),
|
|
59
|
-
density: (
|
|
60
|
-
scale: $density,
|
|
61
|
-
),
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
$light-theme-reverse: mat.define-theme(
|
|
66
|
-
(
|
|
67
|
-
color: (
|
|
68
|
-
theme-type: light,
|
|
69
|
-
primary: $_primary-reverse,
|
|
70
|
-
tertiary: $_tertiary-reverse,
|
|
71
|
-
use-system-variables: true,
|
|
72
|
-
system-variables-prefix: md-sys-color,
|
|
73
|
-
),
|
|
74
|
-
typography: (
|
|
75
|
-
use-system-variables: true,
|
|
76
|
-
system-variables-prefix: md-sys-typescale,
|
|
77
|
-
),
|
|
78
|
-
density: (
|
|
79
|
-
scale: $density,
|
|
80
|
-
),
|
|
81
|
-
)
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
$dark-theme-reverse: mat.define-theme(
|
|
85
|
-
(
|
|
86
|
-
color: (
|
|
87
|
-
theme-type: dark,
|
|
88
|
-
primary: $_primary-reverse,
|
|
89
|
-
tertiary: $_tertiary-reverse,
|
|
90
|
-
use-system-variables: true,
|
|
91
|
-
system-variables-prefix: md-sys-color,
|
|
92
|
-
),
|
|
93
|
-
typography: (
|
|
94
|
-
use-system-variables: true,
|
|
95
|
-
system-variables-prefix: md-sys-typescale,
|
|
96
|
-
),
|
|
97
|
-
density: (
|
|
98
|
-
scale: $density,
|
|
99
|
-
),
|
|
100
|
-
)
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
@return (
|
|
104
|
-
light: $light-theme,
|
|
105
|
-
dark: $dark-theme-reverse,
|
|
106
|
-
light-reverse: $light-theme-reverse,
|
|
107
|
-
dark-reverse: $dark-theme-reverse
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@mixin render-default-elder-theme($themes: 'default', $options: ()) {
|
|
112
|
-
@if $themes == 'default' {
|
|
113
|
-
$themes: create-default-elder-themes();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// map options
|
|
117
|
-
$use-typography-hierarchy: not map.has-key($options, 'no-typography-hierarchy');
|
|
118
|
-
|
|
119
|
-
// create theme
|
|
120
|
-
//$themes: create-default-elder-themes();
|
|
121
|
-
$elder-light-theme-m3: map.get($themes, light);
|
|
122
|
-
$elder-dark-theme-m3: map.get($themes, dark-reverse);
|
|
123
|
-
|
|
124
|
-
// render theme
|
|
125
|
-
@include mat.all-component-typographies();
|
|
126
|
-
@include mat.elevation-classes();
|
|
127
|
-
@include mat.app-background();
|
|
128
|
-
|
|
129
|
-
@if $use-typography-hierarchy {
|
|
130
|
-
@include mat.typography-hierarchy($elder-light-theme-m3, $back-compat: true);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.elder-light-theme,
|
|
134
|
-
.elder-dark-theme {
|
|
135
|
-
@include mat.all-component-themes($elder-light-theme-m3);
|
|
136
|
-
@include mat.system-level-colors($elder-light-theme-m3);
|
|
137
|
-
@include mat.system-level-typography($elder-light-theme-m3);
|
|
138
|
-
@include mat.color-variants-backwards-compatibility($elder-light-theme-m3);
|
|
139
|
-
@include starter-theme.starter-theme($elder-light-theme-m3);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.elder-dark-theme {
|
|
143
|
-
@include mat.all-component-colors($elder-dark-theme-m3);
|
|
144
|
-
@include mat.system-level-colors($elder-dark-theme-m3);
|
|
145
|
-
@include mat.color-variants-backwards-compatibility($elder-dark-theme-m3);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.elder-light-theme,
|
|
149
|
-
.elder-dark-theme {
|
|
150
|
-
@include elder-design-tokens.elder-design-tokens();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.elder-light-theme {
|
|
154
|
-
--md-sys-color-on-tertiary: var(--md-sys-color-on-surface);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@forward '../system/elder-defaults';
|
|
5
|
-
@use '../system/elder-defaults' as elder-defaults;
|
|
6
|
-
@use '../style-tweaks/elder-color-variants' as elder-color-variants;
|
|
7
|
-
@use '../style-tweaks/elder-style-fixes' as elder-fixes;
|
|
8
|
-
@use '../style-tweaks/elder-common' as elder-common;
|
|
9
|
-
@use '../style-tweaks/elder-form' as elder-form;
|
|
10
|
-
@use '../style-tweaks/elder-reset' as elder-reset;
|
|
11
|
-
@use '../style-tweaks/elder-component-themes' as elder-component-themes;
|
|
12
|
-
@use '../utility-classes/elder-flex-layout' as elder-flex-layout;
|
|
13
|
-
@use '../utility-classes/elder-color-helpers' as elder-color-helpers;
|
|
14
|
-
@use '../utility-classes/elder-typography-helpers' as elder-typography-helpers;
|
|
15
|
-
@use '../utility-classes/elder-common-helpers' as elder-common-helpers;
|
|
16
|
-
@use '../utility-classes/elder-layout-system' as elder-layout-system;
|
|
17
|
-
|
|
18
|
-
// Create a theme.
|
|
19
|
-
@mixin starter-theme($theme) {
|
|
20
|
-
$theme: elder-defaults.validate-and-set-defaults($theme);
|
|
21
|
-
|
|
22
|
-
// ATM we need to render this here, because first need to set defaults for form-field density
|
|
23
|
-
@include mat.form-field-density(
|
|
24
|
-
map.get($theme, elder, density, form-field)
|
|
25
|
-
); // TODO: improve density setup
|
|
26
|
-
|
|
27
|
-
// style tweaks
|
|
28
|
-
@include elder-reset.elder-reset();
|
|
29
|
-
@include elder-fixes.elder-style-fixes($theme);
|
|
30
|
-
@include elder-common.elder-common-styles($theme);
|
|
31
|
-
@include elder-form.elder-form-styles($theme);
|
|
32
|
-
@include elder-color-variants.elder-color-variants($theme);
|
|
33
|
-
|
|
34
|
-
// utility classes
|
|
35
|
-
@include elder-flex-layout.elder-flex-layout($theme);
|
|
36
|
-
@include elder-layout-system.elder-layout-system($theme);
|
|
37
|
-
@include elder-color-helpers.elder-color-helpers();
|
|
38
|
-
@include elder-typography-helpers.elder-typography-helpers();
|
|
39
|
-
@include elder-common-helpers.elder-common-helpers();
|
|
40
|
-
|
|
41
|
-
// component themes rendered in global css
|
|
42
|
-
@include elder-component-themes.theme(
|
|
43
|
-
$theme
|
|
44
|
-
); // TODO: Move component themes directly into components
|
|
45
|
-
}
|
/package/theming/{style-tweaks/_elder-style-tweak-mixins.scss → base/_elder-base-mixins.scss}
RENAMED
|
File without changes
|