@ecodev/natural 68.0.4 → 68.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ecodev-natural.mjs +2 -1
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/_natural.scss +7 -228
- package/src/lib/styles/backgrounds.scss +164 -0
- package/src/lib/styles/buttons.scss +106 -0
- package/src/lib/styles/fab.scss +79 -0
- package/src/lib/styles/icons.scss +56 -0
- package/src/lib/styles/material-overrides.scss +1 -10
- package/src/lib/styles/color.scss +0 -152
package/package.json
CHANGED
package/src/lib/_natural.scss
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use './styles/color.scss';
|
|
4
3
|
@use './styles/margins.scss';
|
|
5
4
|
@use './styles/material-scrolling-fixes.scss';
|
|
6
5
|
@use './styles/table.scss';
|
|
7
6
|
@use './styles/typography.scss';
|
|
7
|
+
@use 'styles/buttons';
|
|
8
|
+
@use './styles/fab.scss';
|
|
9
|
+
@use './styles/icons.scss';
|
|
10
|
+
@use './styles/backgrounds.scss';
|
|
8
11
|
@use './styles/material-overrides.scss';
|
|
9
12
|
@use './modules/panels/panels.scss';
|
|
10
13
|
@use './modules/sidenav/sidenav.scss';
|
|
@@ -58,179 +61,18 @@ body {
|
|
|
58
61
|
font: var(--mat-sys-body-medium);
|
|
59
62
|
|
|
60
63
|
--nat-elevation: inset 0 1px rgba(255, 255, 255, 0.3), var(--mat-sys-level1);
|
|
61
|
-
--nat-gradient-primary: var(--mat-sys-primary-container);
|
|
62
|
-
--nat-gradient-secondary: var(--mat-sys-secondary-container);
|
|
63
|
-
--nat-gradient-tertiary: var(--mat-sys-tertiary-container);
|
|
64
|
-
--nat-gradient-error: var(--mat-sys-error);
|
|
65
|
-
--nat-good: rgb(0, 175, 0, 1);
|
|
66
|
-
--nat-on-good: white;
|
|
67
|
-
--nat-gradient-good: var(--nat-good);
|
|
68
|
-
--nat-gradient-inverse-surface: var(--mat-sys-inverse-surface);
|
|
69
|
-
--nat-dark-fixed: #343434;
|
|
70
|
-
--nat-on-dark-fixed: #f8f8f8;
|
|
71
|
-
--nat-bad: rgb(200, 11, 11);
|
|
72
|
-
--nat-on-bad: white;
|
|
73
|
-
--nat-gradient-bad: var(--nat-bad);
|
|
74
|
-
--nat-link-color: var(--mat-sys-on-surface);
|
|
75
|
-
|
|
76
|
-
@supports (color: color-mix(in srgb, red, blue)) {
|
|
77
|
-
--nat-link-color: color-mix(in srgb, var(--mat-sys-primary-container) 80%, var(--mat-sys-on-surface));
|
|
78
|
-
|
|
79
|
-
--nat-gradient-primary: linear-gradient(
|
|
80
|
-
175deg,
|
|
81
|
-
color-mix(in srgb, var(--mat-sys-primary-container) 95%, white),
|
|
82
|
-
color-mix(in srgb, var(--mat-sys-primary-container) 90%, black)
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
--nat-gradient-secondary: linear-gradient(
|
|
86
|
-
175deg,
|
|
87
|
-
color-mix(in srgb, var(--mat-sys-secondary-container) 95%, white),
|
|
88
|
-
color-mix(in srgb, var(--mat-sys-secondary-container) 90%, black)
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
--nat-gradient-tertiary: linear-gradient(
|
|
92
|
-
175deg,
|
|
93
|
-
color-mix(in srgb, var(--mat-sys-tertiary-container) 95%, white),
|
|
94
|
-
color-mix(in srgb, var(--mat-sys-tertiary-container) 90%, black)
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
--nat-gradient-error: linear-gradient(
|
|
98
|
-
175deg,
|
|
99
|
-
color-mix(in srgb, var(--mat-sys-error) 95%, white),
|
|
100
|
-
color-mix(in srgb, var(--mat-sys-error) 90%, black)
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
--nat-gradient-good: linear-gradient(
|
|
104
|
-
175deg,
|
|
105
|
-
color-mix(in srgb, var(--nat-good) 95%, white),
|
|
106
|
-
color-mix(in srgb, var(--nat-good) 90%, black)
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
--nat-gradient-inverse-surface: linear-gradient(
|
|
110
|
-
175deg,
|
|
111
|
-
color-mix(in srgb, var(--mat-sys-inverse-surface) 95%, white),
|
|
112
|
-
color-mix(in srgb, var(--mat-sys-inverse-surface) 90%, black)
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
--nat-gradient-bad: linear-gradient(
|
|
116
|
-
175deg,
|
|
117
|
-
color-mix(in srgb, var(--nat-bad) 60%, white),
|
|
118
|
-
color-mix(in srgb, var(--nat-bad) 90%, black)
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
--nat-gradient-dark-fixed: linear-gradient(
|
|
122
|
-
175deg,
|
|
123
|
-
color-mix(in srgb, var(--nat-dark-fixed) 90%, white),
|
|
124
|
-
color-mix(in srgb, var(--nat-dark-fixed) 90%, black)
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
64
|
}
|
|
128
65
|
|
|
129
66
|
.nat-elevation {
|
|
130
67
|
box-shadow: var(--nat-elevation);
|
|
131
68
|
}
|
|
132
69
|
|
|
133
|
-
.nat-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
&-rounded {
|
|
137
|
-
border-radius: var(--mat-sys-corner-small);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&-neutral1 {
|
|
141
|
-
background-color: var(--mat-sys-neutral10) !important;
|
|
142
|
-
color: var(--mat-sys-on-surface) !important;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&-neutral2 {
|
|
146
|
-
background-color: var(--mat-sys-neutral-variant20) !important;
|
|
147
|
-
color: var(--mat-sys-on-surface) !important;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&-primary {
|
|
151
|
-
background-color: var(--mat-sys-primary-container) !important;
|
|
152
|
-
color: var(--mat-sys-on-primary-container) !important;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&-secondary {
|
|
156
|
-
background-color: var(--mat-sys-secondary-container) !important;
|
|
157
|
-
color: var(--mat-sys-on-secondary-container) !important;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&-tertiary {
|
|
161
|
-
background-color: var(--mat-sys-tertiary-container) !important;
|
|
162
|
-
color: var(--mat-sys-on-tertiary-container) !important;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&-error {
|
|
166
|
-
background-color: var(--mat-sys-error) !important;
|
|
167
|
-
color: var(--mat-sys-on-error) !important;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&-dark-fixed {
|
|
171
|
-
background-color: var(--nat-dark-fixed) !important;
|
|
172
|
-
color: var(--nat-on-dark-fixed) !important;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.nat-text {
|
|
177
|
-
&-primary {
|
|
178
|
-
color: var(--mat-sys-primary-container);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
&-accent {
|
|
182
|
-
color: var(--mat-sys-tertiary-container);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&-error {
|
|
186
|
-
color: var(--mat-sys-error-container);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.nat-gradient {
|
|
191
|
-
&-primary {
|
|
192
|
-
background: var(--nat-gradient-primary) !important;
|
|
193
|
-
color: var(--mat-sys-on-primary-container) !important;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&-secondary {
|
|
197
|
-
background: var(--nat-gradient-secondary) !important;
|
|
198
|
-
color: var(--mat-sys-on-secondary-container) !important;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&-tertiary {
|
|
202
|
-
background: var(--nat-gradient-tertiary) !important;
|
|
203
|
-
color: var(--mat-sys-on-tertiary-container) !important;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&-error {
|
|
207
|
-
background: var(--nat-gradient-error) !important;
|
|
208
|
-
color: var(--mat-sys-on-error) !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&-good {
|
|
212
|
-
background: var(--nat-gradient-good) !important;
|
|
213
|
-
color: var(--nat-on-good) !important;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&-bad {
|
|
217
|
-
background: var(--nat-gradient-bad) !important;
|
|
218
|
-
color: var(--nat-on-bad) !important;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&-inverse-surface {
|
|
222
|
-
background: var(--nat-gradient-inverse-surface) !important;
|
|
223
|
-
color: var(--mat-sys-inverse-on-surface) !important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&-dark-fixed {
|
|
227
|
-
background: var(--nat-gradient-dark-fixed) !important;
|
|
228
|
-
color: var(--nat-on-dark-fixed) !important;
|
|
229
|
-
}
|
|
70
|
+
.nat-bold {
|
|
71
|
+
font-weight: 500;
|
|
230
72
|
}
|
|
231
73
|
|
|
232
74
|
// Most of our sidenav menus (mainly in admin) use simple nat-gradient-* that applies a contrasted text color
|
|
233
|
-
// that is overridden on child element
|
|
75
|
+
// that is overridden by material on child element
|
|
234
76
|
// This instruction activate text color inheritance to simplify html and css for active routes.
|
|
235
77
|
.mat-mdc-list-item {
|
|
236
78
|
&[routerlinkactive*='nat-frame-'],
|
|
@@ -241,66 +83,3 @@ body {
|
|
|
241
83
|
}
|
|
242
84
|
}
|
|
243
85
|
}
|
|
244
|
-
|
|
245
|
-
.nat-bold {
|
|
246
|
-
font-weight: 500;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// In fab speed dials, mini fabs are tertiary as well as default fab buttons
|
|
250
|
-
eco-fab-speed-dial .mdc-fab {
|
|
251
|
-
@include mat.fab-overrides(
|
|
252
|
-
(
|
|
253
|
-
container-color: var(--mat-sys-tertiary-container),
|
|
254
|
-
foreground-color: var(--mat-sys-on-tertiary-container),
|
|
255
|
-
small-container-color: var(--mat-sys-tertiary-container),
|
|
256
|
-
small-foreground-color: var(--mat-sys-on-tertiary-container),
|
|
257
|
-
)
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.mdc-fab,
|
|
262
|
-
.mdc-mini-fab {
|
|
263
|
-
&.nat-rounded {
|
|
264
|
-
@include mat.fab-overrides(
|
|
265
|
-
(
|
|
266
|
-
container-shape: var(--mat-sys-corner-full),
|
|
267
|
-
extended-container-shape: var(--mat-sys-corner-full),
|
|
268
|
-
small-container-shape: var(--mat-sys-corner-full),
|
|
269
|
-
)
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&.nat-flat {
|
|
274
|
-
@include mat.fab-overrides(
|
|
275
|
-
(
|
|
276
|
-
container-elevation-shadow: 0,
|
|
277
|
-
focus-container-elevation-shadow: 0,
|
|
278
|
-
hover-container-elevation-shadow: 0,
|
|
279
|
-
extended-container-elevation-shadow: 0,
|
|
280
|
-
extended-focus-container-elevation-shadow: 0,
|
|
281
|
-
extended-hover-container-elevation-shadow: 0,
|
|
282
|
-
small-container-elevation-shadow: 0,
|
|
283
|
-
small-focus-container-elevation-shadow: 0,
|
|
284
|
-
small-hover-container-elevation-shadow: 0,
|
|
285
|
-
)
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
app-support a,
|
|
291
|
-
.rich-text a,
|
|
292
|
-
a.app-link {
|
|
293
|
-
cursor: pointer;
|
|
294
|
-
border-bottom-width: 2px;
|
|
295
|
-
border-bottom-style: solid;
|
|
296
|
-
border-color: var(--mat-sys-primary-container);
|
|
297
|
-
color: var(--nat-link-color);
|
|
298
|
-
text-decoration: none;
|
|
299
|
-
|
|
300
|
-
&:hover {
|
|
301
|
-
@supports (color: color-mix(in srgb, red, blue)) {
|
|
302
|
-
border-color: color-mix(in srgb, var(--mat-sys-primary-container) 85%, black);
|
|
303
|
-
color: color-mix(in srgb, var(--mat-sys-primary-container) 85%, black);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--nat-gradient-primary: var(--mat-sys-primary-container);
|
|
3
|
+
--nat-gradient-secondary: var(--mat-sys-secondary-container);
|
|
4
|
+
--nat-gradient-tertiary: var(--mat-sys-tertiary-container);
|
|
5
|
+
--nat-gradient-error: var(--mat-sys-error);
|
|
6
|
+
--nat-good: rgb(0, 175, 0, 1);
|
|
7
|
+
--nat-on-good: white;
|
|
8
|
+
--nat-gradient-good: var(--nat-good);
|
|
9
|
+
--nat-gradient-inverse-surface: var(--mat-sys-inverse-surface);
|
|
10
|
+
--nat-dark-fixed: #343434;
|
|
11
|
+
--nat-on-dark-fixed: #f8f8f8;
|
|
12
|
+
--nat-bad: rgb(200, 11, 11);
|
|
13
|
+
--nat-on-bad: white;
|
|
14
|
+
--nat-gradient-bad: var(--nat-bad);
|
|
15
|
+
|
|
16
|
+
@supports (color: color-mix(in srgb, red, blue)) {
|
|
17
|
+
--nat-gradient-primary: linear-gradient(
|
|
18
|
+
175deg,
|
|
19
|
+
color-mix(in srgb, var(--mat-sys-primary-container) 95%, white),
|
|
20
|
+
color-mix(in srgb, var(--mat-sys-primary-container) 90%, black)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
--nat-gradient-secondary: linear-gradient(
|
|
24
|
+
175deg,
|
|
25
|
+
color-mix(in srgb, var(--mat-sys-secondary-container) 95%, white),
|
|
26
|
+
color-mix(in srgb, var(--mat-sys-secondary-container) 90%, black)
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
--nat-gradient-tertiary: linear-gradient(
|
|
30
|
+
175deg,
|
|
31
|
+
color-mix(in srgb, var(--mat-sys-tertiary-container) 95%, white),
|
|
32
|
+
color-mix(in srgb, var(--mat-sys-tertiary-container) 90%, black)
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
--nat-gradient-error: linear-gradient(
|
|
36
|
+
175deg,
|
|
37
|
+
color-mix(in srgb, var(--mat-sys-error) 95%, white),
|
|
38
|
+
color-mix(in srgb, var(--mat-sys-error) 90%, black)
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
--nat-gradient-good: linear-gradient(
|
|
42
|
+
175deg,
|
|
43
|
+
color-mix(in srgb, var(--nat-good) 95%, white),
|
|
44
|
+
color-mix(in srgb, var(--nat-good) 90%, black)
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
--nat-gradient-inverse-surface: linear-gradient(
|
|
48
|
+
175deg,
|
|
49
|
+
color-mix(in srgb, var(--mat-sys-inverse-surface) 95%, white),
|
|
50
|
+
color-mix(in srgb, var(--mat-sys-inverse-surface) 90%, black)
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
--nat-gradient-bad: linear-gradient(
|
|
54
|
+
175deg,
|
|
55
|
+
color-mix(in srgb, var(--nat-bad) 60%, white),
|
|
56
|
+
color-mix(in srgb, var(--nat-bad) 90%, black)
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
--nat-gradient-dark-fixed: linear-gradient(
|
|
60
|
+
175deg,
|
|
61
|
+
color-mix(in srgb, var(--nat-dark-fixed) 90%, white),
|
|
62
|
+
color-mix(in srgb, var(--nat-dark-fixed) 90%, black)
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nat-frame {
|
|
68
|
+
padding: 6px;
|
|
69
|
+
|
|
70
|
+
&-rounded {
|
|
71
|
+
border-radius: var(--mat-sys-corner-small);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-neutral1 {
|
|
75
|
+
background-color: var(--mat-sys-neutral10) !important;
|
|
76
|
+
color: var(--mat-sys-on-surface) !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-neutral2 {
|
|
80
|
+
background-color: var(--mat-sys-neutral-variant20) !important;
|
|
81
|
+
color: var(--mat-sys-on-surface) !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&-primary {
|
|
85
|
+
background-color: var(--mat-sys-primary-container) !important;
|
|
86
|
+
color: var(--mat-sys-on-primary-container) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-secondary {
|
|
90
|
+
background-color: var(--mat-sys-secondary-container) !important;
|
|
91
|
+
color: var(--mat-sys-on-secondary-container) !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-tertiary {
|
|
95
|
+
background-color: var(--mat-sys-tertiary-container) !important;
|
|
96
|
+
color: var(--mat-sys-on-tertiary-container) !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&-error {
|
|
100
|
+
background-color: var(--mat-sys-error) !important;
|
|
101
|
+
color: var(--mat-sys-on-error) !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-dark-fixed {
|
|
105
|
+
background-color: var(--nat-dark-fixed) !important;
|
|
106
|
+
color: var(--nat-on-dark-fixed) !important;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.nat-text {
|
|
111
|
+
&-primary {
|
|
112
|
+
color: var(--mat-sys-primary-container);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-accent {
|
|
116
|
+
color: var(--mat-sys-tertiary-container);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-error {
|
|
120
|
+
color: var(--mat-sys-error-container);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nat-gradient {
|
|
125
|
+
&-primary {
|
|
126
|
+
background: var(--nat-gradient-primary) !important;
|
|
127
|
+
color: var(--mat-sys-on-primary-container) !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-secondary {
|
|
131
|
+
background: var(--nat-gradient-secondary) !important;
|
|
132
|
+
color: var(--mat-sys-on-secondary-container) !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-tertiary {
|
|
136
|
+
background: var(--nat-gradient-tertiary) !important;
|
|
137
|
+
color: var(--mat-sys-on-tertiary-container) !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&-error {
|
|
141
|
+
background: var(--nat-gradient-error) !important;
|
|
142
|
+
color: var(--mat-sys-on-error) !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&-good {
|
|
146
|
+
background: var(--nat-gradient-good) !important;
|
|
147
|
+
color: var(--nat-on-good) !important;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&-bad {
|
|
151
|
+
background: var(--nat-gradient-bad) !important;
|
|
152
|
+
color: var(--nat-on-bad) !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&-inverse-surface {
|
|
156
|
+
background: var(--nat-gradient-inverse-surface) !important;
|
|
157
|
+
color: var(--mat-sys-inverse-on-surface) !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-dark-fixed {
|
|
161
|
+
background: var(--nat-gradient-dark-fixed) !important;
|
|
162
|
+
color: var(--nat-on-dark-fixed) !important;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
--nat-primary-link-color: var(--mat-sys-primary-container);
|
|
5
|
+
--nat-tertiary-link-color: var(--mat-sys-tertiary-container);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
app-support a,
|
|
9
|
+
.rich-text a,
|
|
10
|
+
a.app-link {
|
|
11
|
+
&:not(.mdc-button) {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border-bottom-width: 2px;
|
|
14
|
+
border-bottom-style: solid;
|
|
15
|
+
border-color: var(--mat-sys-primary-container);
|
|
16
|
+
color: var(--nat-primary-link-color);
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
@supports (color: color-mix(in srgb, red, blue)) {
|
|
21
|
+
border-color: color-mix(in srgb, var(--mat-sys-primary-container) 85%, black);
|
|
22
|
+
color: color-mix(in srgb, var(--mat-sys-primary-container) 85%, black);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mdc-button {
|
|
29
|
+
@include mat.button-overrides(
|
|
30
|
+
(
|
|
31
|
+
protected-container-color: rgba(0, 0, 0, 0.08),
|
|
32
|
+
outlined-label-text-color: var(--nat-primary-link-color),
|
|
33
|
+
text-label-text-color: var(--nat-primary-link-color),
|
|
34
|
+
filled-container-color: var(--nat-components-primary),
|
|
35
|
+
filled-label-text-color: var(--mat-sys-on-primary-container),
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
&.mat-error,
|
|
40
|
+
&[color='error'] {
|
|
41
|
+
@include mat.button-overrides(
|
|
42
|
+
(
|
|
43
|
+
text-label-text-color: var(--mat-sys-error-container),
|
|
44
|
+
filled-container-color: var(--mat-sys-error-container),
|
|
45
|
+
filled-label-text-color: var(--mat-sys-on-error-container),
|
|
46
|
+
tonal-label-text-color: var(--mat-sys-error-container),
|
|
47
|
+
tonal-container-color: var(--mat-sys-error-container),
|
|
48
|
+
protected-label-text-color: var(--mat-sys-error-container),
|
|
49
|
+
outlined-label-text-color: var(--mat-sys-error-container),
|
|
50
|
+
text-state-layer-color: var(--mat-sys-error-container),
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
@supports (color: color-mix(in srgb, red, blue)) {
|
|
55
|
+
@include mat.button-overrides(
|
|
56
|
+
(
|
|
57
|
+
tonal-label-text-color: color-mix(
|
|
58
|
+
in srgb,
|
|
59
|
+
var(--mat-sys-error-container) 50%,
|
|
60
|
+
var(--mat-sys-on-surface)
|
|
61
|
+
),
|
|
62
|
+
tonal-container-color: color-mix(in srgb, var(--mat-sys-error-container) 33%, transparent),
|
|
63
|
+
protected-label-text-color: color-mix(
|
|
64
|
+
in srgb,
|
|
65
|
+
var(--mat-sys-error-container) 50%,
|
|
66
|
+
var(--mat-sys-on-surface)
|
|
67
|
+
),
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.mat-tertiary,
|
|
74
|
+
&[color='tertiary'] {
|
|
75
|
+
@include mat.button-overrides(
|
|
76
|
+
(
|
|
77
|
+
text-label-text-color: var(--nat-tertiary-link-color),
|
|
78
|
+
filled-container-color: var(--mat-sys-tertiary-container),
|
|
79
|
+
filled-label-text-color: var(--mat-sys-on-tertiary-container),
|
|
80
|
+
tonal-label-text-color: var(--nat-tertiary-link-color),
|
|
81
|
+
tonal-container-color: var(--mat-sys-tertiary-container),
|
|
82
|
+
protected-label-text-color: var(--nat-tertiary-link-color),
|
|
83
|
+
outlined-label-text-color: var(--nat-tertiary-link-color),
|
|
84
|
+
text-state-layer-color: var(--mat-sys-tertiary-container),
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
@supports (color: color-mix(in srgb, red, blue)) {
|
|
89
|
+
@include mat.button-overrides(
|
|
90
|
+
(
|
|
91
|
+
tonal-label-text-color: color-mix(
|
|
92
|
+
in srgb,
|
|
93
|
+
var(--mat-sys-tertiary-container) 33%,
|
|
94
|
+
var(--mat-sys-on-surface)
|
|
95
|
+
),
|
|
96
|
+
tonal-container-color: color-mix(in srgb, var(--mat-sys-tertiary-container) 33%, transparent),
|
|
97
|
+
protected-label-text-color: color-mix(
|
|
98
|
+
in srgb,
|
|
99
|
+
var(--mat-sys-tertiary-container) 50%,
|
|
100
|
+
var(--mat-sys-on-surface)
|
|
101
|
+
),
|
|
102
|
+
)
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
// In fab speed dials, mini fabs are tertiary as well as default fab buttons
|
|
4
|
+
eco-fab-speed-dial {
|
|
5
|
+
.mdc-fab {
|
|
6
|
+
@include mat.fab-overrides(
|
|
7
|
+
(
|
|
8
|
+
container-color: var(--mat-sys-tertiary-container),
|
|
9
|
+
foreground-color: var(--mat-sys-on-tertiary-container),
|
|
10
|
+
small-container-color: var(--mat-sys-tertiary-container),
|
|
11
|
+
small-foreground-color: var(--mat-sys-on-tertiary-container),
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mdc-fab,
|
|
18
|
+
.mdc-mini-fab {
|
|
19
|
+
&.nat-rounded {
|
|
20
|
+
@include mat.fab-overrides(
|
|
21
|
+
(
|
|
22
|
+
container-shape: var(--mat-sys-corner-full),
|
|
23
|
+
extended-container-shape: var(--mat-sys-corner-full),
|
|
24
|
+
small-container-shape: var(--mat-sys-corner-full),
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.nat-flat {
|
|
30
|
+
@include mat.fab-overrides(
|
|
31
|
+
(
|
|
32
|
+
container-elevation-shadow: 0,
|
|
33
|
+
focus-container-elevation-shadow: 0,
|
|
34
|
+
hover-container-elevation-shadow: 0,
|
|
35
|
+
extended-container-elevation-shadow: 0,
|
|
36
|
+
extended-focus-container-elevation-shadow: 0,
|
|
37
|
+
extended-hover-container-elevation-shadow: 0,
|
|
38
|
+
small-container-elevation-shadow: 0,
|
|
39
|
+
small-focus-container-elevation-shadow: 0,
|
|
40
|
+
small-hover-container-elevation-shadow: 0,
|
|
41
|
+
)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.mat-primary,
|
|
46
|
+
&[color='primary'] {
|
|
47
|
+
@include mat.fab-overrides(
|
|
48
|
+
(
|
|
49
|
+
container-color: var(--mat-sys-primary-container),
|
|
50
|
+
foreground-color: var(--mat-sys-on-primary-container),
|
|
51
|
+
small-container-color: var(--mat-sys-primary-container),
|
|
52
|
+
small-foreground-color: var(--mat-sys-on-primary-container),
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.mat-error,
|
|
58
|
+
&[color='error'] {
|
|
59
|
+
@include mat.fab-overrides(
|
|
60
|
+
(
|
|
61
|
+
container-color: var(--mat-sys-error-container),
|
|
62
|
+
foreground-color: var(--mat-sys-on-error-container),
|
|
63
|
+
small-container-color: var(--mat-sys-error-container),
|
|
64
|
+
small-foreground-color: var(--mat-sys-on-error-container),
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[color='tertiary'] {
|
|
70
|
+
@include mat.fab-overrides(
|
|
71
|
+
(
|
|
72
|
+
container-color: var(--mat-sys-tertiary-container),
|
|
73
|
+
foreground-color: var(--mat-sys-on-tertiary-container),
|
|
74
|
+
small-container-color: var(--mat-sys-tertiary-container),
|
|
75
|
+
small-foreground-color: var(--mat-sys-on-tertiary-container),
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
.mdc-icon-button {
|
|
4
|
+
&.mat-primary,
|
|
5
|
+
&[color='primary'] {
|
|
6
|
+
@include mat.icon-button-overrides(
|
|
7
|
+
(
|
|
8
|
+
icon-color: var(--mat-sys-primary-container),
|
|
9
|
+
)
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.mat-error,
|
|
14
|
+
&[color='error'] {
|
|
15
|
+
@include mat.icon-button-overrides(
|
|
16
|
+
(
|
|
17
|
+
icon-color: var(--mat-sys-error-container),
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.mat-tertiary,
|
|
23
|
+
&[color='tertiary'] {
|
|
24
|
+
@include mat.icon-button-overrides(
|
|
25
|
+
(
|
|
26
|
+
icon-color: var(--mat-sys-tertiary-container),
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mat-icon {
|
|
33
|
+
&.mat-primary {
|
|
34
|
+
@include mat.icon-overrides(
|
|
35
|
+
(
|
|
36
|
+
color: var(--mat-sys-primary-container),
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.mat-error {
|
|
42
|
+
@include mat.icon-overrides(
|
|
43
|
+
(
|
|
44
|
+
color: var(--mat-sys-error-container),
|
|
45
|
+
)
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.mat-tertiary {
|
|
50
|
+
@include mat.icon-overrides(
|
|
51
|
+
(
|
|
52
|
+
color: var(--mat-sys-tertiary-container),
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
body {
|
|
4
|
-
--nat-components-primary: var(--mat-sys-primary-container);
|
|
4
|
+
--nat-components-primary: var(--mat-sys-primary-container); // may be used on other files
|
|
5
5
|
|
|
6
6
|
@include mat.dialog-overrides(
|
|
7
7
|
(
|
|
@@ -10,15 +10,6 @@ body {
|
|
|
10
10
|
)
|
|
11
11
|
);
|
|
12
12
|
|
|
13
|
-
@include mat.button-overrides(
|
|
14
|
-
(
|
|
15
|
-
outlined-label-text-color: var(--nat-link-color),
|
|
16
|
-
text-label-text-color: var(--nat-link-color),
|
|
17
|
-
filled-container-color: var(--nat-components-primary),
|
|
18
|
-
filled-label-text-color: var(--mat-sys-on-primary-container),
|
|
19
|
-
)
|
|
20
|
-
);
|
|
21
|
-
|
|
22
13
|
@include mat.slide-toggle-overrides(
|
|
23
14
|
(
|
|
24
15
|
selected-track-color: var(--nat-components-primary),
|