@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.
Files changed (64) hide show
  1. package/_index.scss +1 -1
  2. package/fesm2022/elderbyte-ngx-starter.mjs +1196 -1116
  3. package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
  4. package/lib/common/utils/public_api.d.ts +1 -0
  5. package/lib/components/data-view/base/elder-data-view-base.d.ts +14 -0
  6. package/lib/components/data-view/table/elder-table/elder-table.component.d.ts +2 -1
  7. package/lib/components/layout/pane/header/pane-actions.component.d.ts +5 -0
  8. package/lib/components/layout/pane/header/pane-header.component.d.ts +7 -0
  9. package/lib/components/layout/pane/header/pane-title.component.d.ts +5 -0
  10. package/lib/components/layout/pane/pane-content.component.d.ts +5 -0
  11. package/lib/components/layout/pane/pane.component.d.ts +1 -1
  12. package/lib/components/layout/public_api.d.ts +4 -0
  13. package/lib/components/select/single/elder-select/elder-select.component.d.ts +1 -1
  14. package/package.json +1 -1
  15. package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +7 -11
  16. package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +20 -11
  17. package/src/lib/components/data-view/common/elder-data-toolbar/elder-data-toolbar.component.scss +3 -0
  18. package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +70 -82
  19. package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +3 -217
  20. package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +4 -4
  21. package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +1 -0
  22. package/src/lib/components/labels/labels-input/labels-input.component.scss +0 -3
  23. package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +20 -5
  24. package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +33 -6
  25. package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +2 -2
  26. package/src/lib/components/panels/toggle-panel/elder-toggle-panel.component.scss +3 -0
  27. package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +0 -77
  28. package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +0 -48
  29. package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +0 -60
  30. package/src/lib/components/select/single/elder-select/elder-select.component.scss +14 -51
  31. package/src/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.scss +0 -11
  32. package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +1 -1
  33. package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +1 -1
  34. package/theming/abstracts/_elder-design-tokens.scss +225 -0
  35. package/theming/{system/_elder-config.scss → abstracts/_elder-scss-variables.scss} +34 -0
  36. package/theming/{system/_elder-defaults.scss → abstracts/_elder-set-defaults-fn.scss} +8 -8
  37. package/theming/abstracts/_elder-starter-theme.scss +49 -0
  38. package/theming/abstracts/_elder-theme-main.scss +96 -0
  39. package/theming/{style-tweaks/_elder-common.scss → base/_elder-common-base.scss} +20 -45
  40. package/theming/base/_elder-fixes-base.scss +199 -0
  41. package/theming/{style-tweaks/_elder-form.scss → base/_elder-form-base.scss} +18 -3
  42. package/theming/base/_elder-root-base.scss +40 -0
  43. package/theming/components/_elder-chip-theme.scss +297 -0
  44. package/theming/components/_elder-select-theme.scss +75 -0
  45. package/theming/components/_elder-table-theme.scss +209 -0
  46. package/theming/components/_elder-toolbar-theme.scss +75 -0
  47. package/theming/{utility-classes/_elder-color-helpers.scss → utilities/_elder-color-utils.scss} +7 -14
  48. package/theming/utilities/_elder-common-utils.scss +52 -0
  49. package/theming/{utility-classes/_elder-flex-layout.scss → utilities/_elder-flex-layout-utils.scss} +2 -2
  50. package/theming/{utility-classes/_elder-layout-system.scss → utilities/_elder-layout-utils.scss} +226 -201
  51. package/theming/{utility-classes/_elder-typography-helpers.scss → utilities/_elder-typography-utils.scss} +1 -1
  52. package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +0 -5
  53. package/src/lib/components/chips/_elder-chip-theme.scss +0 -129
  54. package/src/lib/components/navigation/nav/_elder-nav-theme.scss +0 -66
  55. package/src/lib/components/select/_elder-select-base.scss +0 -28
  56. package/theming/style-tweaks/_elder-color-variants.scss +0 -31
  57. package/theming/style-tweaks/_elder-component-themes.scss +0 -22
  58. package/theming/style-tweaks/_elder-reset.scss +0 -13
  59. package/theming/style-tweaks/_elder-style-fixes.scss +0 -381
  60. package/theming/system/_elder-design-tokens.scss +0 -101
  61. package/theming/system/_elder-m3-theme.scss +0 -156
  62. package/theming/system/_elder-starter-theme.scss +0 -45
  63. package/theming/utility-classes/_elder-common-helpers.scss +0 -11
  64. /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,381 +0,0 @@
1
- @use '@angular/material' as mat;
2
- @use './elder-style-tweak-mixins' as mixins;
3
- @use 'sass:map';
4
-
5
- @mixin elder-style-fixes($theme) {
6
- @include _ng-style-fixes;
7
- @include _mat-style-fixes($theme);
8
- @include _mat3-fixes($theme);
9
-
10
- // elder custom icons fill color
11
- .mat-icon.svg-icon-inherit-color svg * {
12
- fill: currentColor !important;
13
- }
14
- }
15
-
16
- @mixin _ng-style-fixes {
17
- // Trick to ensure flex functionality within router-outlet
18
- router-outlet.router-flex + * {
19
- display: flex;
20
- flex: 1 1 auto;
21
- flex-direction: column;
22
- height: 100%; // Required for Safari
23
- width: 100%;
24
- min-height: 0; // Fixes scrolling vert
25
- min-width: 0; // Fixes scrolling horz
26
- }
27
- }
28
-
29
- @mixin _mat-style-fixes($theme) {
30
- // Globally disable automatic scrolling of Material Drawer Container
31
- .mat-drawer-inner-container {
32
- overflow: hidden !important;
33
- }
34
-
35
- // Globally disable automatic scrolling of Material Drawer Content
36
- .mat-drawer-content {
37
- overflow: hidden !important;
38
- }
39
-
40
- /******************************
41
- Material tab fix
42
- *******************************/
43
-
44
- .mat-mdc-tab-body-wrapper {
45
- flex: 1 1 100% !important;
46
- height: 100% !important;
47
- }
48
-
49
- .mat-mdc-tab-body {
50
- display: flex !important;
51
- flex-direction: column;
52
- }
53
-
54
- /******************************
55
- Material Chip fix
56
- *******************************/
57
-
58
- .mat-mdc-chip {
59
- // Fixes default avatar on attribute usage (<mat-chip-avatar> vs matChipAvatar) which is broken in Angular Material 15.0.0
60
- mat-chip-avatar {
61
- .mat-icon {
62
- width: 18px;
63
- height: 18px;
64
- line-height: 18px;
65
- font-size: 18px;
66
- }
67
-
68
- img {
69
- width: 18px;
70
- height: 18px;
71
- overflow: hidden;
72
- border-radius: 9px;
73
- }
74
- }
75
- }
76
-
77
- /******************************
78
- Material Badge Index
79
- *******************************/
80
-
81
- .mat-badge-content {
82
- z-index: 1;
83
- }
84
-
85
- /******************************
86
- Material chip make regular chips clickable when applying this class
87
- *******************************/
88
-
89
- .clickable-chip {
90
- .mat-mdc-chip-action {
91
- cursor: pointer;
92
- }
93
- }
94
-
95
- /******************************
96
- Styling toast messages
97
- *******************************/
98
- .elder-primary-text {
99
- color: var(--md-sys-color-primary);
100
- }
101
-
102
- .elder-accent-text {
103
- color: var(--md-sys-color-tertiary);
104
- }
105
-
106
- .elder-warn-text {
107
- color: var(--md-sys-color-error);
108
- }
109
- }
110
-
111
- @mixin _mat3-fixes($theme) {
112
- // remove weird box shadow of card in overlay (Problem: Cards shouldn't be in overlay)
113
- .mat-mdc-dialog-container .mat-mdc-card {
114
- box-shadow: none;
115
- }
116
- // fix elder badge borders
117
- elder-badge {
118
- .mat-mdc-standard-chip .mat-mdc-chip-action::before {
119
- border: none;
120
- }
121
- }
122
-
123
- .mat-app-background {
124
- display: block;
125
- }
126
-
127
- .mat-mdc-tab-group {
128
- background-color: var(--md-sys-color-surface-container);
129
- }
130
-
131
- .legacy-layout-card {
132
- background-color: var(--mdc-elevated-card-container-color);
133
- border-radius: var(--elder-border-radius-sm);
134
- box-shadow: var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1));
135
- overflow: hidden; // this might cause issues, but is probably correct..
136
- }
137
-
138
- .elder-card-title {
139
- padding-bottom: 0 !important;
140
- margin-bottom: 6px !important;
141
- }
142
-
143
- // remove extra background from drawer
144
- .mat-drawer-container {
145
- background-color: transparent !important;
146
- }
147
-
148
- // app header bg color
149
- &.elder-light-theme,
150
- &.elder-dark-theme {
151
- .mat-toolbar {
152
- &.mat-primary {
153
- --mat-toolbar-container-text-color: var(--md-sys-color-on-primary);
154
- --mat-toolbar-container-background-color: var(--md-sys-color-primary);
155
- .mat-mdc-icon-button {
156
- color: var(--md-sys-color-on-primary);
157
- }
158
- }
159
- &.mat-accent {
160
- --mat-toolbar-container-text-color: var(--md-sys-color-on-tertiary);
161
- --mat-toolbar-container-background-color: var(--md-sys-color-tertiary);
162
- .mat-mdc-icon-button {
163
- color: var(--md-sys-color-on-tertiary);
164
- }
165
- }
166
- }
167
-
168
- .mat-toolbar.elder-toolbar-main-nav-button-container {
169
- &.mat-primary,
170
- &.mat-accent {
171
- background-color: var(--elder-toolbar-main-nav-button-container-bg-color);
172
-
173
- .mat-mdc-icon-button {
174
- color: var(--elder-toolbar-main-nav-button-color);
175
- }
176
- }
177
- }
178
- }
179
-
180
- &.elder-dark-theme {
181
- .mat-toolbar.mat-primary,
182
- .mat-toolbar.mat-accent {
183
- background-color: var(--elder-dark-gray) !important;
184
- * {
185
- color: var(--md-sys-color-on-surface) !important;
186
- }
187
- .elder-toolbar-main-nav-button .mat-icon {
188
- color: var(--md-sys-color-primary) !important;
189
- }
190
- }
191
-
192
- elder-app-header .elder-panel {
193
- color: var(--md-sys-color-on-surface) !important;
194
- }
195
- }
196
-
197
- /**************************************************************************
198
- * Start cloudfiles import 1
199
- *************************************************************************/
200
-
201
- .mat-mdc-tab-group {
202
- background-color: transparent !important;
203
- }
204
-
205
- elder-data-toolbar {
206
- display: block;
207
- }
208
-
209
- /**************************************************************************
210
- * End cloudfiles import 1
211
- *************************************************************************/
212
-
213
- // Button colors
214
- .mat-accent.mat-mdc-button-base {
215
- --md-sys-color-tertiary: var(--md-sys-color-secondary);
216
- --md-sys-color-on-tertiary: var(--md-sys-color-on-secondary);
217
- --md-sys-color-tertiary-container: var(--md-sys-color-secondary-container);
218
- --md-sys-color-on-tertiary-container: var(--md-sys-color-on-secondary-container);
219
- }
220
-
221
- // slide toggle colors
222
- .mat-accent.mat-mdc-slide-toggle {
223
- --md-sys-color-tertiary: var(--md-sys-color-secondary);
224
- --md-sys-color-on-tertiary: var(--md-sys-color-on-secondary);
225
- --md-sys-color-tertiary-container: var(--md-sys-color-secondary-container);
226
- --md-sys-color-on-tertiary-container: var(--md-sys-color-on-secondary-container);
227
- }
228
-
229
- // badge positioning
230
- .mat-badge-above .mat-badge-content {
231
- bottom: 82%;
232
- }
233
-
234
- // bring back the badge warn color that was removed in m3
235
- .mat-badge-warn {
236
- --mat-badge-background-color: var(--md-sys-color-error);
237
- }
238
-
239
- & {
240
- // fix button paddings to keep spacing
241
- --elder-button-horizontal-padding: 19px;
242
- --mat-protected-button-horizontal-padding: var(--elder-button-horizontal-padding);
243
- --mat-outlined-button-horizontal-padding: var(--elder-button-horizontal-padding);
244
- --mat-filled-button-horizontal-padding: var(--elder-button-horizontal-padding);
245
-
246
- // mat toolbar title-text line height
247
- --mat-toolbar-title-text-line-height: 36px;
248
- }
249
-
250
- // Sekundärfarbe anstatt Tertiärfarbe, da es wenig Sinn macht, auf dieses Element viel Aufmerksamkeit zu lenken
251
- .elder-light-theme,
252
- .elder-dark-theme {
253
- &.mat-accent.mat-icon {
254
- --mat-icon-color: var(--md-sys-color-secondary);
255
- }
256
- }
257
-
258
- .elder-pane-grid {
259
- display: flex;
260
- flex-flow: row nowrap;
261
- justify-content: space-around;
262
- padding: var(--elder-pane-padding);
263
- gap: var(--elder-pane-gap);
264
- height: 100%;
265
- align-items: stretch;
266
- }
267
-
268
- .elder-pane {
269
- border-radius: var(--elder-pane-border-radius, var(--mat-app-corner-medium));
270
- overflow: hidden;
271
- background-color: var(--elder-pane-bg-color);
272
- }
273
-
274
- // scrollbar styling
275
- ::-webkit-scrollbar {
276
- width: var(--elder-scrollbar-width);
277
- }
278
-
279
- ::-webkit-scrollbar-thumb {
280
- background: var(--md-sys-color-outline-variant);
281
- border-radius: 5px;
282
- }
283
-
284
- ::-webkit-scrollbar-thumb:hover {
285
- background: var(--md-sys-color-outline);
286
- }
287
-
288
- // fix
289
- .elder-pane .legacy-layout-card {
290
- border-radius: 0 !important;
291
- }
292
-
293
- .mat-mdc-card,
294
- .mat-mdc-card-outlined {
295
- // set normal mat-cards back to m2 border-radius
296
- border-radius: var(--elder-border-radius-sm);
297
- }
298
-
299
- // round input fields
300
- &.deactivated {
301
- elder-search-box .elder-search-box-field,
302
- .mat-toolbar .mat-mdc-form-field {
303
- background-color: var(--md-sys-color-surface-container-low);
304
- border-radius: 24px !important;
305
-
306
- // remove border from notch piece on input fields
307
- .mat-mdc-notch-piece {
308
- border-width: 0 !important;
309
- }
310
- }
311
- }
312
-
313
- .mat-toolbar .mat-mdc-form-field {
314
- background-color: var(--elder-lightened-transparent-bg);
315
- &,
316
- *,
317
- .mat-icon {
318
- color: var(--md-sys-color-inverse-on-surface);
319
- --mdc-outlined-text-field-input-text-color: var(--md-sys-color-inverse-on-surface) !important;
320
- --mdc-outlined-text-field-caret-color: var(--md-sys-color-inverse-on-surface) !important;
321
- }
322
- // * {
323
- // color: var(--md-sys-color-inverse-on-surface);
324
- // border-color: var(--md-sys-color-inverse-on-surface);
325
- // }
326
- }
327
-
328
- .elder-pane {
329
- background-color: var(--md-sys-color-surface-container-lowest);
330
- }
331
-
332
- &.elder-dark-theme {
333
- // brighter dark mode nav
334
- .elder-nav-list-full {
335
- background-color: var(--md-sys-color-surface-container-lowest) !important;
336
- }
337
- .nav-link-active {
338
- color: var(--md-sys-color-primary) !important;
339
- }
340
- }
341
-
342
- /**************************************************************************
343
- Elder panel
344
- **************************************************************************/
345
- .elder-panel {
346
- background: var(--md-sys-color-primary-container);
347
- color: var(--md-sys-color-on-primary-container);
348
- transition: background-color 0.5s;
349
-
350
- &.mat-primary,
351
- &.mat-accent,
352
- &.mat-warn {
353
- background: var(--elder-dark-mode-color-surface, var(--md-sys-color-primary));
354
- color: var(--elder-dark-mode-color-on-surface, var(--md-sys-color-on-primary));
355
- }
356
-
357
- // form field overrides
358
- .mat-form-field-underline,
359
- .mat-form-field-ripple,
360
- .mat-focused .mat-form-field-ripple {
361
- background-color: currentColor;
362
- }
363
-
364
- .mat-mdc-form-field-label,
365
- .mat-focused .mat-form-field-label,
366
- .mat-select-value,
367
- .mat-select-arrow,
368
- .mat-form-field.mat-focused .mat-select-arrow {
369
- color: inherit;
370
- }
371
-
372
- .mat-mdc-input-element {
373
- caret-color: currentColor;
374
- }
375
- }
376
-
377
- &.elder-light-theme,
378
- &.elder-dark-theme {
379
- --mdc-linear-progress-track-color: var(--md-sys-color-secondary-fixed-dim);
380
- }
381
- }