@onemrvapublic/design-system-theme 20.7.0-develop.2 → 20.7.0-develop.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.scss +1 -0
- package/overrides/_button.scss +9 -2
- package/overrides/_dialogs.scss +105 -117
- package/overrides/_form-field.scss +88 -29
- package/overrides/_input.scss +0 -219
- package/overrides/_layout.scss +12 -12
- package/overrides/_panel.scss +31 -33
- package/overrides/_select.scss +34 -0
- package/overrides/_slide-toggle.scss +29 -0
- package/overrides/_tabs.scss +1 -1
- package/overrides/_tooltip.scss +8 -6
- package/package.json +1 -1
- package/utilities/_fonts.scss +1 -1
- package/utilities/_tokens.scss +36 -13
package/index.scss
CHANGED
package/overrides/_button.scss
CHANGED
|
@@ -4,16 +4,19 @@
|
|
|
4
4
|
@mixin override() {
|
|
5
5
|
@include mat.button-overrides(
|
|
6
6
|
(
|
|
7
|
+
filled-label-text-font: var(--brand-font),
|
|
8
|
+
outlined-label-text-font: var(--brand-font),
|
|
9
|
+
text-label-text-font: var(--brand-font),
|
|
7
10
|
outlined-outline-color: var(--mat-sys-primary),
|
|
8
11
|
outlined-label-text-color: var(--mat-sys-primary),
|
|
9
12
|
outlined-outline-width: 2px,
|
|
10
13
|
outlined-container-height: 2.25rem,
|
|
11
|
-
outlined-label-text-font: Poppins,
|
|
12
14
|
outlined-label-text-size: 1rem,
|
|
13
15
|
outlined-label-text-weight: 500,
|
|
14
16
|
outlined-hover-state-layer-opacity: 0,
|
|
15
17
|
outlined-focus-state-layer-opacity: 0,
|
|
16
18
|
outlined-pressed-state-layer-opacity: 0,
|
|
19
|
+
|
|
17
20
|
filled-horizontal-padding: var(--double-spacer),
|
|
18
21
|
filled-container-height: 2.25rem,
|
|
19
22
|
filled-label-text-color: var(--on-background-gradient),
|
|
@@ -22,9 +25,13 @@
|
|
|
22
25
|
protected-hover-container-elevation-shadow: -4px -4px 5px 0px
|
|
23
26
|
rgba(200, 200, 200, 0.5),
|
|
24
27
|
protected-container-shape: square,
|
|
25
|
-
protected-label-text-color: green,
|
|
26
28
|
)
|
|
27
29
|
);
|
|
30
|
+
.mdc-icon-button {
|
|
31
|
+
&:hover {
|
|
32
|
+
box-shadow: var(--mat-sys-level2);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
28
35
|
.mdc-button,
|
|
29
36
|
.mdc-icon-button {
|
|
30
37
|
// transition: all 1s ease; // has issues with WAVE when used in dialod, should be removed ?
|
package/overrides/_dialogs.scss
CHANGED
|
@@ -1,130 +1,118 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
+
@use '../utilities/palettes' as palettes;
|
|
2
3
|
|
|
3
4
|
@mixin override() {
|
|
4
5
|
@include mat.dialog-overrides(
|
|
5
6
|
(
|
|
6
7
|
container-shape: var(--half-border-radius),
|
|
7
|
-
subhead-color: var(--mat-sys-primary),
|
|
8
|
-
subhead-font: var(--),
|
|
9
8
|
)
|
|
10
9
|
);
|
|
11
10
|
|
|
12
|
-
.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
.cdk-overlay-container {
|
|
12
|
+
.mat-mdc-dialog-title {
|
|
13
|
+
padding: var(--triple-spacer);
|
|
14
|
+
&:before {
|
|
15
|
+
display: none;
|
|
16
|
+
font-family: var(--icon-font);
|
|
17
|
+
font-size: 1.23rem;
|
|
18
|
+
font-variation-settings:
|
|
19
|
+
'FILL' 1,
|
|
20
|
+
'wght' 400,
|
|
21
|
+
'GRAD' 0,
|
|
22
|
+
'opsz' 24;
|
|
23
|
+
position: absolute;
|
|
24
|
+
}
|
|
18
25
|
}
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
.mat-mdc-dialog-actions {
|
|
27
|
+
@include mat.theme(
|
|
28
|
+
(
|
|
29
|
+
color: (
|
|
30
|
+
use-system-variables: true,
|
|
31
|
+
primary: palettes.$primary-palette,
|
|
32
|
+
tertiary: palettes.$tertiary-palette,
|
|
33
|
+
),
|
|
34
|
+
//typography: (
|
|
35
|
+
// use-system-variables: false,
|
|
36
|
+
// plain-family: Source Sans Pro,
|
|
37
|
+
// brand-family: Poppins,
|
|
38
|
+
// bold-weight: 900,
|
|
39
|
+
// medium-weight: 600,
|
|
40
|
+
// regular-weight: 400,
|
|
41
|
+
//),
|
|
42
|
+
//density: 0,
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cdk-overlay-pane.mat-warn,
|
|
48
|
+
.cdk-overlay-pane.mat-success,
|
|
49
|
+
.cdk-overlay-pane.mat-error {
|
|
50
|
+
@include mat.dialog-overrides(
|
|
51
|
+
(
|
|
52
|
+
subhead-color: var(--mat-sys-primary),
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
.mat-mdc-dialog-title {
|
|
56
|
+
margin-left: var(--quad-spacer);
|
|
57
|
+
position: relative;
|
|
58
|
+
&:before {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
margin-left: calc(-1 * var(--quad-spacer));
|
|
61
|
+
content: var(--message-icon);
|
|
62
|
+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.cdk-overlay-container.mat-error {
|
|
67
|
+
@include mat.dialog-overrides(
|
|
68
|
+
(
|
|
69
|
+
subhead-color: var(--mat-sys-error),
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.close-dialog {
|
|
75
|
+
float: right;
|
|
76
|
+
mat-icon {
|
|
77
|
+
color: var(--mat-sys-primary);
|
|
78
|
+
font-size: 1.7rem;
|
|
79
|
+
}
|
|
80
|
+
&:hover {
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
21
83
|
}
|
|
22
|
-
}
|
|
23
84
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
// color: µ.grayscale($theme, 900);
|
|
58
|
-
// }
|
|
59
|
-
//
|
|
60
|
-
// .mat-mdc-dialog-actions {
|
|
61
|
-
// padding: $spacer 3 * $spacer 3 * $spacer;
|
|
62
|
-
// align-items: end;
|
|
63
|
-
// justify-content: end;
|
|
64
|
-
// }
|
|
65
|
-
//}
|
|
66
|
-
//.xlarge {
|
|
67
|
-
// .mat-mdc-dialog-container {
|
|
68
|
-
// width: 996px;
|
|
69
|
-
// }
|
|
70
|
-
//}
|
|
71
|
-
//.large {
|
|
72
|
-
// .mat-mdc-dialog-container {
|
|
73
|
-
// width: 812px;
|
|
74
|
-
// }
|
|
75
|
-
//}
|
|
76
|
-
//.medium {
|
|
77
|
-
// .mat-mdc-dialog-container {
|
|
78
|
-
// width: 628px;
|
|
79
|
-
// }
|
|
80
|
-
//}
|
|
81
|
-
//.small {
|
|
82
|
-
// .mat-mdc-dialog-container {
|
|
83
|
-
// width: 444px;
|
|
84
|
-
// }
|
|
85
|
-
//}
|
|
86
|
-
//.mat-success,
|
|
87
|
-
//.mat-error,
|
|
88
|
-
//.mat-warn {
|
|
89
|
-
// .mat-mdc-dialog-title {
|
|
90
|
-
// &:before {
|
|
91
|
-
// display: inline;
|
|
92
|
-
// //noinspection CssNoGenericFontName
|
|
93
|
-
// font-family: 'Material Icons';
|
|
94
|
-
// font-variation-settings:
|
|
95
|
-
// 'FILL' 1,
|
|
96
|
-
// 'wght' 700,
|
|
97
|
-
// 'GRAD' 0,
|
|
98
|
-
// 'opsz' 20;
|
|
99
|
-
// font-size: 24px;
|
|
100
|
-
// top: 5px;
|
|
101
|
-
// margin: 0 8px 0 0;
|
|
102
|
-
// position: relative;
|
|
103
|
-
// }
|
|
104
|
-
// }
|
|
105
|
-
//}
|
|
106
|
-
//.mat-error {
|
|
107
|
-
// .mat-mdc-dialog-title {
|
|
108
|
-
// color: µ.error($theme);
|
|
109
|
-
// &:before {
|
|
110
|
-
// content: '\e000';
|
|
111
|
-
// }
|
|
112
|
-
// }
|
|
113
|
-
//}
|
|
114
|
-
//.mat-success {
|
|
115
|
-
// .mat-mdc-dialog-title {
|
|
116
|
-
// color: µ.success($theme, 600);
|
|
117
|
-
// &:before {
|
|
118
|
-
// content: '\e86c';
|
|
119
|
-
// }
|
|
120
|
-
// }
|
|
121
|
-
//}
|
|
122
|
-
//.mat-warn {
|
|
123
|
-
// .mat-mdc-dialog-title {
|
|
124
|
-
// color: µ.warn($theme, 600);
|
|
125
|
-
// &:before {
|
|
126
|
-
// content: '\e002';
|
|
127
|
-
// }
|
|
128
|
-
// }
|
|
129
|
-
//}
|
|
85
|
+
.xlarge {
|
|
86
|
+
@include mat.dialog-overrides(
|
|
87
|
+
(
|
|
88
|
+
container-max-width: 1280px,
|
|
89
|
+
container-min-width: 996px,
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
.large {
|
|
94
|
+
@include mat.dialog-overrides(
|
|
95
|
+
(
|
|
96
|
+
container-max-width: 996px,
|
|
97
|
+
container-min-width: 812px,
|
|
98
|
+
)
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
.medium {
|
|
102
|
+
@include mat.dialog-overrides(
|
|
103
|
+
(
|
|
104
|
+
container-max-width: 812px,
|
|
105
|
+
container-min-width: 628px,
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
.small {
|
|
110
|
+
@include mat.dialog-overrides(
|
|
111
|
+
(
|
|
112
|
+
container-max-width: 628px,
|
|
113
|
+
container-min-width: 444px,
|
|
114
|
+
)
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
130
118
|
}
|
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use 'sass:map';
|
|
3
|
+
@use '../utilities/palettes' as palettes;
|
|
4
|
+
|
|
5
|
+
@mixin defaultSubscriptElements() {
|
|
6
|
+
background-color: var(--mat-sys-error-container);
|
|
7
|
+
padding: 0 var(--spacer-and-half) 0
|
|
8
|
+
calc(var(--triple-spacer) + var(--spacer-and-half));
|
|
9
|
+
font: var(--mat-sys-label-small);
|
|
10
|
+
border-bottom: 1px solid var(--mat-sys-error);
|
|
11
|
+
|
|
12
|
+
&:before {
|
|
13
|
+
font-size: 1rem;
|
|
14
|
+
font-variation-settings:
|
|
15
|
+
'FILL' 1,
|
|
16
|
+
'wght' 400,
|
|
17
|
+
'GRAD' 0,
|
|
18
|
+
'opsz' 24;
|
|
19
|
+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
|
|
20
|
+
font-family: var(--icon-font);
|
|
21
|
+
position: relative;
|
|
22
|
+
top: var(--half-spacer);
|
|
23
|
+
margin-left: calc(-1 * var(--triple-spacer));
|
|
24
|
+
padding-right: var(--half-spacer);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// hint or error as type value
|
|
29
|
+
@mixin formFieldSubscript($type) {
|
|
30
|
+
.mat-mdc-form-field-#{$type}-wrapper {
|
|
31
|
+
padding: 0;
|
|
32
|
+
|
|
33
|
+
.mat-mdc-form-field-hint-spacer {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@if $type == error {
|
|
38
|
+
mat-error {
|
|
39
|
+
@include defaultSubscriptElements();
|
|
40
|
+
|
|
41
|
+
&:before {
|
|
42
|
+
content: '\e000';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@if $type == hint {
|
|
48
|
+
// The mat-warn is set by the color directive
|
|
49
|
+
mat-hint {
|
|
50
|
+
padding-top: var(--half-spacer);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
mat-hint.mat-warn {
|
|
54
|
+
@include defaultSubscriptElements();
|
|
55
|
+
|
|
56
|
+
width: 100%;
|
|
57
|
+
background-color: var(--mat-sys-primary-container);
|
|
58
|
+
border-bottom: 1px solid var(--mat-sys-primary);
|
|
59
|
+
color: var(--mat-sys-primary);
|
|
60
|
+
padding: 0
|
|
61
|
+
var(--spacer-and-half)
|
|
62
|
+
var(--half-spacer)
|
|
63
|
+
calc(var(--triple-spacer) + var(--spacer-and-half));
|
|
64
|
+
|
|
65
|
+
&:before {
|
|
66
|
+
content: '\e002';
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
3
72
|
|
|
4
73
|
@mixin override() {
|
|
5
74
|
@include mat.form-field-overrides(
|
|
@@ -16,6 +85,7 @@
|
|
|
16
85
|
outlined-focus-outline-width: 2px,
|
|
17
86
|
outlined-label-text-weight: var(--mat-sys-label-small-weight),
|
|
18
87
|
outlined-input-text-placeholder-color: var(--mat-sys-outline),
|
|
88
|
+
container-text-weight: var(--mat-sys-label-small-weight),
|
|
19
89
|
)
|
|
20
90
|
);
|
|
21
91
|
|
|
@@ -23,6 +93,20 @@
|
|
|
23
93
|
padding: var(--spacer);
|
|
24
94
|
//margin-bottom: var(--spacer);
|
|
25
95
|
|
|
96
|
+
.mat-mdc-form-field-subscript-wrapper {
|
|
97
|
+
@include formFieldSubscript(error);
|
|
98
|
+
@include formFieldSubscript(hint);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.mat-mdc-form-field-required-marker {
|
|
102
|
+
@include mat.form-field-overrides(
|
|
103
|
+
(
|
|
104
|
+
outlined-label-text-color: var(--mat-sys-error),
|
|
105
|
+
)
|
|
106
|
+
);
|
|
107
|
+
color: var(--mat-form-field-outlined-label-text-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
26
110
|
.mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
|
27
111
|
.mdc-notched-outline--upgraded {
|
|
28
112
|
.mdc-floating-label--float-above {
|
|
@@ -40,39 +124,14 @@
|
|
|
40
124
|
}
|
|
41
125
|
}
|
|
42
126
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
mat-error {
|
|
47
|
-
background-color: var(--mat-sys-error-container);
|
|
48
|
-
padding: 0 var(--spacer-and-half) 0
|
|
49
|
-
calc(var(--triple-spacer) + var(--spacer-and-half));
|
|
50
|
-
font: var(--mat-sys-label-small);
|
|
51
|
-
border-bottom: 1px solid var(--mat-sys-error);
|
|
52
|
-
&:before {
|
|
53
|
-
font-size: 1rem;
|
|
54
|
-
font-variation-settings:
|
|
55
|
-
'FILL' 1,
|
|
56
|
-
'wght' 400,
|
|
57
|
-
'GRAD' 0,
|
|
58
|
-
'opsz' 24;
|
|
59
|
-
content: '\e000';
|
|
60
|
-
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
|
|
61
|
-
font-family: var(--icon-font);
|
|
62
|
-
position: relative;
|
|
63
|
-
top: var(--half-spacer);
|
|
64
|
-
margin-left: calc(-1 * var(--triple-spacer));
|
|
65
|
-
padding-right: var(--half-spacer);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
&.mat-warn {
|
|
127
|
+
|
|
128
|
+
&.mat-warn,
|
|
129
|
+
&.force-warn {
|
|
71
130
|
.mat-mdc-form-field-subscript-wrapper {
|
|
72
131
|
.mat-mdc-form-field-error-wrapper {
|
|
73
132
|
mat-error {
|
|
74
133
|
background-color: var(--mat-sys-primary-container);
|
|
75
|
-
border-bottom:
|
|
134
|
+
border-bottom: 1px solid var(--mat-sys-primary);
|
|
76
135
|
&:before {
|
|
77
136
|
content: '\e002';
|
|
78
137
|
}
|
package/overrides/_input.scss
CHANGED
|
@@ -16,222 +16,3 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
//@mixin theme($theme) {
|
|
21
|
-
// @include mat.input-base($theme);
|
|
22
|
-
// @include mat.input-theme($theme);
|
|
23
|
-
//
|
|
24
|
-
// .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
|
25
|
-
// .mdc-notched-outline--upgraded {
|
|
26
|
-
// .mdc-floating-label--float-above {
|
|
27
|
-
// --mat-mdc-form-field-label-transform: translateY(
|
|
28
|
-
// calc(calc(10px + var(--mat-form-field-container-height) / 2) * -1)
|
|
29
|
-
// );
|
|
30
|
-
// }
|
|
31
|
-
// }
|
|
32
|
-
// }
|
|
33
|
-
//
|
|
34
|
-
// .mat-mdc-form-field {
|
|
35
|
-
// line-height: 26px;
|
|
36
|
-
// padding: 8px;
|
|
37
|
-
// --mat-mdc-form-field-floating-label-scale: 1;
|
|
38
|
-
//
|
|
39
|
-
// .mat-mdc-form-field-required-marker {
|
|
40
|
-
// color: µ.error($theme, 500);
|
|
41
|
-
// }
|
|
42
|
-
//
|
|
43
|
-
// .mat-mdc-text-field-wrapper {
|
|
44
|
-
// padding: 0 8px;
|
|
45
|
-
// }
|
|
46
|
-
//
|
|
47
|
-
// .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
|
|
48
|
-
// color: µ.grayscale($theme, 900);
|
|
49
|
-
// }
|
|
50
|
-
//
|
|
51
|
-
// .mat-mdc-form-field-hint-spacer {
|
|
52
|
-
// display: none;
|
|
53
|
-
// }
|
|
54
|
-
//
|
|
55
|
-
// .mat-mdc-form-field-hint-wrapper {
|
|
56
|
-
// padding: 4px 0;
|
|
57
|
-
// }
|
|
58
|
-
//
|
|
59
|
-
// .mat-mdc-form-field-icon-suffix {
|
|
60
|
-
// mat-icon {
|
|
61
|
-
// height: auto;
|
|
62
|
-
// }
|
|
63
|
-
// }
|
|
64
|
-
//
|
|
65
|
-
// &:not(.mat-form-field-onemrva-warning) {
|
|
66
|
-
// .mat-mdc-form-field-error-wrapper {
|
|
67
|
-
// padding: 0;
|
|
68
|
-
// position: static;
|
|
69
|
-
//
|
|
70
|
-
// .mat-mdc-form-field-error {
|
|
71
|
-
// margin-bottom: 8px;
|
|
72
|
-
// padding: 8px 1em;
|
|
73
|
-
// background-color: #ffebe6;
|
|
74
|
-
// border-bottom: 1px solid µ.error($theme, 500);
|
|
75
|
-
// color: µ.error($theme, 500);
|
|
76
|
-
// display: flex;
|
|
77
|
-
// line-height: 1.125;
|
|
78
|
-
//
|
|
79
|
-
// .mat-icon {
|
|
80
|
-
// float: left;
|
|
81
|
-
// font-size: 16px;
|
|
82
|
-
// font-variation-settings: 'FILL' 1;
|
|
83
|
-
// margin-right: 8px;
|
|
84
|
-
// vertical-align: baseline;
|
|
85
|
-
// flex: 0 0 16px;
|
|
86
|
-
// line-height: 16px;
|
|
87
|
-
// }
|
|
88
|
-
// }
|
|
89
|
-
// }
|
|
90
|
-
// }
|
|
91
|
-
//
|
|
92
|
-
// mat-hint.with-counter {
|
|
93
|
-
// position: relative;
|
|
94
|
-
// height: 21px;
|
|
95
|
-
// width: 100%;
|
|
96
|
-
//
|
|
97
|
-
// .counter {
|
|
98
|
-
// position: absolute;
|
|
99
|
-
// right: 0;
|
|
100
|
-
// top: 0;
|
|
101
|
-
// }
|
|
102
|
-
// }
|
|
103
|
-
//
|
|
104
|
-
// &.mat-form-field-onemrva-warning {
|
|
105
|
-
// .mat-mdc-form-field-error-wrapper {
|
|
106
|
-
// padding: 0;
|
|
107
|
-
// position: static;
|
|
108
|
-
//
|
|
109
|
-
// .mat-mdc-form-field-error {
|
|
110
|
-
// margin-bottom: 8px;
|
|
111
|
-
// padding: 8px 1em;
|
|
112
|
-
// background-color: µ.warn($theme, 50);
|
|
113
|
-
// border-bottom: 1px solid µ.warn($theme, 600);
|
|
114
|
-
// color: µ.warn($theme, 600);
|
|
115
|
-
// display: flex;
|
|
116
|
-
// line-height: 1.125;
|
|
117
|
-
//
|
|
118
|
-
// .mat-icon {
|
|
119
|
-
// float: left;
|
|
120
|
-
// font-size: 16px;
|
|
121
|
-
// font-variation-settings: 'FILL' 1;
|
|
122
|
-
// margin-right: 8px;
|
|
123
|
-
// vertical-align: baseline;
|
|
124
|
-
// flex: 0 0 16px;
|
|
125
|
-
// line-height: 16px;
|
|
126
|
-
// }
|
|
127
|
-
// }
|
|
128
|
-
// }
|
|
129
|
-
//
|
|
130
|
-
// .mat-mdc-form-field-hint-wrapper {
|
|
131
|
-
// padding: 0;
|
|
132
|
-
// position: static;
|
|
133
|
-
//
|
|
134
|
-
// .mat-warn {
|
|
135
|
-
// margin-bottom: 8px;
|
|
136
|
-
// padding: 8px 1em;
|
|
137
|
-
// background-color: µ.warn($theme, 50);
|
|
138
|
-
// border-bottom: 1px solid µ.warn($theme, 600);
|
|
139
|
-
// color: µ.warn($theme, 600);
|
|
140
|
-
// display: flex;
|
|
141
|
-
// line-height: 1.125;
|
|
142
|
-
//
|
|
143
|
-
// .mat-icon {
|
|
144
|
-
// float: left;
|
|
145
|
-
// font-size: 16px;
|
|
146
|
-
// font-variation-settings: 'FILL' 1;
|
|
147
|
-
// margin-right: 8px;
|
|
148
|
-
// vertical-align: baseline;
|
|
149
|
-
// flex: 0 0 16px;
|
|
150
|
-
// }
|
|
151
|
-
// }
|
|
152
|
-
// }
|
|
153
|
-
// }
|
|
154
|
-
//
|
|
155
|
-
// &:not(.mat-form-field-invalid):not(.mat-form-field-onemrva-warning):not(
|
|
156
|
-
// .mat-form-field-disabled
|
|
157
|
-
// ) {
|
|
158
|
-
// .mdc-notched-outline {
|
|
159
|
-
// .mdc-notched-outline__leading,
|
|
160
|
-
// .mdc-notched-outline__trailing {
|
|
161
|
-
// border-color: µ.grayscale($theme, 200);
|
|
162
|
-
// outline: 1px solid transparent;
|
|
163
|
-
// }
|
|
164
|
-
//
|
|
165
|
-
// .mdc-notched-outline__notch {
|
|
166
|
-
// border-bottom-color: µ.grayscale($theme, 200);
|
|
167
|
-
// outline: 1px solid transparent;
|
|
168
|
-
// }
|
|
169
|
-
// }
|
|
170
|
-
//
|
|
171
|
-
// @include inputStyle(µ.grayscale($theme, 800));
|
|
172
|
-
// }
|
|
173
|
-
//
|
|
174
|
-
// &.mat-form-field-invalid:not(.mat-form-field-onemrva-warning):not(
|
|
175
|
-
// .mat-form-field-disabled
|
|
176
|
-
// ) {
|
|
177
|
-
// mat-label,
|
|
178
|
-
// .mat-mdc-form-field-required-marker {
|
|
179
|
-
// color: µ.error($theme);
|
|
180
|
-
// }
|
|
181
|
-
//
|
|
182
|
-
// .mdc-notched-outline {
|
|
183
|
-
// .mdc-notched-outline__leading,
|
|
184
|
-
// .mdc-notched-outline__trailing {
|
|
185
|
-
// border-width: 2px;
|
|
186
|
-
// border-color: µ.error($theme);
|
|
187
|
-
// }
|
|
188
|
-
//
|
|
189
|
-
// .mdc-notched-outline__notch {
|
|
190
|
-
// border-width: 2px;
|
|
191
|
-
// border-bottom-color: µ.error($theme);
|
|
192
|
-
// }
|
|
193
|
-
// }
|
|
194
|
-
//
|
|
195
|
-
// .mdc-text-field__input {
|
|
196
|
-
// caret-color: µ.error($theme, 500);
|
|
197
|
-
// }
|
|
198
|
-
//
|
|
199
|
-
// @include inputStyle(µ.error($theme));
|
|
200
|
-
// }
|
|
201
|
-
//
|
|
202
|
-
// &.mat-form-field-onemrva-warning:not(.mat-form-field-disabled) {
|
|
203
|
-
// .mdc-notched-outline {
|
|
204
|
-
// mat-label,
|
|
205
|
-
// .mat-mdc-form-field-required-marker {
|
|
206
|
-
// color: µ.warn($theme, 600);
|
|
207
|
-
// }
|
|
208
|
-
//
|
|
209
|
-
// .mdc-notched-outline__leading,
|
|
210
|
-
// .mdc-notched-outline__trailing {
|
|
211
|
-
// border-width: 2px;
|
|
212
|
-
// border-color: µ.warn($theme, 600);
|
|
213
|
-
// }
|
|
214
|
-
//
|
|
215
|
-
// .mdc-notched-outline__notch {
|
|
216
|
-
// border-width: 2px;
|
|
217
|
-
// border-bottom-color: µ.warn($theme, 600);
|
|
218
|
-
// }
|
|
219
|
-
// }
|
|
220
|
-
//
|
|
221
|
-
// @include inputStyle(µ.warn($theme, 600));
|
|
222
|
-
// }
|
|
223
|
-
//
|
|
224
|
-
// .mat-mdc-form-field-bottom-align::before {
|
|
225
|
-
// display: initial;
|
|
226
|
-
// order: 99;
|
|
227
|
-
// }
|
|
228
|
-
// }
|
|
229
|
-
//
|
|
230
|
-
// .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
|
231
|
-
// .mat-mdc-form-field-infix {
|
|
232
|
-
// padding: 7px 0 4px 0;
|
|
233
|
-
// display: flex;
|
|
234
|
-
// align-items: center;
|
|
235
|
-
// }
|
|
236
|
-
// }
|
|
237
|
-
//}
|
package/overrides/_layout.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin override() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
4
|
+
//&:not(.light-theme) {
|
|
5
|
+
// @media (prefers-color-scheme: dark) {
|
|
6
|
+
// header {
|
|
7
|
+
// .logo {
|
|
8
|
+
// filter: brightness(0) invert(1);
|
|
9
|
+
// }
|
|
10
|
+
// .application-title {
|
|
11
|
+
// color: var(--mat-sys-on-surface) !important;
|
|
12
|
+
// }
|
|
13
|
+
// }
|
|
14
|
+
// }
|
|
15
|
+
//}
|
|
16
16
|
|
|
17
17
|
&.dark-theme {
|
|
18
18
|
header {
|
package/overrides/_panel.scss
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin override() {
|
|
4
|
-
|
|
4
|
+
//&:not(.light-theme) {
|
|
5
|
+
// onemrva-mat-panel {
|
|
6
|
+
// &[class^='mat-'] {
|
|
7
|
+
// @media (prefers-color-scheme: dark) {
|
|
8
|
+
// @include mat.form-field-overrides(
|
|
9
|
+
// (
|
|
10
|
+
// outlined-label-text-color: var(--mat-sys-on-background),
|
|
11
|
+
// outlined-outline-color: var(--mat-sys-on-background),
|
|
12
|
+
// outlined-focus-label-text-color: var(--mat-sys-on-background),
|
|
13
|
+
// outlined-focus-outline-color: var(--mat-sys-on-background),
|
|
14
|
+
// outlined-hover-label-text-color: var(--mat-sys-on-background),
|
|
15
|
+
// outlined-hover-outline-color: var(--mat-sys-on-background),
|
|
16
|
+
// outlined-input-text-placeholder-color: var(--mat-sys-outline),
|
|
17
|
+
// )
|
|
18
|
+
// );
|
|
19
|
+
// @include mat.select-overrides(
|
|
20
|
+
// (
|
|
21
|
+
// enabled-arrow-color: var(--mat-sys-on-background),
|
|
22
|
+
// focused-arrow-color: var(--mat-sys-on-background),
|
|
23
|
+
// placeholder-text-color: var(--mat-sys-on-background),
|
|
24
|
+
// enabled-trigger-text-color: var(--mat-sys-on-background),
|
|
25
|
+
// )
|
|
26
|
+
// );
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
// }
|
|
30
|
+
//}
|
|
31
|
+
&.dark-theme {
|
|
5
32
|
onemrva-mat-panel {
|
|
6
|
-
|
|
7
|
-
|
|
33
|
+
onemrva-mat-panel {
|
|
34
|
+
&[class^='mat-'] {
|
|
8
35
|
@include mat.form-field-overrides(
|
|
9
36
|
(
|
|
10
37
|
outlined-label-text-color: var(--mat-sys-on-background),
|
|
@@ -13,6 +40,7 @@
|
|
|
13
40
|
outlined-focus-outline-color: var(--mat-sys-on-background),
|
|
14
41
|
outlined-hover-label-text-color: var(--mat-sys-on-background),
|
|
15
42
|
outlined-hover-outline-color: var(--mat-sys-on-background),
|
|
43
|
+
outlined-input-text-color: var(--mat-sys-on-background),
|
|
16
44
|
outlined-input-text-placeholder-color: var(--mat-sys-outline),
|
|
17
45
|
)
|
|
18
46
|
);
|
|
@@ -28,34 +56,4 @@
|
|
|
28
56
|
}
|
|
29
57
|
}
|
|
30
58
|
}
|
|
31
|
-
&.dark-theme {
|
|
32
|
-
onemrva-mat-panel {
|
|
33
|
-
onemrva-mat-panel {
|
|
34
|
-
&[class^='mat-'] {
|
|
35
|
-
@media (prefers-color-scheme: dark) {
|
|
36
|
-
@include mat.form-field-overrides(
|
|
37
|
-
(
|
|
38
|
-
outlined-label-text-color: var(--mat-sys-on-background),
|
|
39
|
-
outlined-outline-color: var(--mat-sys-on-background),
|
|
40
|
-
outlined-focus-label-text-color: var(--mat-sys-on-background),
|
|
41
|
-
outlined-focus-outline-color: var(--mat-sys-on-background),
|
|
42
|
-
outlined-hover-label-text-color: var(--mat-sys-on-background),
|
|
43
|
-
outlined-hover-outline-color: var(--mat-sys-on-background),
|
|
44
|
-
outlined-input-text-color: var(--mat-sys-on-background),
|
|
45
|
-
outlined-input-text-placeholder-color: var(--mat-sys-outline),
|
|
46
|
-
)
|
|
47
|
-
);
|
|
48
|
-
@include mat.select-overrides(
|
|
49
|
-
(
|
|
50
|
-
enabled-arrow-color: var(--mat-sys-on-background),
|
|
51
|
-
focused-arrow-color: var(--mat-sys-on-background),
|
|
52
|
-
placeholder-text-color: var(--mat-sys-on-background),
|
|
53
|
-
enabled-trigger-text-color: var(--mat-sys-on-background),
|
|
54
|
-
)
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
59
|
}
|
package/overrides/_select.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
panel-background-color: var(--mat-sys-surface),
|
|
8
8
|
trigger-text-font: var(--mat-sys-body-medium-font),
|
|
9
9
|
trigger-text-size: var(--mat-sys-body-medium-size),
|
|
10
|
+
trigger-text-weight: var(--mat-sys-body-medium-weight),
|
|
10
11
|
)
|
|
11
12
|
);
|
|
12
13
|
|
|
@@ -79,6 +80,39 @@
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
|
|
83
|
+
.xlarge {
|
|
84
|
+
@include mat.dialog-overrides(
|
|
85
|
+
(
|
|
86
|
+
container-max-width: 1280px,
|
|
87
|
+
container-min-width: 996px,
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
.large {
|
|
92
|
+
@include mat.dialog-overrides(
|
|
93
|
+
(
|
|
94
|
+
container-max-width: 996px,
|
|
95
|
+
container-min-width: 812px,
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
.medium {
|
|
100
|
+
@include mat.dialog-overrides(
|
|
101
|
+
(
|
|
102
|
+
container-max-width: 812px,
|
|
103
|
+
container-min-width: 628px,
|
|
104
|
+
)
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
.small {
|
|
108
|
+
@include mat.dialog-overrides(
|
|
109
|
+
(
|
|
110
|
+
container-max-width: 628px,
|
|
111
|
+
container-min-width: 444px,
|
|
112
|
+
)
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
82
116
|
//.mat-mdc-select {
|
|
83
117
|
// padding: 0;
|
|
84
118
|
// --mat-select-invalid-arrow-color: #{µ.error($theme, 500)};
|
|
@@ -1,14 +1,43 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin override() {
|
|
4
|
+
$size: 24px;
|
|
5
|
+
$handleSize: calc($size - 4px);
|
|
6
|
+
$margin: 0 4px;
|
|
7
|
+
|
|
4
8
|
@include mat.slide-toggle-overrides(
|
|
5
9
|
(
|
|
10
|
+
//unselected-track-color: var(--mat-sys-outline),
|
|
11
|
+
unselected-icon-color: white,
|
|
6
12
|
track-outline-color: var(--mat-sys-surface-variant),
|
|
7
13
|
selected-track-outline-color: var(--mat-sys-secondary),
|
|
8
14
|
label-text-font: var(--mat-sys-body-medium-font),
|
|
9
15
|
label-text-size: var(--mat-sys-body-medium-size),
|
|
10
16
|
label-text-weight: var(--mat-sys-body-medium-weight),
|
|
11
17
|
label-text-line-height: var(--mat-sys-body-medium-line-height),
|
|
18
|
+
track-height: $size,
|
|
19
|
+
handle-height: $size,
|
|
20
|
+
|
|
21
|
+
touch-target-size: $size,
|
|
22
|
+
state-layer-size: $size,
|
|
23
|
+
handle-width: $size,
|
|
24
|
+
track-width: 42px,
|
|
25
|
+
|
|
26
|
+
selected-icon-size: $handleSize,
|
|
27
|
+
pressed-handle-size: $handleSize,
|
|
28
|
+
unselected-handle-size: $handleSize,
|
|
29
|
+
with-icon-handle-size: $handleSize,
|
|
30
|
+
|
|
31
|
+
selected-handle-horizontal-margin: $margin,
|
|
32
|
+
unselected-pressed-handle-horizontal-margin: $margin,
|
|
33
|
+
selected-with-icon-handle-horizontal-margin: 0,
|
|
34
|
+
selected-pressed-handle-horizontal-margin: 0,
|
|
35
|
+
unselected-handle-horizontal-margin: $margin,
|
|
36
|
+
unselected-with-icon-handle-horizontal-margin: $margin,
|
|
37
|
+
|
|
38
|
+
track-outline-width: 0,
|
|
39
|
+
selected-track-outline-width: 0,
|
|
40
|
+
disabled-unselected-track-outline-width: 0
|
|
12
41
|
)
|
|
13
42
|
);
|
|
14
43
|
|
package/overrides/_tabs.scss
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
active-indicator-height: 3px,
|
|
10
10
|
label-text-font: var(--mat-sys-title-medium-font),
|
|
11
11
|
label-text-size: var(--mat-sys-title-medium-size),
|
|
12
|
-
label-text-weight: var(--mat-sys-title-medium-weight),
|
|
12
|
+
//label-text-weight: var(--mat-sys-title-medium-weight),
|
|
13
13
|
label-text-line-height: var(--mat-sys-title-medium-height),
|
|
14
14
|
)
|
|
15
15
|
);
|
package/overrides/_tooltip.scss
CHANGED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
@mixin override() {
|
|
4
4
|
@include mat.tooltip-overrides(
|
|
5
5
|
(
|
|
6
|
-
supporting-text-font:
|
|
7
|
-
supporting-text-size:
|
|
8
|
-
container-color:
|
|
9
|
-
supporting-text-color:
|
|
6
|
+
supporting-text-font: var(--mat-sys-label-small-font),
|
|
7
|
+
supporting-text-size: var(--mat-sys-label-small-size),
|
|
8
|
+
container-color: var(--mat-sys-surface),
|
|
9
|
+
supporting-text-color: var(--mat-sys-on-surface),
|
|
10
|
+
supporting-text-line-height: var(--mat-sys-label-small-line-height),
|
|
11
|
+
supporting-text-weight: var(--mat-sys-label-small-weight),
|
|
10
12
|
)
|
|
11
13
|
);
|
|
12
14
|
|
|
13
15
|
.mat-mdc-tooltip-surface {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
padding: var(--spacer);
|
|
17
|
+
box-shadow: var(--mat-sys-level3) !important;
|
|
16
18
|
}
|
|
17
19
|
}
|
package/package.json
CHANGED
package/utilities/_fonts.scss
CHANGED
package/utilities/_tokens.scss
CHANGED
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
--paginator-height: 37px;
|
|
25
25
|
--page-size-width: 80px;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--spacer
|
|
31
|
-
--spacer: 0.
|
|
32
|
-
--
|
|
33
|
-
--
|
|
27
|
+
// Sizes based on 16px base rem
|
|
28
|
+
--quad-spacer: 2rem; // 32px
|
|
29
|
+
--triple-spacer: 1.5rem; // 24px
|
|
30
|
+
--double-spacer: 1rem; // 16px
|
|
31
|
+
--spacer-and-half: 0.75rem; // 12px
|
|
32
|
+
--spacer: 0.5rem; // 8px
|
|
33
|
+
--half-spacer: 0.25rem; // 4px
|
|
34
|
+
--quarter-spacer: 0.125rem; // 2px
|
|
34
35
|
|
|
35
36
|
--text-font: Source Sans Pro, sans-serif;
|
|
36
37
|
--brand-font: Poppins, sans-serif;
|
|
@@ -46,9 +47,31 @@
|
|
|
46
47
|
|
|
47
48
|
--toc-width: 280px;
|
|
48
49
|
|
|
50
|
+
--message-icon: '';
|
|
51
|
+
|
|
52
|
+
--breakpoint-small: 600px;
|
|
53
|
+
--breakpoint-medium: 960px;
|
|
54
|
+
--breakpoint-large: 1280px;
|
|
55
|
+
--breakpoint-xlarge: 1536px;
|
|
56
|
+
--breakpoint-xxlarge: 1920px;
|
|
57
|
+
|
|
58
|
+
.mat-info {
|
|
59
|
+
--message-icon: '\e88e';
|
|
60
|
+
}
|
|
61
|
+
.mat-success {
|
|
62
|
+
--message-icon: '\e86c';
|
|
63
|
+
}
|
|
64
|
+
.mat-error {
|
|
65
|
+
--message-icon: '\e000';
|
|
66
|
+
}
|
|
67
|
+
.mat-warn {
|
|
68
|
+
--message-icon: '\e002';
|
|
69
|
+
}
|
|
70
|
+
|
|
49
71
|
--avatar-size: 3.5rem;
|
|
50
72
|
--avatar-font-size: 1.5rem;
|
|
51
73
|
--avatar-resize: 0.75rem;
|
|
74
|
+
|
|
52
75
|
.onemrva-mat-avatar--text {
|
|
53
76
|
--avatar-font-size: 1rem;
|
|
54
77
|
}
|
|
@@ -86,12 +109,12 @@
|
|
|
86
109
|
}
|
|
87
110
|
}
|
|
88
111
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
112
|
+
//&:not(.light-theme) {
|
|
113
|
+
// @media (prefers-color-scheme: dark) {
|
|
114
|
+
// // TODO : dark mode
|
|
115
|
+
// --background-error-page: url('https://cdn.services.rvaonem.fgov.be/img/404/background-dark.svg');
|
|
116
|
+
// }
|
|
117
|
+
//}
|
|
95
118
|
|
|
96
119
|
&.dark-theme {
|
|
97
120
|
// TODO : dark mode
|