@elderbyte/ngx-starter 18.13.0-beta.1 → 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 +2 -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/public_api.mjs +1 -2
- 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 +53 -62
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/public_api.d.ts +0 -1
- package/package.json +1 -1
- package/src/lib/components/badge/elder-badge/elder-badge.component.scss +1 -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 +2 -2
- 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 +0 -1
- 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 +3 -3
- 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 +83 -4
- package/theming/_elder-scrollbar-theme.scss +1 -1
- package/theming/_elder-style-fixes.scss +214 -21
- package/theming/_mixins.scss +0 -1
- package/esm2022/lib/components/loader-background/loader-background.component.mjs +0 -11
- package/lib/components/loader-background/loader-background.component.d.ts +0 -5
- package/src/lib/components/loader-background/loader-background.component.scss +0 -60
|
@@ -40,4 +40,3 @@ export * from './auditing/elder-audit.module';
|
|
|
40
40
|
export * from './tabs/elder-tab.module';
|
|
41
41
|
export * from './badge/elder-badge.module';
|
|
42
42
|
export * from './page/public_api';
|
|
43
|
-
export { LoaderBackgroundComponent } from './loader-background/loader-background.component';
|
package/package.json
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
position: absolute !important;
|
|
3
3
|
width: unset !important;
|
|
4
4
|
max-width: unset !important;
|
|
5
|
-
box-sizing: border-box;
|
|
6
5
|
--mdc-chip-container-shape-radius: 10px;
|
|
7
6
|
|
|
8
7
|
&.mat-mdc-standard-chip {
|
|
9
8
|
// height: 26px; // var(--mdc-chip-container-height); TODO token for badge height?
|
|
10
|
-
|
|
9
|
+
height: auto; // TODO token for badge height?
|
|
11
10
|
.mdc-evolution-chip__text-label {
|
|
12
11
|
font-size: var(--mat-badge-text-size, 12px);
|
|
13
12
|
font-weight: var(--mat-badge-text-weight, 600);
|
package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.elder-button-group {
|
|
5
5
|
button {
|
|
6
6
|
padding: 0 8px 0 8px;
|
|
7
|
-
border:
|
|
7
|
+
border: var(--elder-border-light);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
button:not(:first-child):not(:last-child) {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
button:first-child:not(:last-child) {
|
|
16
|
-
border-radius:
|
|
16
|
+
border-radius: var(--elder-border-radius-sm) 0 0 var(--elder-border-radius-sm);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
button:last-child:not(:first-child) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
button:last-child:first-child {
|
|
25
|
-
border-radius:
|
|
25
|
+
border-radius: var(--elder-border-radius-sm);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin theme($theme) {
|
|
4
4
|
.card-stack {
|
|
5
|
-
background-color: var(--md-sys-color-surface-container);
|
|
6
|
-
border-radius:
|
|
7
|
-
border:
|
|
5
|
+
//background-color: var(--md-sys-color-surface-container);
|
|
6
|
+
border-radius: var(--elder-border-radius-sm);
|
|
7
|
+
border: var(--elder-border-light);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.card-list.cdk-drop-list-dragging {
|
|
11
|
-
border: 2px dashed var(--md-sys-color-
|
|
11
|
+
border: 2px dashed var(--md-sys-color-outline-variant);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.card {
|
|
29
|
+
border-radius: var(--elder-border-radius-sm);
|
|
30
|
+
box-shadow: var(--mat-app-elevation-shadow-level-1);
|
|
29
31
|
cursor: move;
|
|
32
|
+
overflow: hidden;
|
|
30
33
|
}
|
|
31
34
|
.card.cdk-drag-disabled.clickable {
|
|
32
35
|
cursor: pointer;
|
|
@@ -44,20 +47,7 @@
|
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
.rotate {
|
|
47
|
-
|
|
48
|
-
-webkit-transform: rotate(-90deg);
|
|
49
|
-
|
|
50
|
-
/* Firefox */
|
|
51
|
-
-moz-transform: rotate(-90deg);
|
|
52
|
-
|
|
53
|
-
/* IE */
|
|
54
|
-
-ms-transform: rotate(-90deg);
|
|
55
|
-
|
|
56
|
-
/* Opera */
|
|
57
|
-
-o-transform: rotate(-90deg);
|
|
58
|
-
|
|
59
|
-
/* Internet Explorer */
|
|
60
|
-
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
|
|
50
|
+
transform: rotate(-90deg);
|
|
61
51
|
}
|
|
62
52
|
|
|
63
53
|
.scrollable {
|
|
@@ -66,13 +56,7 @@
|
|
|
66
56
|
}
|
|
67
57
|
|
|
68
58
|
.noselect {
|
|
69
|
-
-
|
|
70
|
-
-webkit-user-select: none; /* Safari */
|
|
71
|
-
-khtml-user-select: none; /* Konqueror HTML */
|
|
72
|
-
-moz-user-select: none; /* Firefox */
|
|
73
|
-
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
74
|
-
user-select: none; /* Non-prefixed version, currently
|
|
75
|
-
supported by Chrome and Opera */
|
|
59
|
+
user-select: none;
|
|
76
60
|
}
|
|
77
61
|
|
|
78
62
|
.cdk-drag-placeholder {
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin theme($theme) {
|
|
4
|
-
.elder-card-title {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
// .elder-card-title {
|
|
5
|
+
// color: var(--md-sys-color-tertiary);
|
|
6
|
+
// font-weight: 500 !important;
|
|
7
|
+
// }
|
|
8
8
|
|
|
9
|
-
.elder-card-subtitle {
|
|
10
|
-
|
|
11
|
-
}
|
|
9
|
+
// .elder-card-subtitle {
|
|
10
|
+
// color: var(--md-sys-color-primary);
|
|
11
|
+
// }
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.elder-card-host {
|
|
15
15
|
/* Automatically adds flex */
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
box-sizing: border-box;
|
|
19
18
|
|
|
20
19
|
/* Fix for vertical scroll */
|
|
21
20
|
min-width: 0;
|
|
@@ -34,9 +34,9 @@ $level-critical: rgb(255, 0, 0);
|
|
|
34
34
|
|
|
35
35
|
&.color-accent {
|
|
36
36
|
@include _theme_color_chip(
|
|
37
|
-
var(--md-sys-color-
|
|
38
|
-
var(--md-sys-color-
|
|
39
|
-
var(--md-sys-color-on-
|
|
37
|
+
var(--md-sys-color-secondary-container),
|
|
38
|
+
var(--md-sys-color-secondary),
|
|
39
|
+
var(--md-sys-color-on-secondary)
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -4,7 +4,7 @@ $elder-tile-padding: 8px;
|
|
|
4
4
|
|
|
5
5
|
@mixin theme($theme) {
|
|
6
6
|
.elder-grid-container {
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: var(--elder-border-radius-sm);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
mat-card:has(> .elder-grid-container) {
|
|
@@ -12,7 +12,7 @@ $elder-tile-padding: 8px;
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.elder-grid-flat {
|
|
15
|
-
border:
|
|
15
|
+
border: var(--elder-border-light);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.elder-grid-toolbar {
|
|
@@ -54,7 +54,7 @@ $elder-tile-padding: 8px;
|
|
|
54
54
|
|
|
55
55
|
.elder-grid-tile:active {
|
|
56
56
|
z-index: 100;
|
|
57
|
-
box-shadow: var(--
|
|
57
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.elder-grid-tile-check {
|
|
@@ -111,9 +111,6 @@ $elder-tile-padding: 8px;
|
|
|
111
111
|
top: 0;
|
|
112
112
|
right: 0;
|
|
113
113
|
bottom: 0;
|
|
114
|
-
-webkit-transition:
|
|
115
|
-
background-color 0.1s ease-in,
|
|
116
|
-
opacity 0.1s ease-in;
|
|
117
114
|
transition:
|
|
118
115
|
background-color 0.1s ease-in,
|
|
119
116
|
opacity 0.1s ease-in;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.elder-mat-table-flat {
|
|
36
|
-
border:
|
|
36
|
+
border: var(--elder-border-light);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.elder-table {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.elder-mat-table-container {
|
|
144
|
-
border-radius:
|
|
144
|
+
border-radius: var(--elder-border-radius-sm);
|
|
145
145
|
overflow: hidden;
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
white-space: pre;
|
|
11
11
|
overflow-wrap: normal;
|
|
12
12
|
overflow-x: scroll;
|
|
13
|
-
background-color: var(--md-sys-color-
|
|
14
|
-
color: var(--md-sys-color-on-
|
|
13
|
+
background-color: var(--md-sys-color-inverse-surface);
|
|
14
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
&:hover {
|
|
36
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
|
+
}
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -42,14 +46,14 @@
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
.nav-link:hover {
|
|
45
|
-
background-color: var(--md-sys-color-
|
|
49
|
+
background-color: var(--md-sys-color-surface-container-low);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
.nav-link.nav-link-active {
|
|
49
|
-
background-color: var(--md-sys-color-
|
|
50
|
-
color: var(--md-sys-color-on-
|
|
53
|
+
background-color: var(--md-sys-color-surface-container-highest);
|
|
54
|
+
color: var(--md-sys-color-on-surface-container);
|
|
51
55
|
.mat-icon {
|
|
52
|
-
color: var(--md-sys-color-
|
|
56
|
+
color: var(--md-sys-color-on-teriary);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
padding-left: 16px;
|
|
6
6
|
padding-right: 16px;
|
|
7
7
|
min-height: 48px;
|
|
8
|
-
border-radius:
|
|
8
|
+
border-radius: var(--elder-border-radius-sm);
|
|
9
9
|
overflow: hidden;
|
|
10
|
-
transition: background 0.5s;
|
|
10
|
+
transition: background-color 0.5s;
|
|
11
11
|
|
|
12
12
|
.mat-icon {
|
|
13
|
-
height:
|
|
14
|
-
width:
|
|
13
|
+
height: 32px;
|
|
14
|
+
width: 32px;
|
|
15
15
|
font-size: 24px;
|
|
16
16
|
padding: 4px;
|
|
17
17
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
@mixin theme($theme) {
|
|
4
4
|
.elder-dialog-panel {
|
|
5
5
|
// Use CSS variables for Material 3
|
|
6
|
-
background-color: var(--md-sys-color-surface);
|
|
6
|
+
background-color: var(--md-sys-color-surface-container-lowest);
|
|
7
7
|
color: var(--md-sys-color-on-surface);
|
|
8
8
|
|
|
9
9
|
padding: 10px;
|
|
10
|
-
border-radius:
|
|
11
|
-
box-shadow: var(--
|
|
10
|
+
border-radius: var(--elder-border-radius-sm);
|
|
11
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
|
-
@mixin _elder-panel-color($palette, $theme) {
|
|
4
|
-
@if (mat.get-theme-version($theme) == 1) {
|
|
5
|
-
background: var(--md-sys-color-primary-container);
|
|
6
|
-
color: var(--md-sys-color-on-primary-container);
|
|
7
|
-
} @else {
|
|
8
|
-
$background: mat.m2-get-color-from-palette($palette, app-bar);
|
|
9
|
-
$foreground: mat.m2-get-color-from-palette($palette, text);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
3
|
@mixin _elder-panel-form-field-overrides {
|
|
14
|
-
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
15
4
|
.mat-form-field-underline,
|
|
16
5
|
.mat-form-field-ripple,
|
|
17
6
|
.mat-focused .mat-form-field-ripple {
|
|
@@ -32,32 +21,16 @@
|
|
|
32
21
|
}
|
|
33
22
|
|
|
34
23
|
@mixin theme($theme) {
|
|
35
|
-
$primary: map-get($theme, primary);
|
|
36
|
-
$accent: map-get($theme, accent);
|
|
37
|
-
$warn: map-get($theme, warn);
|
|
38
|
-
$background: map-get($theme, background);
|
|
39
|
-
$foreground: map-get($theme, foreground);
|
|
40
|
-
|
|
41
24
|
.mat-panel {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} @else {
|
|
46
|
-
background: mat.m2-get-color-from-palette($background, app-bar);
|
|
47
|
-
color: mat.m2-get-color-from-palette($foreground, text);
|
|
48
|
-
}
|
|
49
|
-
transition: background 0.5s;
|
|
50
|
-
|
|
51
|
-
&.mat-primary {
|
|
52
|
-
@include _elder-panel-color($primary, $theme);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&.mat-accent {
|
|
56
|
-
@include _elder-panel-color($accent, $theme);
|
|
57
|
-
}
|
|
25
|
+
background: var(--md-sys-color-primary-container);
|
|
26
|
+
color: var(--md-sys-color-on-primary-container);
|
|
27
|
+
transition: background-color 0.5s;
|
|
58
28
|
|
|
29
|
+
&.mat-primary,
|
|
30
|
+
&.mat-accent,
|
|
59
31
|
&.mat-warn {
|
|
60
|
-
|
|
32
|
+
background: var(--md-sys-color-primary);
|
|
33
|
+
color: var(--md-sys-color-on-primary);
|
|
61
34
|
}
|
|
62
35
|
|
|
63
36
|
@include _elder-panel-form-field-overrides;
|
|
@@ -73,13 +46,7 @@
|
|
|
73
46
|
.mat-panel h4,
|
|
74
47
|
.mat-panel h5,
|
|
75
48
|
.mat-panel h6 {
|
|
76
|
-
|
|
77
|
-
// margin: 0;
|
|
78
|
-
|
|
79
|
-
// Set typography styles for different heading levels
|
|
80
|
-
font-family: var(--mdc-typography-font-family); // Use the MDC font family variable
|
|
81
|
-
|
|
82
|
-
//@include mat.typography($config, headline-2); // try, debug disabled
|
|
49
|
+
font-family: var(--mdc-typography-font-family);
|
|
83
50
|
margin: 0;
|
|
84
51
|
}
|
|
85
52
|
}
|
|
@@ -78,9 +78,8 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.cdk-drag-preview {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
box-shadow: var(--mat-app-elevation-shadow-level-8);
|
|
81
|
+
// border-radius: var(--elder-border-radius-sm);
|
|
82
|
+
box-shadow: var(--elder-box-shadow-default);
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
.cdk-drag-placeholder {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
.toast-title,
|
|
9
9
|
.mat-icon {
|
|
10
|
-
color: var(--md-sys-color-primary-
|
|
10
|
+
color: var(--md-sys-color-primary-container);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&.elder-toast-type-warn {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
.toast-title,
|
|
18
18
|
.mat-icon {
|
|
19
|
-
color: var(--md-sys-color-tertiary-
|
|
19
|
+
color: var(--md-sys-color-tertiary-container);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
.toast-title,
|
|
28
28
|
.mat-icon {
|
|
29
|
-
color: var(--md-sys-color-error);
|
|
29
|
+
color: var(--md-sys-color-error-container);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -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
|
+
}
|