@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.
Files changed (67) hide show
  1. package/_index.scss +2 -0
  2. package/esm2022/lib/components/access-denied/elder-access-denied.component.mjs +3 -3
  3. package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +3 -3
  4. package/esm2022/lib/components/card-organizer/card-stack/elder-card-stack.component.mjs +3 -3
  5. package/esm2022/lib/components/cards/elder-card/elder-card.component.mjs +3 -3
  6. package/esm2022/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +3 -3
  7. package/esm2022/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +3 -3
  8. package/esm2022/lib/components/data-view/grid/elder-grid/elder-grid.component.mjs +3 -3
  9. package/esm2022/lib/components/data-view/table/elder-table/elder-table.component.mjs +3 -3
  10. package/esm2022/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +3 -3
  11. package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +3 -3
  12. package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +3 -3
  13. package/esm2022/lib/components/forms/search/search-box/elder-search-box.component.mjs +3 -3
  14. package/esm2022/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +3 -3
  15. package/esm2022/lib/components/headers/elder-header/elder-header.component.mjs +3 -3
  16. package/esm2022/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +3 -3
  17. package/esm2022/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +3 -3
  18. package/esm2022/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +3 -3
  19. package/esm2022/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +4 -5
  20. package/esm2022/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.mjs +3 -3
  21. package/esm2022/lib/components/page/exit-guard/page-exit-lock-overview/page-exit-lock-overview.component.mjs +3 -3
  22. package/esm2022/lib/components/public_api.mjs +1 -2
  23. package/esm2022/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.mjs +3 -3
  24. package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +2 -2
  25. package/esm2022/lib/components/shell/shell/elder-shell.component.mjs +6 -6
  26. package/esm2022/lib/components/toasts/standard-toast/standard-toast.component.mjs +3 -3
  27. package/fesm2022/elderbyte-ngx-starter.mjs +53 -62
  28. package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
  29. package/lib/components/public_api.d.ts +0 -1
  30. package/package.json +1 -1
  31. package/src/lib/components/badge/elder-badge/elder-badge.component.scss +1 -2
  32. package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +3 -3
  33. package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +9 -25
  34. package/src/lib/components/cards/elder-card/elder-card.component.scss +7 -8
  35. package/src/lib/components/chips/_elder-chip-theme.scss +3 -3
  36. package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +1 -1
  37. package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +3 -6
  38. package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +2 -2
  39. package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +2 -2
  40. package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +1 -1
  41. package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +0 -1
  42. package/src/lib/components/graph/elder-progress-bar/elder-progress-bar.component.scss +0 -1
  43. package/src/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.scss +2 -0
  44. package/src/lib/components/navigation/nav/_elder-nav-theme.scss +8 -4
  45. package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +1 -1
  46. package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +4 -4
  47. package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +2 -2
  48. package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +2 -2
  49. package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +3 -3
  50. package/src/lib/components/panels/flat/_elder-panel-theme.scss +8 -41
  51. package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +2 -3
  52. package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +1 -2
  53. package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +2 -2
  54. package/src/lib/components/shell/shell/elder-shell.component.scss +8 -0
  55. package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +3 -3
  56. package/theming/_elder-color-helpers.scss +74 -0
  57. package/theming/_elder-common.scss +15 -3
  58. package/theming/_elder-design-token-overwrites.scss +33 -0
  59. package/theming/_elder-flex-layout.scss +0 -11
  60. package/theming/_elder-layout-system.scss +225 -0
  61. package/theming/_elder-m3-theme.scss +83 -4
  62. package/theming/_elder-scrollbar-theme.scss +1 -1
  63. package/theming/_elder-style-fixes.scss +214 -21
  64. package/theming/_mixins.scss +0 -1
  65. package/esm2022/lib/components/loader-background/loader-background.component.mjs +0 -11
  66. package/lib/components/loader-background/loader-background.component.d.ts +0 -5
  67. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "18.13.0-beta.1",
3
+ "version": "18.13.0-beta.2",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^17.0.0 || ^18.0.0",
6
6
  "@angular/common": "^17.0.0 || ^18.0.0",
@@ -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
- //height: var(--mat-badge-text-size, 12px) + 4; // TODO token for badge height?
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);
@@ -4,7 +4,7 @@
4
4
  .elder-button-group {
5
5
  button {
6
6
  padding: 0 8px 0 8px;
7
- border: 1px solid var(--md-sys-color-outline-variant);
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: 4px 0 0 4px;
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: 4px;
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: 4px;
7
- border: 1px solid var(--md-sys-color-on-surface);
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-primary-fixed);
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
- /* Safari */
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
- -webkit-touch-callout: none; /* iOS Safari */
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
- color: var(--md-sys-color-tertiary);
6
- font-weight: 500 !important;
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
- color: var(--md-sys-color-primary);
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-tertiary-container),
38
- var(--md-sys-color-tertiary),
39
- var(--md-sys-color-on-tertiary)
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
 
@@ -1,5 +1,5 @@
1
1
  .panel {
2
2
  width: 380px;
3
3
  height: 350px;
4
- border-radius: 4px;
4
+ border-radius: var(--elder-border-radius-sm);
5
5
  }
@@ -4,7 +4,7 @@ $elder-tile-padding: 8px;
4
4
 
5
5
  @mixin theme($theme) {
6
6
  .elder-grid-container {
7
- border-radius: 4px;
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: 1px solid var(--md-sys-color-outline-variant);
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(--mat-app-elevation-shadow-level-8);
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: 1px solid var(--md-sys-color-outline-variant);
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: 4px;
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-secondary-container);
14
- color: var(--md-sys-color-on-secondary-container);
13
+ background-color: var(--md-sys-color-inverse-surface);
14
+ color: var(--md-sys-color-inverse-on-surface);
15
15
  }
16
16
  }
17
17
  }
@@ -12,7 +12,7 @@
12
12
  padding-left: 16px;
13
13
  padding-right: 16px;
14
14
  min-height: 48px;
15
- border-radius: 4px;
15
+ border-radius: var(--elder-border-radius-sm);
16
16
  overflow: hidden;
17
17
  transition: background-color 0.5s;
18
18
  }
@@ -38,7 +38,6 @@
38
38
  resize: none;
39
39
  width: 100%;
40
40
  height: 100%;
41
- box-sizing: border-box;
42
41
  border-radius: 0px;
43
42
  box-shadow: 0px 2px 14px #000;
44
43
  border-top: 1px solid #fff;
@@ -1,4 +1,3 @@
1
1
  .elder-progress-content {
2
2
  flex: 1 1 100%;
3
- box-sizing: border-box;
4
3
  }
@@ -1,4 +1,6 @@
1
1
  .breadcrumb-bar {
2
+ padding-top: 4px;
3
+ padding-bottom: 4px;
2
4
  }
3
5
 
4
6
  .breadcrumb-path {
@@ -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-primary-fixed);
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-primary-fixed);
50
- color: var(--md-sys-color-on-primary-fixed);
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-primary);
56
+ color: var(--md-sys-color-on-teriary);
53
57
  }
54
58
  }
55
59
 
@@ -13,7 +13,7 @@
13
13
  min-height: 48px;
14
14
  font-size: 16px;
15
15
  font-weight: 400;
16
- border-radius: 4px;
16
+ border-radius: var(--elder-border-radius-sm);
17
17
  cursor: pointer;
18
18
  }
19
19
 
@@ -5,13 +5,13 @@
5
5
  padding-left: 16px;
6
6
  padding-right: 16px;
7
7
  min-height: 48px;
8
- border-radius: 4px;
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: 24px;
14
- width: 24px;
13
+ height: 32px;
14
+ width: 32px;
15
15
  font-size: 24px;
16
16
  padding: 4px;
17
17
  }
@@ -1,7 +1,7 @@
1
1
  .panel {
2
2
  width: 250px;
3
3
  height: 250px;
4
- border-radius: 4px;
4
+ border-radius: var(--elder-border-radius-sm);
5
5
  overflow: hidden;
6
- box-shadow: var(--mat-app-elevation-shadow-level-8);
6
+ box-shadow: var(--elder-box-shadow-default);
7
7
  }
@@ -6,7 +6,7 @@
6
6
  background-color: var(--md-sys-color-surface);
7
7
 
8
8
  padding: 10px;
9
- border-radius: 4px;
10
- box-shadow: var(--mat-app-elevation-shadow-level-8);
9
+ border-radius: var(--elder-border-radius-sm);
10
+ box-shadow: var(--elder-box-shadow-default);
11
11
  }
12
12
  }
@@ -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: 4px;
11
- box-shadow: var(--mat-app-elevation-shadow-level-8);
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
- @if (mat.get-theme-version($theme) == 1) {
43
- background: var(--md-sys-color-primary-container);
44
- color: var(--md-sys-color-on-primary-container);
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
- @include _elder-panel-color($warn, $theme);
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
- // @include mat.m2-typography-level($config, title);
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
- box-sizing: border-box;
82
- // border-radius: 4px;
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 {
@@ -48,8 +48,7 @@
48
48
  }
49
49
 
50
50
  .cdk-drag-preview {
51
- box-sizing: border-box;
52
- box-shadow: var(--mat-app-elevation-shadow-level-8);
51
+ box-shadow: var(--elder-box-shadow-default);
53
52
  }
54
53
 
55
54
  .cdk-drag-placeholder {
@@ -1,6 +1,6 @@
1
1
  .title-icon {
2
2
  font-size: 42px;
3
- width: 42px;
4
- height: 42px;
3
+ width: 82px;
4
+ height: 82px;
5
5
  padding: 20px;
6
6
  }
@@ -18,3 +18,11 @@ mat-sidenav-container {
18
18
  height: 100%;
19
19
  overflow: hidden;
20
20
  }
21
+
22
+ .elder-toolbar-main-nav-button {
23
+ &:focus,
24
+ &:hover,
25
+ &:active {
26
+ background-color: rgba(0, 0, 0, 0.07);
27
+ }
28
+ }
@@ -7,7 +7,7 @@
7
7
 
8
8
  .toast-title,
9
9
  .mat-icon {
10
- color: var(--md-sys-color-primary-fixed);
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-fixed);
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
+ }