@onemrvapublic/design-system-theme 19.3.2 → 19.4.0-alpha.10
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 +179 -191
- package/overrides/_button-toggle.scss +14 -0
- package/overrides/_button.scss +120 -0
- package/overrides/_cards.scss +11 -0
- package/overrides/_carousel.scss +13 -0
- package/overrides/_checkbox.scss +41 -0
- package/overrides/_chips.scss +42 -0
- package/overrides/_dialogs.scss +130 -0
- package/overrides/_divider.scss +9 -0
- package/overrides/_drag-and-drop.scss +74 -0
- package/overrides/_expansion.scss +40 -0
- package/overrides/_fab.scss +45 -0
- package/overrides/_form-field.scss +40 -0
- package/overrides/_icon-button.scss +18 -0
- package/overrides/_icon.scss +97 -0
- package/overrides/_input.scss +237 -0
- package/overrides/_layout.scss +11 -0
- package/overrides/_menu.scss +25 -0
- package/overrides/_progress-bar.scss +29 -0
- package/overrides/_radio.scss +17 -0
- package/overrides/_select.scss +71 -0
- package/overrides/_slide-toggle.scss +23 -0
- package/overrides/_stepper.scss +196 -0
- package/overrides/_stickers.scss +13 -0
- package/overrides/_table.scss +111 -0
- package/overrides/_tabs.scss +20 -0
- package/overrides/_toast.scss +16 -0
- package/overrides/_toc.scss +26 -0
- package/overrides/_toolbar.scss +18 -0
- package/overrides/_tooltip.scss +17 -0
- package/package.json +1 -1
- package/palettes/_clemence.scss +164 -0
- package/palettes/_palette.scss +197 -0
- package/utilities/_animations.scss +54 -0
- package/{components → utilities}/_container.scss +12 -12
- package/utilities/_fonts.scss +151 -64
- package/utilities/_grid.scss +2 -2
- package/utilities/_palettes.scss +117 -223
- package/utilities/_tokens.scss +83 -0
- package/utilities/_utilities.scss +112 -28
- package/utilities/_variables.scss +2 -115
- package/components/_autocomplete.scss +0 -20
- package/components/_badge.scss +0 -7
- package/components/_bottom-sheet.scss +0 -7
- package/components/_button-toggle.scss +0 -40
- package/components/_button.scss +0 -342
- package/components/_cards.scss +0 -156
- package/components/_checkbox.scss +0 -116
- package/components/_chips.scss +0 -119
- package/components/_choice-chips.scss +0 -79
- package/components/_datepicker.scss +0 -11
- package/components/_dialogs.scss +0 -130
- package/components/_divider.scss +0 -7
- package/components/_drag-and-drop.scss +0 -73
- package/components/_expansion.scss +0 -74
- package/components/_fab.scss +0 -6
- package/components/_form-field.scss +0 -51
- package/components/_grid-list.scss +0 -6
- package/components/_hacks.scss +0 -5
- package/components/_icon-button.scss +0 -8
- package/components/_icon.scss +0 -101
- package/components/_input.scss +0 -240
- package/components/_links.scss +0 -30
- package/components/_lists.scss +0 -8
- package/components/_menu.scss +0 -16
- package/components/_progress-bar.scss +0 -29
- package/components/_radio.scss +0 -48
- package/components/_select.scss +0 -20
- package/components/_sidenav.scss +0 -43
- package/components/_slide-toggle.scss +0 -117
- package/components/_slider.scss +0 -6
- package/components/_snack-bar.scss +0 -38
- package/components/_sort.scss +0 -6
- package/components/_stepper.scss +0 -96
- package/components/_table.scss +0 -156
- package/components/_tabs.scss +0 -75
- package/components/_toolbar.scss +0 -28
- package/components/_tooltip.scss +0 -31
- package/components/_tree.scss +0 -6
- package/components/_/302/265-colors.scss +0 -91
- package/components/_/302/265-typography.scss +0 -58
- package/components/_/302/265.scss +0 -2
package/index.scss
CHANGED
|
@@ -1,41 +1,28 @@
|
|
|
1
|
-
@forward './
|
|
2
|
-
@forward './
|
|
3
|
-
@forward './
|
|
4
|
-
@forward './
|
|
5
|
-
@forward './
|
|
6
|
-
@forward './
|
|
7
|
-
@forward './
|
|
8
|
-
@forward './
|
|
9
|
-
@forward './
|
|
10
|
-
@forward './
|
|
11
|
-
@forward './
|
|
12
|
-
@forward './
|
|
13
|
-
@forward './
|
|
14
|
-
@forward './
|
|
15
|
-
@forward './
|
|
16
|
-
@forward './
|
|
17
|
-
@forward './
|
|
18
|
-
@forward './
|
|
19
|
-
@forward './
|
|
20
|
-
@forward './
|
|
21
|
-
@forward './
|
|
22
|
-
@forward './
|
|
23
|
-
@forward './
|
|
24
|
-
@forward './
|
|
25
|
-
@forward './
|
|
26
|
-
@forward './components/stepper' as stepper-*;
|
|
27
|
-
@forward './components/icon' as icon-*;
|
|
28
|
-
@forward './components/tooltip' as tooltip-*;
|
|
29
|
-
@forward './components/select' as select-*;
|
|
30
|
-
@forward './components/slider' as slider-*;
|
|
31
|
-
@forward './components/fab' as fab-*;
|
|
32
|
-
@forward './components/tree' as tree-*;
|
|
33
|
-
@forward './components/sort' as sort-*;
|
|
34
|
-
@forward './components/grid-list' as grid-list-*;
|
|
35
|
-
@forward './components/divider' as divider-*;
|
|
36
|
-
@forward './components/badge' as badge-*;
|
|
37
|
-
@forward './components/bottom-sheet' as bottom-sheet-*;
|
|
38
|
-
@forward './components/icon-button' as icon-button-*;
|
|
1
|
+
@forward './overrides/button' as button-*;
|
|
2
|
+
@forward './overrides/button-toggle' as button-toggle-*;
|
|
3
|
+
@forward './overrides/cards' as cards-*;
|
|
4
|
+
@forward './overrides/checkbox' as checkbox-*;
|
|
5
|
+
@forward './overrides/chips' as chips-*;
|
|
6
|
+
@forward './overrides/drag-and-drop' as drag-and-drop-*;
|
|
7
|
+
@forward './overrides/dialogs' as dialogs-*;
|
|
8
|
+
@forward './overrides/divider' as divider-*;
|
|
9
|
+
@forward './overrides/expansion' as expansion-*;
|
|
10
|
+
@forward './overrides/form-field' as form-field-*;
|
|
11
|
+
@forward './overrides/icon' as icon-*;
|
|
12
|
+
@forward './overrides/icon-button' as icon-button-*;
|
|
13
|
+
@forward './overrides/menu' as menu-*;
|
|
14
|
+
@forward './overrides/progress-bar' as progress-bar-*;
|
|
15
|
+
@forward './overrides/radio' as radio-*;
|
|
16
|
+
@forward './overrides/slide-toggle' as slide-toggle-*;
|
|
17
|
+
@forward './overrides/table' as tables-*;
|
|
18
|
+
@forward './overrides/tabs' as tabs-*;
|
|
19
|
+
@forward './overrides/input' as input-*;
|
|
20
|
+
@forward './overrides/stepper' as stepper-*;
|
|
21
|
+
@forward './overrides/icon' as icon-*;
|
|
22
|
+
@forward './overrides/tooltip' as tooltip-*;
|
|
23
|
+
@forward './overrides/toolbar' as toolbar-*;
|
|
24
|
+
@forward './overrides/select' as select-*;
|
|
25
|
+
@forward './overrides/fab' as fab-*;
|
|
39
26
|
|
|
40
27
|
@forward './utilities/variables' show $onemrva-theme;
|
|
41
28
|
@forward './utilities/variables' show $breakpoints;
|
|
@@ -45,169 +32,170 @@
|
|
|
45
32
|
@forward './utilities/grid' show grid;
|
|
46
33
|
@forward './utilities/utilities' show utilities;
|
|
47
34
|
|
|
48
|
-
|
|
35
|
+
// ------------------------------------------------------------
|
|
49
36
|
@use '@angular/material' as mat;
|
|
50
37
|
|
|
51
|
-
@use './
|
|
52
|
-
@use './
|
|
53
|
-
@use './
|
|
54
|
-
@use './components/icon-button';
|
|
55
|
-
@use './components/cards';
|
|
56
|
-
@use './components/checkbox';
|
|
57
|
-
@use './components/chips';
|
|
58
|
-
@use './components/choice-chips' as choice-chips;
|
|
59
|
-
@use './components/container';
|
|
60
|
-
@use './components/datepicker';
|
|
61
|
-
@use './components/dialogs';
|
|
62
|
-
@use './components/drag-and-drop' as drag-and-drop;
|
|
63
|
-
@use './components/expansion' as expansion;
|
|
64
|
-
@use './components/form-field' as form-field;
|
|
65
|
-
@use './components/links';
|
|
66
|
-
@use './components/hacks';
|
|
67
|
-
@use './components/lists';
|
|
68
|
-
@use './components/menu';
|
|
69
|
-
@use './components/progress-bar' as progress-bar;
|
|
70
|
-
@use './components/radio';
|
|
71
|
-
@use './components/snack-bar';
|
|
72
|
-
@use './components/sidenav';
|
|
73
|
-
@use './components/slider';
|
|
74
|
-
@use './components/slide-toggle' as slide-toggle;
|
|
75
|
-
@use './components/table';
|
|
76
|
-
@use './components/tabs';
|
|
77
|
-
@use './components/input' as input;
|
|
78
|
-
@use './components/stepper';
|
|
79
|
-
@use './components/icon';
|
|
80
|
-
@use './components/tooltip';
|
|
81
|
-
@use './components/select';
|
|
82
|
-
@use './components/toolbar';
|
|
83
|
-
@use './components/fab';
|
|
84
|
-
@use './components/tree';
|
|
85
|
-
@use './components/sort';
|
|
86
|
-
@use './components/grid-list';
|
|
87
|
-
@use './components/divider';
|
|
88
|
-
@use './components/badge';
|
|
89
|
-
@use './components/bottom-sheet';
|
|
90
|
-
|
|
38
|
+
@use './utilities/palettes' as palettes;
|
|
39
|
+
@use './utilities/tokens' as tokens;
|
|
40
|
+
@use './utilities/variables' as variables;
|
|
91
41
|
@use './utilities/utilities';
|
|
42
|
+
@use './utilities/animations';
|
|
92
43
|
@use './utilities/fonts';
|
|
93
44
|
@use './utilities/spacing';
|
|
94
45
|
@use './utilities/grid';
|
|
95
|
-
@use './utilities/
|
|
96
|
-
|
|
97
|
-
@
|
|
98
|
-
|
|
99
|
-
|
|
46
|
+
@use './utilities/container' as container;
|
|
47
|
+
|
|
48
|
+
@use 'overrides/button-toggle';
|
|
49
|
+
@use 'overrides/button';
|
|
50
|
+
@use 'overrides/checkbox';
|
|
51
|
+
@use 'overrides/cards';
|
|
52
|
+
@use 'overrides/carousel';
|
|
53
|
+
@use 'overrides/chips';
|
|
54
|
+
@use 'overrides/dialogs';
|
|
55
|
+
@use 'overrides/divider';
|
|
56
|
+
@use 'overrides/drag-and-drop';
|
|
57
|
+
@use 'overrides/expansion';
|
|
58
|
+
@use 'overrides/fab';
|
|
59
|
+
@use 'overrides/icon';
|
|
60
|
+
@use 'overrides/icon-button';
|
|
61
|
+
@use 'overrides/form-field';
|
|
62
|
+
@use 'overrides/menu';
|
|
63
|
+
@use 'overrides/progress-bar';
|
|
64
|
+
@use 'overrides/tabs';
|
|
65
|
+
@use 'overrides/radio';
|
|
66
|
+
@use 'overrides/select';
|
|
67
|
+
@use 'overrides/slide-toggle';
|
|
68
|
+
@use 'overrides/table';
|
|
69
|
+
@use 'overrides/layout';
|
|
70
|
+
@use 'overrides/tooltip';
|
|
71
|
+
@use 'overrides/toast';
|
|
72
|
+
@use 'overrides/toolbar';
|
|
73
|
+
@use 'overrides/toc';
|
|
74
|
+
@use 'overrides/stepper';
|
|
75
|
+
@use 'overrides/stickers';
|
|
76
|
+
|
|
77
|
+
@mixin onemrva() {
|
|
78
|
+
color-scheme: light dark;
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
|
|
82
|
+
&.dark-theme {
|
|
83
|
+
color-scheme: dark;
|
|
84
|
+
}
|
|
85
|
+
&.light-theme {
|
|
86
|
+
color-scheme: light;
|
|
87
|
+
}
|
|
100
88
|
|
|
101
|
-
@
|
|
89
|
+
@include fonts.theme();
|
|
90
|
+
@include layout.override();
|
|
91
|
+
@include utilities.utilities();
|
|
92
|
+
@include animations.animations();
|
|
102
93
|
@include spacing.spacing();
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@mixin grid-theme() {
|
|
106
94
|
@include grid.grid();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@mixin utilities-theme() {
|
|
110
|
-
@include utilities.utilities();
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/// Shortcut to load material core
|
|
114
|
-
@mixin core() {
|
|
115
|
-
@include mat.core();
|
|
116
|
-
@include mat.core-theme(variables.$onemrva-theme);
|
|
117
|
-
@include mat.core-base(variables.$onemrva-theme);
|
|
118
|
-
@include mat.typography-hierarchy(variables.$onemrva-theme);
|
|
119
|
-
}
|
|
120
95
|
|
|
121
|
-
@
|
|
122
|
-
|
|
123
|
-
|
|
96
|
+
@include mat.theme(
|
|
97
|
+
(
|
|
98
|
+
color: (
|
|
99
|
+
primary: palettes.$primary-palette,
|
|
100
|
+
tertiary: palettes.$tertiary-palette,
|
|
101
|
+
),
|
|
102
|
+
//typography: (
|
|
103
|
+
// use-system-variables: false,
|
|
104
|
+
// plain-family: Source Sans Pro,
|
|
105
|
+
// brand-family: Poppins,
|
|
106
|
+
// bold-weight: 900,
|
|
107
|
+
// medium-weight: 600,
|
|
108
|
+
// regular-weight: 400,
|
|
109
|
+
//),
|
|
110
|
+
//density: 0,
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
.mat-accent {
|
|
114
|
+
@include mat.theme(
|
|
115
|
+
(
|
|
116
|
+
color: (
|
|
117
|
+
primary: palettes.$secondary-palette,
|
|
118
|
+
),
|
|
119
|
+
)
|
|
120
|
+
);
|
|
124
121
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
h5,
|
|
135
|
-
h6 {
|
|
136
|
-
font-family: Poppins, sans-serif;
|
|
137
|
-
font-weight: 600;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
h5 {
|
|
141
|
-
font-size: 18px;
|
|
142
|
-
line-height: 32px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
h6 {
|
|
146
|
-
font-size: 16px;
|
|
147
|
-
line-height: 28px;
|
|
148
|
-
}
|
|
122
|
+
.mat-success {
|
|
123
|
+
@include mat.theme(
|
|
124
|
+
(
|
|
125
|
+
color: (
|
|
126
|
+
primary: palettes.$success-palette,
|
|
127
|
+
),
|
|
128
|
+
)
|
|
129
|
+
);
|
|
149
130
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
@include
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
@include
|
|
192
|
-
@include
|
|
193
|
-
@include
|
|
194
|
-
@include
|
|
195
|
-
@include
|
|
196
|
-
@include
|
|
197
|
-
@include
|
|
198
|
-
@include
|
|
199
|
-
@include
|
|
200
|
-
@include
|
|
201
|
-
@include
|
|
202
|
-
@include
|
|
203
|
-
@include
|
|
204
|
-
|
|
205
|
-
@include
|
|
206
|
-
@include
|
|
207
|
-
@include
|
|
208
|
-
|
|
209
|
-
@include
|
|
210
|
-
@include
|
|
211
|
-
@include
|
|
212
|
-
@include
|
|
131
|
+
.mat-error {
|
|
132
|
+
@include mat.theme(
|
|
133
|
+
(
|
|
134
|
+
color: (
|
|
135
|
+
primary: palettes.$error-palette,
|
|
136
|
+
),
|
|
137
|
+
)
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
.mat-warn {
|
|
141
|
+
@include mat.theme(
|
|
142
|
+
(
|
|
143
|
+
color: (
|
|
144
|
+
primary: palettes.$warn-palette,
|
|
145
|
+
),
|
|
146
|
+
)
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
.mat-info {
|
|
150
|
+
@include mat.theme(
|
|
151
|
+
(
|
|
152
|
+
color: (
|
|
153
|
+
primary: palettes.$info-palette,
|
|
154
|
+
),
|
|
155
|
+
)
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
.mat-grayscale,
|
|
159
|
+
.mdc-checkbox--disabled,
|
|
160
|
+
.mat-neutral {
|
|
161
|
+
@include mat.theme(
|
|
162
|
+
(
|
|
163
|
+
color: (
|
|
164
|
+
primary: palettes.$neutral-palette,
|
|
165
|
+
),
|
|
166
|
+
)
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
@include container.theme(variables.$breakpoints);
|
|
170
|
+
|
|
171
|
+
@include button.override();
|
|
172
|
+
@include button-toggle.override();
|
|
173
|
+
@include checkbox.override();
|
|
174
|
+
@include cards.override();
|
|
175
|
+
@include chips.override();
|
|
176
|
+
@include carousel.override();
|
|
177
|
+
@include dialogs.override();
|
|
178
|
+
@include divider.override();
|
|
179
|
+
@include drag-and-drop.override();
|
|
180
|
+
@include expansion.override();
|
|
181
|
+
@include form-field.override();
|
|
182
|
+
@include fab.override();
|
|
183
|
+
@include icon.override();
|
|
184
|
+
@include icon-button.override();
|
|
185
|
+
@include menu.override();
|
|
186
|
+
@include progress-bar.override();
|
|
187
|
+
@include radio.override();
|
|
188
|
+
@include select.override();
|
|
189
|
+
@include slide-toggle.override();
|
|
190
|
+
@include table.override();
|
|
191
|
+
@include tabs.override();
|
|
192
|
+
@include toast.override();
|
|
193
|
+
@include toolbar.override();
|
|
194
|
+
@include tooltip.override();
|
|
195
|
+
@include toc.override();
|
|
196
|
+
@include toolbar.override();
|
|
197
|
+
@include stepper.override();
|
|
198
|
+
@include stickers.override();
|
|
199
|
+
|
|
200
|
+
@include tokens.theme();
|
|
213
201
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@mixin override() {
|
|
4
|
+
@include mat.button-toggle-overrides(
|
|
5
|
+
(
|
|
6
|
+
selected-state-background-color: var(--mat-sys-primary),
|
|
7
|
+
selected-state-text-color: var(--mat-sys-on-primary),
|
|
8
|
+
height: 36px,
|
|
9
|
+
label-text-font: var(--brand-font),
|
|
10
|
+
label-text-size: 1rem,
|
|
11
|
+
label-text-weight: 600,
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use '../utilities/variables' as variables;
|
|
3
|
+
|
|
4
|
+
@mixin override() {
|
|
5
|
+
@include mat.button-overrides(
|
|
6
|
+
(
|
|
7
|
+
outlined-outline-color: var(--mat-sys-primary),
|
|
8
|
+
outlined-label-text-color: var(--mat-sys-primary),
|
|
9
|
+
outlined-outline-width: 2px,
|
|
10
|
+
outlined-container-height: 2.25rem,
|
|
11
|
+
outlined-label-text-font: Poppins,
|
|
12
|
+
outlined-label-text-size: 1rem,
|
|
13
|
+
outlined-label-text-weight: 500,
|
|
14
|
+
outlined-hover-state-layer-opacity: 0,
|
|
15
|
+
outlined-focus-state-layer-opacity: 0,
|
|
16
|
+
outlined-pressed-state-layer-opacity: 0,
|
|
17
|
+
filled-horizontal-padding: var(--double-spacer),
|
|
18
|
+
filled-container-height: 2.25rem,
|
|
19
|
+
filled-label-text-color: var(--on-background-gradient),
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
button.mdc-button {
|
|
23
|
+
transition: all 1s ease;
|
|
24
|
+
|
|
25
|
+
&:focus-visible:not(:active) {
|
|
26
|
+
&:not(.mat-mdc-outlined-button) {
|
|
27
|
+
@include nsOutline(-1px);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.mat-mdc-outlined-button {
|
|
31
|
+
@include nsOutline(-3px);
|
|
32
|
+
|
|
33
|
+
&.small {
|
|
34
|
+
@include nsOutline(-2px);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&:after {
|
|
38
|
+
outline: 5px solid var(--mat-sys-primary-fixed-dim);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&.mat-mdc-unelevated-button:not(:disabled) {
|
|
42
|
+
background: var(--background-gradient);
|
|
43
|
+
.onemrva-spinner {
|
|
44
|
+
svg {
|
|
45
|
+
fill: white;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
&:hover,
|
|
49
|
+
&:active {
|
|
50
|
+
box-shadow: var(--mat-sys-level2);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
&.mdc-button--outlined {
|
|
54
|
+
background: var(--mat-sys-surface);
|
|
55
|
+
}
|
|
56
|
+
&.mat-mdc-button-disabled {
|
|
57
|
+
.onemrva-spinner {
|
|
58
|
+
svg {
|
|
59
|
+
fill: white;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
onemrva-mat-spinner {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.has-spinner {
|
|
68
|
+
.mdc-button__label {
|
|
69
|
+
margin-left: 20px;
|
|
70
|
+
}
|
|
71
|
+
onemrva-mat-spinner {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
onemrva-mat-spinner {
|
|
76
|
+
.onemrva-spinner {
|
|
77
|
+
svg {
|
|
78
|
+
height: 18px !important;
|
|
79
|
+
width: 18px !important;
|
|
80
|
+
margin-left: 8px;
|
|
81
|
+
|
|
82
|
+
top: 17px !important;
|
|
83
|
+
left: 37px !important;
|
|
84
|
+
transform: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&.small {
|
|
89
|
+
@include mat.button-overrides(
|
|
90
|
+
(
|
|
91
|
+
outlined-outline-width: 1px,
|
|
92
|
+
outlined-container-height: 24px,
|
|
93
|
+
outlined-label-text-size: 0.8rem,
|
|
94
|
+
outlined-horizontal-padding: 12px,
|
|
95
|
+
filled-container-height: 24px,
|
|
96
|
+
filled-label-text-size: 0.8rem,
|
|
97
|
+
text-horizontal-padding: 12px,
|
|
98
|
+
text-container-height: 24px,
|
|
99
|
+
text-label-text-size: 0.8rem,
|
|
100
|
+
)
|
|
101
|
+
);
|
|
102
|
+
mat-icon {
|
|
103
|
+
height: auto;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@mixin nsOutline($shift) {
|
|
110
|
+
&:after {
|
|
111
|
+
position: absolute;
|
|
112
|
+
content: '';
|
|
113
|
+
top: $shift;
|
|
114
|
+
left: $shift;
|
|
115
|
+
right: $shift;
|
|
116
|
+
bottom: $shift;
|
|
117
|
+
border: 1px solid transparent;
|
|
118
|
+
border-radius: 500px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../utilities/variables' as variables;
|
|
4
|
+
|
|
5
|
+
@mixin override() {
|
|
6
|
+
@include mat.checkbox-overrides(
|
|
7
|
+
(
|
|
8
|
+
selected-icon-color: var(--mat-sys-primary),
|
|
9
|
+
selected-pressed-icon-color: var(--mat-sys-primary),
|
|
10
|
+
selected-focus-icon-color: var(--mat-sys-primary),
|
|
11
|
+
selected-focus-state-layer-color: var(--mat-sys-primary),
|
|
12
|
+
selected-hover-state-layer-color: var(--mat-sys-primary),
|
|
13
|
+
selected-pressed-state-layer-color: var(--mat-sys-primary),
|
|
14
|
+
label-text-font: var(--mat-sys-label-large-font),
|
|
15
|
+
label-text-size: var(--mat-sys-label-large-size),
|
|
16
|
+
label-text-weight: var(--mat-sys-label-large-weight),
|
|
17
|
+
label-text-line-height: var(--mat-sys-label-large-height),
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
.mat-mdc-checkbox {
|
|
22
|
+
.mdc-checkbox__native-control:enabled:checked,
|
|
23
|
+
.mdc-checkbox__native-control:enabled:indeterminate {
|
|
24
|
+
~ .mdc-checkbox__background {
|
|
25
|
+
background: var(--background-gradient);
|
|
26
|
+
border: 2px solid var(--mat-sys-secondary);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// strangely, the overrides don't work when it's pre-checked
|
|
31
|
+
&.mat-success {
|
|
32
|
+
.mdc-checkbox__native-control:enabled:checked,
|
|
33
|
+
.mdc-checkbox__native-control:enabled:indeterminate {
|
|
34
|
+
~ .mdc-checkbox__background {
|
|
35
|
+
background: var(--mat-sys-primary);
|
|
36
|
+
border: 2px solid var(--mat-sys-primary);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use '../utilities/variables' as variables;
|
|
3
|
+
|
|
4
|
+
@mixin override() {
|
|
5
|
+
@include mat.chips-overrides(
|
|
6
|
+
(
|
|
7
|
+
container-shape-radius: var(--button-border-radius),
|
|
8
|
+
outline-color: var(--mat-sys-primary),
|
|
9
|
+
elevated-container-color: var(--mat-sys-primary-container),
|
|
10
|
+
container-height: 38px,
|
|
11
|
+
label-text-color: var(--mat-sys-primary),
|
|
12
|
+
label-text-font: var(--mat-sys-label-large-font),
|
|
13
|
+
label-text-size: var(--mat-sys-label-large-size),
|
|
14
|
+
label-text-line-height: var(--mat-sys-label-large-height),
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
mat-chip-option,
|
|
18
|
+
mat-chip {
|
|
19
|
+
&.mat-accent {
|
|
20
|
+
background: var(--background-gradient);
|
|
21
|
+
@include mat.chips-overrides(
|
|
22
|
+
(
|
|
23
|
+
outline-color: var(--mat-sys-secondary),
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
.mat-mdc-chip-action-label {
|
|
27
|
+
color: var(--on-background-gradient);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.mat-error {
|
|
31
|
+
background: var(--mat-sys-primary-container);
|
|
32
|
+
@include mat.chips-overrides(
|
|
33
|
+
(
|
|
34
|
+
outline-color: var(--mat-sys-primary),
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
.mat-mdc-chip-action-label {
|
|
38
|
+
color: var(--mat-sys-primary);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|