@elderbyte/ngx-starter 19.1.0-beta.3 → 19.1.0-beta.30
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 +1196 -1116
- 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/data-view/table/elder-table/elder-table.component.d.ts +2 -1
- 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 +20 -11
- package/src/lib/components/data-view/common/elder-data-toolbar/elder-data-toolbar.component.scss +3 -0
- 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 +3 -217
- 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/labels/labels-input/labels-input.component.scss +0 -3
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +20 -5
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +33 -6
- 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/select-chip-list/chip-list-select/elder-chip-list-select.component.scss +0 -11
- 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 +225 -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 +49 -0
- package/theming/abstracts/_elder-theme-main.scss +96 -0
- package/theming/{style-tweaks/_elder-common.scss → base/_elder-common-base.scss} +20 -45
- package/theming/base/_elder-fixes-base.scss +199 -0
- package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +18 -3
- package/theming/base/_elder-root-base.scss +40 -0
- package/theming/components/_elder-chip-theme.scss +297 -0
- package/theming/components/_elder-select-theme.scss +75 -0
- package/theming/components/_elder-table-theme.scss +209 -0
- package/theming/components/_elder-toolbar-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 +52 -0
- 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} +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/style-tweaks/_elder-style-fixes.scss +0 -381
- 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 -11
- /package/theming/{style-tweaks/_elder-style-tweak-mixins.scss → base/_elder-base-mixins.scss} +0 -0
|
@@ -2,15 +2,42 @@
|
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
padding-left: 16px;
|
|
4
4
|
padding-right: 16px;
|
|
5
|
-
min-height:
|
|
5
|
+
min-height: var(--elder-nav-item-height);
|
|
6
6
|
border-radius: var(--elder-border-radius-sm);
|
|
7
7
|
overflow: hidden;
|
|
8
|
-
transition: background-color 0.5s;
|
|
8
|
+
transition: background-color 0.5s, 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
|
+
}
|
|
21
|
+
|
|
22
|
+
.nav-link.nav-link-clickable:hover {
|
|
23
|
+
background-color: var(--elder-nav-link-hover-color) !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nav-link.nav-link-disabled {
|
|
27
|
+
cursor: default;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nav-link.nav-link-active {
|
|
31
|
+
background-color: var(--elder-nav-link-active-color);
|
|
32
|
+
color: var(--md-sys-color-primary);
|
|
33
|
+
.mat-icon {
|
|
34
|
+
color: var(--md-sys-color-on-teriary);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
9
37
|
|
|
38
|
+
.nav-link.nav-link-inactive {
|
|
39
|
+
color: var(--md-sys-color-on-surface);
|
|
10
40
|
.mat-icon {
|
|
11
|
-
|
|
12
|
-
width: 32px;
|
|
13
|
-
font-size: 24px;
|
|
14
|
-
padding: 4px;
|
|
41
|
+
color: var(--md-sys-color-on-surface);
|
|
15
42
|
}
|
|
16
43
|
}
|
|
@@ -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 +1,21 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
}
|
|
1
|
+
@keyframes shrink {
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(1);
|
|
16
4
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
height: $line-height-em;
|
|
20
|
-
font: inherit;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.elder-select-arrow {
|
|
24
|
-
cursor: pointer;
|
|
5
|
+
100% {
|
|
6
|
+
transform: scale(0.75);
|
|
25
7
|
}
|
|
26
8
|
}
|
|
27
9
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
}
|
|
10
|
+
.loading {
|
|
11
|
+
animation: shrink 0.3s ease-in-out infinite alternate;
|
|
12
|
+
-webkit-animation: shrink 0.3s ease-in-out infinite alternate;
|
|
13
|
+
}
|
|
50
14
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
15
|
+
.clickable-icon {
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
54
18
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
19
|
+
.elder-select-dropdown-input {
|
|
20
|
+
cursor: pointer;
|
|
58
21
|
}
|
package/src/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.scss
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
|
-
@mixin elder-select-list-theme($theme) {
|
|
4
|
-
.select-item-active {
|
|
5
|
-
background-color: var(--md-sys-color-primary-container);
|
|
6
|
-
border-left: 5px solid var(--md-sys-color-primary) !important;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.select-item-inactive {
|
|
11
|
-
}
|
|
12
|
-
|
|
13
3
|
.select-item {
|
|
14
4
|
padding-left: 16px;
|
|
15
5
|
padding-right: 16px;
|
|
@@ -17,7 +7,6 @@
|
|
|
17
7
|
border-radius: 0;
|
|
18
8
|
font-size: 16px;
|
|
19
9
|
font-weight: 400;
|
|
20
|
-
// border-left: 5px solid transparent;
|
|
21
10
|
}
|
|
22
11
|
|
|
23
12
|
elder-select-list-item a.select-item-inactive mat-icon {
|
|
@@ -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,225 @@
|
|
|
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
|
+
//--mat-app-background-color: hsl(255, 26%, 95%);
|
|
12
|
+
|
|
13
|
+
// mat variables
|
|
14
|
+
--mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
|
|
15
|
+
--mat-badge-small-size-text-size: 9px; // this is the mat2 setting, mat3 somehow sets this to 0, which hides the font, unclear why.
|
|
16
|
+
--mdc-dialog-container-shape: 16px; // make border-radius of dialog container smaller (default is 28px)
|
|
17
|
+
--mat-dialog-container-max-width: 80vw; // 80vw is mat 2 default, mat 3 default is very narrow: 560px;
|
|
18
|
+
--mat-toolbar-title-text-tracking: 0; // mat toolbar typography
|
|
19
|
+
--mat-toolbar-title-text-weight: 500; // mat toolbar typography
|
|
20
|
+
--mat-table-row-item-outline-color: var(--md-sys-color-outline-variant);
|
|
21
|
+
--mat-divider-color: var(--md-sys-color-outline-variant); // make divider color lighter
|
|
22
|
+
--mat-sidenav-container-elevation-shadow: var(--mat-app-elevation-shadow-level-16);
|
|
23
|
+
--mat-sidenav-container-background-color: var(--mat-app-background-color);
|
|
24
|
+
//--mdc-dialog-container-color: var(--mat-app-background-color);
|
|
25
|
+
--mdc-dialog-container-color: var(--md-sys-color-surface-container-lowest);
|
|
26
|
+
--mat-tab-header-divider-height: 0; // remove tab header divider
|
|
27
|
+
// --mat-tab-header-inactive-label-text-color: var(
|
|
28
|
+
// --md-sys-color-outline
|
|
29
|
+
// ); // make inactive tab text color lighter
|
|
30
|
+
|
|
31
|
+
// import fix for overflow of mat-icons, default is 40px in m3, in m2 it was 48px
|
|
32
|
+
--mdc-icon-button-state-layer-size: 48px;
|
|
33
|
+
|
|
34
|
+
// add shadow to dialog to improve dark mode
|
|
35
|
+
--mat-dialog-container-elevation-shadow: var(--mat-app-elevation-shadow-level-12);
|
|
36
|
+
|
|
37
|
+
// elder custom variables
|
|
38
|
+
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
39
|
+
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
40
|
+
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
41
|
+
--elder-scrollbar-width: 8px;
|
|
42
|
+
--elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
|
|
43
|
+
--elder-main-nav-bg: var(--md-sys-color-surface);
|
|
44
|
+
--elder-nav-item-height: 54px;
|
|
45
|
+
--elder-button-horizontal-padding: 19px;
|
|
46
|
+
|
|
47
|
+
// backdrop highlight color
|
|
48
|
+
--elder-backdrop-highlight-color: rgba(0, 0, 0, 0.1);
|
|
49
|
+
&.elder-dark-theme {
|
|
50
|
+
--elder-backdrop-highlight-color: rgba(255, 255, 255, 0.1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
--elder-nav-link-hover-color: var(--elder-backdrop-highlight-color);
|
|
54
|
+
--elder-nav-link-active-color: var(--elder-backdrop-highlight-color);
|
|
55
|
+
|
|
56
|
+
// elder pane
|
|
57
|
+
--elder-pane-padding: #{map.get(config.$sizes, sm)};
|
|
58
|
+
--elder-pane-gap: #{map.get(config.$sizes, sm)};
|
|
59
|
+
--elder-pane-border-radius: var(--mdc-outlined-card-container-shape, 12px);
|
|
60
|
+
--elder-pane-bg-color: var(--md-sys-color-surface-container-lowest);
|
|
61
|
+
--elder-round-corner-side-padding: 10px;
|
|
62
|
+
|
|
63
|
+
// card header
|
|
64
|
+
--elder-card-header-padding: 15px 15px 5px 15px;
|
|
65
|
+
|
|
66
|
+
// cards, table etc bg
|
|
67
|
+
--mdc-elevated-card-container-color: var(--md-sys-color-surface-container-lowest);
|
|
68
|
+
--mdc-outlined-card-container-color: var(--mdc-elevated-card-container-color);
|
|
69
|
+
// --mat-table-background-color: transparent;
|
|
70
|
+
--mat-table-background-color: var(--md-sys-color-surface-container-lowest);
|
|
71
|
+
--mat-paginator-container-background-color: var(--mat-table-background-color);
|
|
72
|
+
--elder-grid-background-color: var(--mat-table-background-color);
|
|
73
|
+
//--mat-table-header-container-height: 56px; // 56px is default
|
|
74
|
+
|
|
75
|
+
// elder toast messages
|
|
76
|
+
--elder-toast-message-color-title-default: var(--md-sys-color-inverse-on-surface);
|
|
77
|
+
--elder-toast-message-color-title-warn: var(--md-sys-color-inverse-on-surface);
|
|
78
|
+
--elder-toast-message-color-title-error: var(--md-sys-color-inverse-on-surface);
|
|
79
|
+
|
|
80
|
+
// main nav top left button color
|
|
81
|
+
--elder-toolbar-main-nav-button-color: var(--md-sys-color-on-primary);
|
|
82
|
+
--elder-toolbar-main-nav-button-container-bg-color: var(--md-sys-color-primary);
|
|
83
|
+
|
|
84
|
+
// custom colors
|
|
85
|
+
--elder-blue: #{map.get(config.$custom-colors, elder-blue)};
|
|
86
|
+
--elder-gold: #{map.get(config.$custom-colors, elder-gold)};
|
|
87
|
+
--elder-gold-dark: #{map.get(config.$custom-colors, elder-gold-dark)};
|
|
88
|
+
--elder-gold-semi-dark: #{map.get(config.$custom-colors, elder-gold-semi-dark)};
|
|
89
|
+
--elder-gold-light: #{map.get(config.$custom-colors, elder-gold-light)};
|
|
90
|
+
--elder-gray-medium: #{map.get(config.$custom-colors, elder-gray-medium)};
|
|
91
|
+
|
|
92
|
+
--elder-color-highlight-strong: hsl(214, 18%, 85%);
|
|
93
|
+
--elder-color-highlight-strong: var(--elder-gold-light);
|
|
94
|
+
--elder-color-highlight-light: #ebebeb;
|
|
95
|
+
--elder-color-highlight-variant: var(--md-sys-color-secondary-fixed);
|
|
96
|
+
|
|
97
|
+
// missing md3 color
|
|
98
|
+
--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-surface);
|
|
99
|
+
--md-sys-color-on-tertiary-fixed-dim: var(--md-sys-color-on-surface);
|
|
100
|
+
|
|
101
|
+
// dialog
|
|
102
|
+
--elder-dialog-panel-bg-color: var(--md-sys-color-surface-container-lowest);
|
|
103
|
+
|
|
104
|
+
// data footer
|
|
105
|
+
--elder-data-element-footer-height: 48px;
|
|
106
|
+
|
|
107
|
+
// xy
|
|
108
|
+
--elder-round-form-field-outline: none;
|
|
109
|
+
|
|
110
|
+
// fix button width / padding to not break existing layouts
|
|
111
|
+
--mat-protected-button-horizontal-padding: var(--elder-button-horizontal-padding);
|
|
112
|
+
--mat-outlined-button-horizontal-padding: var(--elder-button-horizontal-padding);
|
|
113
|
+
--mat-filled-button-horizontal-padding: var(--elder-button-horizontal-padding);
|
|
114
|
+
|
|
115
|
+
// mat toolbar title-text line height
|
|
116
|
+
--mat-toolbar-title-text-line-height: 36px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// chip colors light
|
|
120
|
+
&.elder-light-theme {
|
|
121
|
+
--elder-chip-color-state-none: #{map.get(config.$chip-colors, state-none)};
|
|
122
|
+
--elder-chip-color-state-open: #{map.get(config.$chip-colors, state-open)};
|
|
123
|
+
--elder-chip-color-state-in-progress: #{map.get(config.$chip-colors, state-in-progress)};
|
|
124
|
+
--elder-chip-color-state-completed: #{map.get(config.$chip-colors, state-completed)};
|
|
125
|
+
--elder-chip-color-state-warn: #{map.get(config.$chip-colors, state-warn)};
|
|
126
|
+
--elder-chip-color-state-error: #{map.get(config.$chip-colors, state-error)};
|
|
127
|
+
--elder-chip-color-state-other: #{map.get(config.$chip-colors, state-other)};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// chip colors dark
|
|
131
|
+
&.elder-dark-theme {
|
|
132
|
+
--elder-chip-color-state-none: #{map.get(config.$chip-colors-dark, state-none)};
|
|
133
|
+
--elder-chip-color-state-open: #{map.get(config.$chip-colors-dark, state-open)};
|
|
134
|
+
--elder-chip-color-state-in-progress: #{map.get(config.$chip-colors-dark, state-in-progress)};
|
|
135
|
+
--elder-chip-color-state-completed: #{map.get(config.$chip-colors-dark, state-completed)};
|
|
136
|
+
--elder-chip-color-state-warn: #{map.get(config.$chip-colors-dark, state-warn)};
|
|
137
|
+
--elder-chip-color-state-error: #{map.get(config.$chip-colors-dark, state-error)};
|
|
138
|
+
--elder-chip-color-state-other: #{map.get(config.$chip-colors-dark, state-other)};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&.elder-dark-theme {
|
|
142
|
+
--elder-dialog-panel-bg-color: var(--md-sys-color-surface-container);
|
|
143
|
+
--elder-main-nav-bg: var(--md-sys-color-surface-container-high);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.elder-dark-theme {
|
|
147
|
+
// dark theme blue
|
|
148
|
+
--md-sys-color-primary: hsl(222, 45%, 74%);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// light theme overwrites
|
|
152
|
+
&.elder-light-theme {
|
|
153
|
+
--md-sys-color-primary: var(--elder-blue);
|
|
154
|
+
--md-sys-color-tertiary: var(--elder-gold);
|
|
155
|
+
--md-sys-color-tertiary-container: var(--elder-gold-light);
|
|
156
|
+
--md-sys-color-on-tertiary: var(--md-sys-color-on-surface);
|
|
157
|
+
--md-sys-color-secondary-container: #d8e3fa; // hsl(221, 77%, 91%)
|
|
158
|
+
--md-sys-color-secondary-container: hsl(214, 44%, 84%);
|
|
159
|
+
--md-sys-color-secondary-fixed: hsl(214, 44%, 89%);
|
|
160
|
+
// --md-sys-color-primary-container: hsl(214, 64%, 84%);
|
|
161
|
+
--md-sys-color-primary-container: #a6c7ed;
|
|
162
|
+
--md-sys-color-primary-fixed-dim: #95a6c7;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// dark theme overwrites
|
|
166
|
+
&.elder-dark-theme {
|
|
167
|
+
--elder-round-form-field-outline: solid 1px var(--md-sys-color-outline);
|
|
168
|
+
--mat-sidenav-scrim-color: rgba(255, 255, 255, 0.4);
|
|
169
|
+
//--md-sys-color-primary-container: var(--elder-gold-semi-dark);
|
|
170
|
+
//--md-sys-color-primary-fixed-dim: var(--elder-gold-dark);
|
|
171
|
+
--elder-color-highlight-light: var(--elder-gray-medium);
|
|
172
|
+
--elder-color-highlight-strong: var(--elder-gold-semi-dark);
|
|
173
|
+
--elder-color-highlight-variant: var(--elder-gold-dark);
|
|
174
|
+
//--md-sys-color-tertiary-fixed-dim: var(--md-sys-color-primary-fixed-dim);
|
|
175
|
+
//--md-sys-color-on-primary-fixed-dim: var(--md-sys-color-on-surface);
|
|
176
|
+
//--md-sys-color-tertiary-container: var(--md-sys-color-primary-container);
|
|
177
|
+
--md-sys-color-tertiary-container: var(--elder-gold-semi-dark);
|
|
178
|
+
//--md-sys-color-primary-fixed-dim: var(--elder-gold-dark);
|
|
179
|
+
--md-sys-color-surface-container-highest: #191919;
|
|
180
|
+
--md-sys-color-surface-container-lowest: #232324;
|
|
181
|
+
--md-sys-color-surface-container: #1e1f20;
|
|
182
|
+
--md-sys-color-surface-container-low: #1b1c1e;
|
|
183
|
+
--md-sys-color-error: #ff897d;
|
|
184
|
+
--md-sys-color-inverse-primary: var(--md-sys-color-primary-container);
|
|
185
|
+
--md-sys-color-surface-tint: var(--elder-gold-dark);
|
|
186
|
+
--elder-dark-gray: var(--md-sys-color-surface-container);
|
|
187
|
+
--mdc-chip-outline-color: rgba(255, 255, 255, 0.3);
|
|
188
|
+
--elder-dark-mode-color-primary: var(--md-sys-color-primary);
|
|
189
|
+
--elder-dark-mode-color-on-primary: var(--md-sys-color-on-primary);
|
|
190
|
+
--elder-dark-mode-color-surface: var(--md-sys-color-surface);
|
|
191
|
+
--elder-dark-mode-color-on-surface: var(--md-sys-color-on-surface);
|
|
192
|
+
|
|
193
|
+
// missing md3 color dark fix
|
|
194
|
+
--md-sys-color-on-tertiary-fixed-dim: var(--md-sys-color-on-tertiary);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (max-width: 1024px) {
|
|
198
|
+
// enter mobile toolbar height sooner
|
|
199
|
+
--mat-toolbar-standard-height: var(--mat-toolbar-mobile-height);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@mixin elder-badge-sizing() {
|
|
204
|
+
& {
|
|
205
|
+
// Use legacy MAT 2 badge sizing
|
|
206
|
+
--mat-badge-container-size: unset;
|
|
207
|
+
--mat-badge-small-size-container-size: unset;
|
|
208
|
+
--mat-badge-large-size-container-size: unset;
|
|
209
|
+
--mat-badge-legacy-container-size: 22px;
|
|
210
|
+
--mat-badge-legacy-small-size-container-size: 16px;
|
|
211
|
+
--mat-badge-legacy-large-size-container-size: 28px;
|
|
212
|
+
--mat-badge-container-offset: -11px 0;
|
|
213
|
+
--mat-badge-small-size-container-offset: -8px 0;
|
|
214
|
+
--mat-badge-large-size-container-offset: -14px 0;
|
|
215
|
+
--mat-badge-container-overlap-offset: -11px;
|
|
216
|
+
--mat-badge-small-size-container-overlap-offset: -8px;
|
|
217
|
+
--mat-badge-large-size-container-overlap-offset: -14px;
|
|
218
|
+
--mat-badge-container-padding: 0;
|
|
219
|
+
--mat-badge-small-size-container-padding: 0;
|
|
220
|
+
--mat-badge-large-size-container-padding: 0;
|
|
221
|
+
--mat-badge-line-height: var(--mat-badge-legacy-container-size);
|
|
222
|
+
--mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
|
|
223
|
+
--mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -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: #e1e1e1,
|
|
38
|
+
state-open: #bedbe4,
|
|
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: -45%),
|
|
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
|