@elderbyte/ngx-starter 19.1.0-beta.2 → 19.1.0-beta.20
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 +1200 -1142
- 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 +0 -72
- 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 +0 -220
- 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/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 +0 -58
- 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 +190 -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 +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/base/_elder-component-themes.scss +21 -0
- package/theming/{style-tweaks/_elder-style-fixes.scss → base/_elder-fixes-base.scss} +31 -43
- package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +7 -4
- package/theming/base/_elder-m2-legacy-base.scss +37 -0
- package/theming/components/_elder-card-stack-theme.scss +72 -0
- package/theming/components/_elder-chip-theme.scss +239 -0
- package/theming/components/_elder-filter-chip-template-theme.scss +79 -0
- package/theming/components/_elder-multi-select-chip-options-theme.scss +48 -0
- package/theming/components/_elder-multi-select-chips-theme.scss +60 -0
- package/theming/components/_elder-nav-theme.scss +24 -0
- package/theming/components/_elder-select-theme.scss +58 -0
- package/theming/components/_elder-table-theme.scss +213 -0
- package/theming/components/_legacy-elder-chip-theme.scss +119 -0
- package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss} +3 -10
- package/theming/utilities/_elder-common-utils.scss +17 -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/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
- /package/{src/lib/components/select/_elder-select-base.scss → theming/components/_elder-select-base-mixin.scss} +0 -0
|
@@ -6,11 +6,45 @@
|
|
|
6
6
|
border-radius: var(--elder-border-radius-sm);
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
transition: background-color 0.5s;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.nav-link .mat-icon {
|
|
12
|
+
height: 32px;
|
|
13
|
+
width: 32px;
|
|
14
|
+
font-size: 24px;
|
|
15
|
+
padding: 4px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nav-link.nav-link-clickable {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: var(--md-sys-color-surface-container-high);
|
|
22
|
+
color: var(--md-sys-color-on-surface);
|
|
23
|
+
.mat-icon {
|
|
24
|
+
color: var(--md-sys-color-on-surface);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nav-link.nav-link-disabled {
|
|
30
|
+
cursor: default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.nav-link:hover {
|
|
34
|
+
background-color: var(--md-sys-color-surface-container-low);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nav-link.nav-link-active {
|
|
38
|
+
background-color: var(--md-sys-color-surface-container-highest);
|
|
39
|
+
color: var(--md-sys-color-on-surface-container);
|
|
40
|
+
.mat-icon {
|
|
41
|
+
color: var(--md-sys-color-on-teriary);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
9
44
|
|
|
45
|
+
.nav-link.nav-link-inactive {
|
|
46
|
+
color: var(--md-sys-color-on-surface);
|
|
10
47
|
.mat-icon {
|
|
11
|
-
|
|
12
|
-
width: 32px;
|
|
13
|
-
font-size: 24px;
|
|
14
|
-
padding: 4px;
|
|
48
|
+
color: var(--md-sys-color-on-surface);
|
|
15
49
|
}
|
|
16
50
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.elder-dialog-panel {
|
|
2
|
-
background-color: var(--
|
|
2
|
+
background-color: var(--elder-dialog-panel-bg-color);
|
|
3
3
|
color: var(--md-sys-color-on-surface);
|
|
4
4
|
|
|
5
5
|
padding: 10px;
|
|
6
|
-
border-radius: var(--elder-border-radius
|
|
6
|
+
border-radius: var(--elder-pane-border-radius);
|
|
7
7
|
box-shadow: var(--elder-box-shadow-default);
|
|
8
8
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../elder-select-base' as elder-select-base;
|
|
4
|
-
|
|
5
|
-
@mixin typography($typography-config) {
|
|
6
|
-
$config: $typography-config; // TODO $typography-config
|
|
7
|
-
// The unit-less line-height from the font config.
|
|
8
|
-
$line-height: mat.line-height($config, body-1);
|
|
9
|
-
$font-size: mat.font-size($config, body-1);
|
|
10
|
-
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
11
|
-
|
|
12
|
-
@include elder-select-base.typography($typography-config);
|
|
13
|
-
|
|
14
|
-
.elder-multi-select {
|
|
15
|
-
font-family: mat.font-family($config);
|
|
16
|
-
|
|
17
|
-
.elder-select-input {
|
|
18
|
-
height: $line-height-em;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.elder-prefix-icon {
|
|
22
|
-
margin-left: 3px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.elder-chip-input {
|
|
26
|
-
flex: 1 0 auto;
|
|
27
|
-
padding-left: 8px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.elder-chip-input-select {
|
|
31
|
-
flex: 1 0 140px;
|
|
32
|
-
max-width: 100%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.elder-browse-icon {
|
|
36
|
-
margin-right: 4px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin theme($config-or-theme) {
|
|
42
|
-
$color: mat.get-color-config($config-or-theme);
|
|
43
|
-
|
|
44
|
-
$typography: mat.define-typography-config();
|
|
45
|
-
|
|
46
|
-
@if $color != null {
|
|
47
|
-
@include elder-select-base.color($color);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@if $typography != null {
|
|
51
|
-
@include typography($typography);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.elder-chip-text {
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
text-overflow: ellipsis;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.elder-trailing-icon {
|
|
62
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
63
|
-
opacity: 0.54;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.cdk-drag-preview {
|
|
67
|
-
// border-radius: var(--elder-border-radius-sm);
|
|
68
|
-
box-shadow: var(--elder-box-shadow-default);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.cdk-drag-placeholder {
|
|
72
|
-
opacity: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.cdk-drag-animating {
|
|
76
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
77
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../elder-select-base' as elder-select-base;
|
|
4
|
-
|
|
5
|
-
@mixin typography($typography-config) {
|
|
6
|
-
@include elder-select-base.typography($typography-config);
|
|
7
|
-
|
|
8
|
-
.elder-multi-select {
|
|
9
|
-
font-family: var(--md-sys-typescale-body-medium-font);
|
|
10
|
-
|
|
11
|
-
.elder-select-input {
|
|
12
|
-
height: var(--md-sys-typescale-body-medium-line-height);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.elder-prefix-icon {
|
|
16
|
-
margin-left: 3px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.elder-chip-input {
|
|
20
|
-
flex: 1 0 auto;
|
|
21
|
-
padding-left: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.elder-chip-input-select {
|
|
25
|
-
flex: 1 0 140px;
|
|
26
|
-
max-width: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.elder-browse-icon {
|
|
30
|
-
margin-right: 4px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin theme($config-or-theme) {
|
|
36
|
-
@include typography($config-or-theme);
|
|
37
|
-
|
|
38
|
-
.elder-chip-text {
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
text-overflow: ellipsis;
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.elder-trailing-icon {
|
|
45
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
46
|
-
opacity: 0.54;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../elder-select-base' as elder-select-base;
|
|
4
|
-
|
|
5
|
-
@mixin typography($typography-config) {
|
|
6
|
-
@include elder-select-base.typography($typography-config);
|
|
7
|
-
|
|
8
|
-
.elder-multi-select {
|
|
9
|
-
font-family: var(--md-sys-typescale-body-medium-font);
|
|
10
|
-
|
|
11
|
-
.elder-select-input {
|
|
12
|
-
height: var(--md-sys-typescale-body-medium-line-height);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.elder-prefix-icon {
|
|
16
|
-
margin-left: 3px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.elder-chip-input {
|
|
20
|
-
flex: 1 0 auto;
|
|
21
|
-
padding-left: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.elder-chip-input-select {
|
|
25
|
-
flex: 1 0 140px;
|
|
26
|
-
max-width: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.elder-browse-icon {
|
|
30
|
-
margin-right: 4px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin theme($config-or-theme) {
|
|
36
|
-
@include typography($config-or-theme);
|
|
37
|
-
|
|
38
|
-
.elder-chip-text {
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
text-overflow: ellipsis;
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.elder-trailing-icon {
|
|
45
|
-
color: var(--mdc-chip-with-trailing-icon-trailing-icon-color);
|
|
46
|
-
opacity: 0.54;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.cdk-drag-preview {
|
|
50
|
-
box-shadow: var(--elder-box-shadow-default);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.cdk-drag-placeholder {
|
|
54
|
-
opacity: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.cdk-drag-animating {
|
|
58
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../elder-select-base' as elder-select-base;
|
|
4
|
-
|
|
5
|
-
@mixin typography($config-or-theme) {
|
|
6
|
-
$line-height-em: var(--md-sys-typescale-body-medium-line-height);
|
|
7
|
-
|
|
8
|
-
@include elder-select-base.typography($config-or-theme);
|
|
9
|
-
|
|
10
|
-
.elder-select {
|
|
11
|
-
font-family: var(--md-sys-typescale-body-medium-font);
|
|
12
|
-
|
|
13
|
-
.elder-input-prefix-icon-container {
|
|
14
|
-
padding-right: 3px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.elder-select-input {
|
|
19
|
-
height: $line-height-em;
|
|
20
|
-
font: inherit;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.elder-select-arrow {
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin theme($config-or-theme) {
|
|
29
|
-
// @debug mat.get-theme-typography($config-or-theme, body-medium, line-height);
|
|
30
|
-
// @debug mat.get-theme-typography($config-or-theme, body-medium, font-family);
|
|
31
|
-
@include typography($config-or-theme);
|
|
32
|
-
|
|
33
|
-
@keyframes shrink {
|
|
34
|
-
0% {
|
|
35
|
-
transform: scale(1);
|
|
36
|
-
}
|
|
37
|
-
100% {
|
|
38
|
-
transform: scale(0.75);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.loading {
|
|
43
|
-
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
44
|
-
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.clickable-icon {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.full-width {
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.elder-select-dropdown-input {
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
&.elder-toast-type-warn {
|
|
6
6
|
--elder-toast-message-color-title: var(--elder-toast-message-color-title-warn);
|
|
7
|
-
--mdc-filled-button-container-color: var(--md-sys-color-tertiary
|
|
7
|
+
--mdc-filled-button-container-color: var(--md-sys-color-tertiary);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&.elder-toast-type-error {
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './elder-scss-variables' as config;
|
|
3
|
+
|
|
4
|
+
@mixin elder-design-tokens() {
|
|
5
|
+
@include elder-badge-sizing();
|
|
6
|
+
|
|
7
|
+
& {
|
|
8
|
+
// bg color
|
|
9
|
+
--md-sys-color-background: var(--md-sys-color-surface-container-highest);
|
|
10
|
+
--mat-app-background-color: var(--md-sys-color-background);
|
|
11
|
+
|
|
12
|
+
// mat variables
|
|
13
|
+
--mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
|
|
14
|
+
--mat-badge-small-size-text-size: 9px; // this is the mat2 setting, mat3 somehow sets this to 0, which hides the font, unclear why.
|
|
15
|
+
--mdc-dialog-container-shape: 16px; // make border-radius of dialog container smaller (default is 28px)
|
|
16
|
+
--mat-dialog-container-max-width: 80vw; // 80vw is mat 2 default, mat 3 default is very narrow: 560px;
|
|
17
|
+
--mat-toolbar-title-text-tracking: 0; // mat toolbar typography
|
|
18
|
+
--mat-toolbar-title-text-weight: 500; // mat toolbar typography
|
|
19
|
+
--mat-table-row-item-outline-color: var(--md-sys-color-outline-variant);
|
|
20
|
+
--mat-divider-color: var(--md-sys-color-outline-variant); // make divider color lighter
|
|
21
|
+
--mat-sidenav-container-elevation-shadow: var(--mat-app-elevation-shadow-level-16);
|
|
22
|
+
--mat-sidenav-container-background-color: var(--mat-app-background-color);
|
|
23
|
+
//--mdc-dialog-container-color: var(--mat-app-background-color);
|
|
24
|
+
--mdc-dialog-container-color: var(--md-sys-color-surface-container-lowest);
|
|
25
|
+
--mat-tab-header-divider-height: 0; // remove tab header divider
|
|
26
|
+
--mat-tab-header-inactive-label-text-color: var(--md-sys-color-outline); // make inactive tab text color lighter
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// import fix for overflow of mat-icons, default is 40px in m3, in m2 it was 48px
|
|
30
|
+
--mdc-icon-button-state-layer-size: 48px;
|
|
31
|
+
|
|
32
|
+
// elder custom variables
|
|
33
|
+
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
34
|
+
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
35
|
+
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
36
|
+
--elder-scrollbar-width: 8px;
|
|
37
|
+
--elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
|
|
38
|
+
|
|
39
|
+
// elder pane
|
|
40
|
+
--elder-pane-padding: #{map.get(config.$sizes, sm)};
|
|
41
|
+
--elder-pane-gap: #{map.get(config.$sizes, sm)};
|
|
42
|
+
--elder-pane-border-radius: var(
|
|
43
|
+
--mdc-outlined-card-container-shape,
|
|
44
|
+
12px
|
|
45
|
+
);
|
|
46
|
+
--elder-pane-bg-color: var(--md-sys-color-surface-container-lowest);
|
|
47
|
+
--elder-round-corner-side-padding: 10px;
|
|
48
|
+
|
|
49
|
+
// card header
|
|
50
|
+
--elder-card-header-padding: 15px 15px 5px 15px;
|
|
51
|
+
|
|
52
|
+
// cards, table etc bg
|
|
53
|
+
--mdc-elevated-card-container-color: var(--md-sys-color-surface-container-lowest);
|
|
54
|
+
--mdc-outlined-card-container-color: var(--mdc-elevated-card-container-color);
|
|
55
|
+
// --mat-table-background-color: transparent;
|
|
56
|
+
--mat-table-background-color: var(--md-sys-color-surface-container-lowest);
|
|
57
|
+
--mat-paginator-container-background-color: var(--mat-table-background-color);
|
|
58
|
+
--elder-grid-background-color: var(--mat-table-background-color);
|
|
59
|
+
//--mat-table-header-container-height: 56px; // 56px is default
|
|
60
|
+
|
|
61
|
+
// elder toast messages
|
|
62
|
+
--elder-toast-message-color-title-default: var(--md-sys-color-inverse-on-surface);
|
|
63
|
+
--elder-toast-message-color-title-warn: var(--md-sys-color-inverse-on-surface);
|
|
64
|
+
--elder-toast-message-color-title-error: var(--md-sys-color-inverse-on-surface);
|
|
65
|
+
|
|
66
|
+
// main nav top left button color
|
|
67
|
+
--elder-toolbar-main-nav-button-color: var(--md-sys-color-on-primary);
|
|
68
|
+
--elder-toolbar-main-nav-button-container-bg-color: var(--md-sys-color-primary);
|
|
69
|
+
|
|
70
|
+
// custom colors
|
|
71
|
+
--elder-blue: #{map.get(config.$custom-colors, elder-blue)};
|
|
72
|
+
--elder-gold: #{map.get(config.$custom-colors, elder-gold)};
|
|
73
|
+
--elder-gold-dark: #{map.get(config.$custom-colors, elder-gold-dark)};
|
|
74
|
+
--elder-gold-semi-dark: #{map.get(config.$custom-colors, elder-gold-semi-dark)};
|
|
75
|
+
--elder-gold-light: #{map.get(config.$custom-colors, elder-gold-light)};
|
|
76
|
+
--elder-gray-medium: #{map.get(config.$custom-colors, elder-gray-medium)};
|
|
77
|
+
|
|
78
|
+
--elder-color-highlight-strong: hsl(214, 18%, 85%);
|
|
79
|
+
--elder-color-highlight-strong: var(--elder-gold-light);
|
|
80
|
+
--elder-color-highlight-light: #EBEBEB;
|
|
81
|
+
--elder-color-highlight-variant: var(--md-sys-color-primary-container);
|
|
82
|
+
|
|
83
|
+
// chip colors
|
|
84
|
+
--elder-chip-color-state-none: #{map.get(config.$chip-colors, state-none)};
|
|
85
|
+
--elder-chip-color-state-open: #{map.get(config.$chip-colors, state-open)};
|
|
86
|
+
--elder-chip-color-state-in-progress: #{map.get(config.$chip-colors, state-in-progress)};
|
|
87
|
+
--elder-chip-color-state-completed: #{map.get(config.$chip-colors, state-completed)};
|
|
88
|
+
--elder-chip-color-state-warn: #{map.get(config.$chip-colors, state-warn)};
|
|
89
|
+
--elder-chip-color-state-error: #{map.get(config.$chip-colors, state-error)};
|
|
90
|
+
--elder-chip-color-state-other: #{map.get(config.$chip-colors, state-other)};
|
|
91
|
+
|
|
92
|
+
// chip colors dark
|
|
93
|
+
&.elder-dark-theme {
|
|
94
|
+
--elder-chip-color-state-none: #{map.get(config.$chip-colors-dark, state-none)};
|
|
95
|
+
--elder-chip-color-state-open: #{map.get(config.$chip-colors-dark, state-open)};
|
|
96
|
+
--elder-chip-color-state-in-progress: #{map.get(config.$chip-colors-dark, state-in-progress)};
|
|
97
|
+
--elder-chip-color-state-completed: #{map.get(config.$chip-colors-dark, state-completed)};
|
|
98
|
+
--elder-chip-color-state-warn: #{map.get(config.$chip-colors-dark, state-warn)};
|
|
99
|
+
--elder-chip-color-state-error: #{map.get(config.$chip-colors-dark, state-error)};
|
|
100
|
+
--elder-chip-color-state-other: #{map.get(config.$chip-colors-dark, state-other)};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// missing md3 color
|
|
104
|
+
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-surface);
|
|
105
|
+
--md-sys-color-on-tertiary-fixed-dim: var(--md-sys-color-on-primary-fixed-dim);
|
|
106
|
+
|
|
107
|
+
// dialog
|
|
108
|
+
--elder-dialog-panel-bg-color: var(--md-sys-color-surface-container-lowest);
|
|
109
|
+
|
|
110
|
+
// data footer
|
|
111
|
+
--elder-data-element-footer-height: 48px;
|
|
112
|
+
|
|
113
|
+
// xy
|
|
114
|
+
--elder-round-form-field-outline: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.elder-dark-theme {
|
|
118
|
+
--elder-dialog-panel-bg-color: var(--md-sys-color-surface-container);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// light theme overwrites
|
|
122
|
+
&.elder-light-theme {
|
|
123
|
+
--md-sys-color-primary: var(--elder-blue);
|
|
124
|
+
--md-sys-color-tertiary: var(--elder-gold);
|
|
125
|
+
--md-sys-color-tertiary-container: var(--elder-gold-light);
|
|
126
|
+
--md-sys-color-on-tertiary: var(--md-sys-color-on-surface);
|
|
127
|
+
--md-sys-color-secondary-container: #d8e3fa; // hsl(221, 77%, 91%)
|
|
128
|
+
--md-sys-color-secondary-container: hsl(214, 44%, 84%);
|
|
129
|
+
--md-sys-color-secondary-fixed: hsl(214, 44%, 89%);
|
|
130
|
+
// --md-sys-color-primary-container: hsl(214, 64%, 84%);
|
|
131
|
+
--md-sys-color-primary-container: #A6C7ED;
|
|
132
|
+
--md-sys-color-primary-fixed-dim: #95A6C7;
|
|
133
|
+
// --mdc-chip-outline-color: rgba(0, 0, 0, 0.25); // make chip outline color lighter
|
|
134
|
+
// --mdc-chip-label-text-color: rgba(0, 0, 0, 0.5); // maybe better use only on state colors
|
|
135
|
+
// --mdc-chip-with-icon-icon-color: var(--mdc-chip-label-text-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// dark theme overwrites
|
|
139
|
+
&.elder-dark-theme {
|
|
140
|
+
--elder-round-form-field-outline: solid 1px var(--md-sys-color-outline);
|
|
141
|
+
--mat-sidenav-scrim-color: rgba(255, 255, 255, 0.4);
|
|
142
|
+
--md-sys-color-primary-container: var(--elder-gold-semi-dark);
|
|
143
|
+
--md-sys-color-primary-fixed-dim: var(--elder-gold-dark);
|
|
144
|
+
--elder-color-highlight-light: var(--elder-gray-medium);
|
|
145
|
+
--elder-color-highlight-strong: var(--elder-gold-semi-dark);
|
|
146
|
+
--elder-color-highlight-variant: var(--elder-gold-dark);
|
|
147
|
+
--md-sys-color-tertiary-fixed-dim: var(--md-sys-color-primary-fixed-dim);
|
|
148
|
+
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-surface);
|
|
149
|
+
--md-sys-color-tertiary-container: var(--md-sys-color-primary-container);
|
|
150
|
+
--md-sys-color-surface-container-highest: #191919;
|
|
151
|
+
--md-sys-color-surface-container-lowest: #262626;
|
|
152
|
+
--md-sys-color-error: #ff897d;
|
|
153
|
+
--md-sys-color-inverse-primary: var(--md-sys-color-primary-container);
|
|
154
|
+
--md-sys-color-surface-tint: var(--elder-gold-dark);
|
|
155
|
+
--elder-dark-gray: var(--md-sys-color-surface-container);
|
|
156
|
+
--mdc-chip-outline-color: rgba(255, 255, 255, 0.3);
|
|
157
|
+
--elder-dark-mode-color-primary: var(--md-sys-color-primary);
|
|
158
|
+
--elder-dark-mode-color-on-primary: var(--md-sys-color-on-primary);
|
|
159
|
+
--elder-dark-mode-color-surface: var(--md-sys-color-surface);
|
|
160
|
+
--elder-dark-mode-color-on-surface: var(--md-sys-color-on-surface);
|
|
161
|
+
// --mdc-chip-outline-color: rgba(255, 255, 255, 0.2); // make chip outline color lighter
|
|
162
|
+
// --mdc-chip-with-icon-icon-color: var(--mdc-chip-outline-color);
|
|
163
|
+
// --mdc-chip-label-text-color: rgba(255, 255, 255, 0.5); // maybe better use only on state colors
|
|
164
|
+
// --mdc-chip-with-icon-icon-color: var(--mdc-chip-label-text-color);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@mixin elder-badge-sizing() {
|
|
169
|
+
& {
|
|
170
|
+
// Use legacy MAT 2 badge sizing
|
|
171
|
+
--mat-badge-container-size: unset;
|
|
172
|
+
--mat-badge-small-size-container-size: unset;
|
|
173
|
+
--mat-badge-large-size-container-size: unset;
|
|
174
|
+
--mat-badge-legacy-container-size: 22px;
|
|
175
|
+
--mat-badge-legacy-small-size-container-size: 16px;
|
|
176
|
+
--mat-badge-legacy-large-size-container-size: 28px;
|
|
177
|
+
--mat-badge-container-offset: -11px 0;
|
|
178
|
+
--mat-badge-small-size-container-offset: -8px 0;
|
|
179
|
+
--mat-badge-large-size-container-offset: -14px 0;
|
|
180
|
+
--mat-badge-container-overlap-offset: -11px;
|
|
181
|
+
--mat-badge-small-size-container-overlap-offset: -8px;
|
|
182
|
+
--mat-badge-large-size-container-overlap-offset: -14px;
|
|
183
|
+
--mat-badge-container-padding: 0;
|
|
184
|
+
--mat-badge-small-size-container-padding: 0;
|
|
185
|
+
--mat-badge-large-size-container-padding: 0;
|
|
186
|
+
--mat-badge-line-height: var(--mat-badge-legacy-container-size);
|
|
187
|
+
--mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
|
|
188
|
+
--mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
|
|
1
4
|
$sizes: (
|
|
2
5
|
xs: 4px,
|
|
3
6
|
sm: 8px,
|
|
@@ -19,6 +22,37 @@ $media: (
|
|
|
19
22
|
xl: 1280px,
|
|
20
23
|
);
|
|
21
24
|
|
|
25
|
+
$custom-colors: (
|
|
26
|
+
elder-blue: #0b284f,
|
|
27
|
+
elder-gold: #b69f6a,
|
|
28
|
+
//elder-gold-dark: #423d32,
|
|
29
|
+
elder-gold-dark: #433D33,
|
|
30
|
+
elder-gold-semi-dark: #7f7054,
|
|
31
|
+
elder-gray-medium: #373737,
|
|
32
|
+
//elder-gold-semi-dark: #7E7154,
|
|
33
|
+
elder-gold-light: #f0e9d8,
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
$chip-colors: (
|
|
37
|
+
state-none: #cecfcf,
|
|
38
|
+
state-open: #e0e1e1,
|
|
39
|
+
state-in-progress: #bdd5e7,
|
|
40
|
+
state-completed: #b1ddce,
|
|
41
|
+
state-warn: #f4dab8,
|
|
42
|
+
state-error: #e6b6b6,
|
|
43
|
+
state-other: #cdc7e5,
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
$chip-colors-dark: (
|
|
47
|
+
state-none: color.adjust(map.get($chip-colors, state-none), $lightness: -65%),
|
|
48
|
+
state-open: color.adjust(map.get($chip-colors, state-open), $lightness: -45%),
|
|
49
|
+
state-in-progress: color.adjust(map.get($chip-colors, state-in-progress), $lightness: -45%),
|
|
50
|
+
state-completed: color.adjust(map.get($chip-colors, state-completed), $lightness: -45%),
|
|
51
|
+
state-warn: color.adjust(map.get($chip-colors, state-warn), $lightness: -45%),
|
|
52
|
+
state-error: color.adjust(map.get($chip-colors, state-error), $lightness: -45%),
|
|
53
|
+
state-other: color.adjust(map.get($chip-colors, state-other), $lightness: -45%),
|
|
54
|
+
);
|
|
55
|
+
|
|
22
56
|
$palettes: (
|
|
23
57
|
primary: (
|
|
24
58
|
0: #000000,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use './elder-
|
|
3
|
+
@use './elder-scss-variables' as config;
|
|
4
4
|
|
|
5
5
|
/******************************
|
|
6
6
|
Default values
|
|
7
7
|
*******************************/
|
|
8
|
-
$commonSizesXs: map.get(
|
|
9
|
-
$commonSizesSm: map.get(
|
|
10
|
-
$commonSizesMd: map.get(
|
|
11
|
-
$commonSizesLg: map.get(
|
|
12
|
-
$commonSizesXl: map.get(
|
|
13
|
-
$commonSizesXxl: map.get(
|
|
8
|
+
$commonSizesXs: map.get(config.$sizes, xs);
|
|
9
|
+
$commonSizesSm: map.get(config.$sizes, sm);
|
|
10
|
+
$commonSizesMd: map.get(config.$sizes, md);
|
|
11
|
+
$commonSizesLg: map.get(config.$sizes, lg);
|
|
12
|
+
$commonSizesXl: map.get(config.$sizes, xl);
|
|
13
|
+
$commonSizesXxl: map.get(config.$sizes, xxl);
|
|
14
14
|
|
|
15
|
-
$densityFormField: map.get(
|
|
15
|
+
$densityFormField: map.get(config.$extra, form-field-density);
|
|
16
16
|
|
|
17
17
|
/******************************
|
|
18
18
|
Validates $theme and sets default value if null
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@forward '../abstracts/elder-set-defaults-fn';
|
|
5
|
+
@use 'elder-design-tokens' as elder-design-tokens;
|
|
6
|
+
@use '../abstracts/elder-set-defaults-fn' as elder-set-defaults-fn;
|
|
7
|
+
@use '../base/elder-m2-legacy-base' as elder-m2-legacy-base;
|
|
8
|
+
@use '../base/elder-fixes-base' as elder-fixes;
|
|
9
|
+
@use '../base/elder-common-base' as elder-common;
|
|
10
|
+
@use '../base/elder-form-base' as elder-form;
|
|
11
|
+
@use '../base/elder-component-themes' as elder-component-themes;
|
|
12
|
+
@use '../utilities/elder-flex-layout-utils' as elder-flex-layout-utils;
|
|
13
|
+
@use '../utilities/elder-color-utils' as elder-color-utils;
|
|
14
|
+
@use '../utilities/elder-typography-utils' as elder-typography-utils;
|
|
15
|
+
@use '../utilities/elder-common-utils' as elder-common-utils;
|
|
16
|
+
@use '../utilities/elder-layout-utils' as elder-layout-utils;
|
|
17
|
+
|
|
18
|
+
// Create a theme.
|
|
19
|
+
@mixin starter-theme($theme) {
|
|
20
|
+
$theme: elder-set-defaults-fn.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
|
+
// design tokens
|
|
28
|
+
@include elder-design-tokens.elder-design-tokens();
|
|
29
|
+
|
|
30
|
+
// base styles
|
|
31
|
+
@include elder-fixes.elder-fixes-base($theme);
|
|
32
|
+
@include elder-common.elder-common-base($theme);
|
|
33
|
+
@include elder-form.elder-form-base($theme);
|
|
34
|
+
@include elder-m2-legacy-base.elder-m2-legacy-base($theme);
|
|
35
|
+
|
|
36
|
+
// utilitiy styles
|
|
37
|
+
@include elder-flex-layout-utils.elder-flex-layout-utils($theme);
|
|
38
|
+
@include elder-layout-utils.elder-layout-utils($theme);
|
|
39
|
+
@include elder-color-utils.elder-color-utils();
|
|
40
|
+
@include elder-typography-utils.elder-typography-utils();
|
|
41
|
+
@include elder-common-utils.elder-common-utils();
|
|
42
|
+
|
|
43
|
+
// component themes rendered in global css
|
|
44
|
+
@include elder-component-themes.theme(
|
|
45
|
+
$theme
|
|
46
|
+
); // TODO: Move component themes directly into components
|
|
47
|
+
}
|