@elderbyte/ngx-starter 19.0.2 → 19.1.0-beta.1
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 +2 -70
- package/fesm2022/elderbyte-ngx-starter.mjs +769 -197
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/layout/pane/pane.component.d.ts +6 -0
- package/lib/components/layout/pane-container/pane-container.component.d.ts +11 -0
- package/lib/components/layout/public_api.d.ts +2 -0
- package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +5 -0
- package/lib/components/public_api.d.ts +2 -0
- package/lib/components/style-debugger/style-debugger.component.d.ts +40 -0
- package/package.json +1 -1
- package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -2
- package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +18 -28
- package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +9 -36
- package/src/lib/components/cards/elder-card/elder-card.component.scss +0 -20
- package/src/lib/components/chips/_elder-chip-theme.scss +63 -56
- package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +1 -7
- package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +11 -0
- package/src/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.scss +2 -1
- package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +16 -26
- package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +100 -92
- package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +0 -24
- package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +7 -17
- package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +4 -10
- package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +23 -34
- package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +0 -5
- package/src/lib/components/graph/elder-progress-bar/elder-progress-bar.component.scss +0 -1
- package/src/lib/components/iframes/iframe-host/iframe-host.component.scss +0 -6
- package/src/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.scss +2 -0
- package/src/lib/components/navigation/nav/_elder-nav-theme.scss +16 -24
- package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +1 -1
- package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +4 -6
- package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +2 -5
- package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +6 -19
- package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +6 -19
- package/src/lib/components/select/_elder-select-base.scss +1 -10
- package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +4 -22
- package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +10 -40
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +18 -53
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +24 -41
- package/src/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.scss +2 -8
- package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +11 -2
- package/src/lib/components/shell/shell/elder-shell.component.scss +8 -0
- package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +22 -2
- package/theming/style-tweaks/_elder-color-variants.scss +31 -0
- package/theming/style-tweaks/_elder-common.scss +179 -0
- package/theming/style-tweaks/_elder-component-themes.scss +22 -0
- package/theming/style-tweaks/_elder-form.scss +368 -0
- package/theming/style-tweaks/_elder-reset.scss +13 -0
- package/theming/style-tweaks/_elder-style-fixes.scss +376 -0
- package/theming/{_mixins.scss → style-tweaks/_elder-style-tweak-mixins.scss} +35 -1
- package/theming/system/_elder-config.scss +141 -0
- package/theming/{_elder-defaults.scss → system/_elder-defaults.scss} +9 -14
- package/theming/system/_elder-design-tokens.scss +100 -0
- package/theming/system/_elder-m3-theme.scss +156 -0
- package/theming/system/_elder-starter-theme.scss +41 -0
- package/theming/utility-classes/_elder-color-helpers.scss +78 -0
- package/theming/{_elder-flex-layout.scss → utility-classes/_elder-flex-layout.scss} +19 -25
- package/theming/utility-classes/_elder-layout-system.scss +498 -0
- package/src/lib/components/panels/flat/_elder-panel-theme.scss +0 -72
- package/src/lib/components/time/_elder-time-input.theme.scss +0 -35
- package/theming/_elder-common.scss +0 -573
- package/theming/_elder-mdc-support.scss +0 -235
- package/theming/_elder-palettes.scss +0 -148
- package/theming/_elder-scrollbar-theme.scss +0 -67
- package/theming/_elder-style-fixes.scss +0 -216
- package/theming/_elder-theme.scss +0 -51
- package/theming/_elder-toast-theme.scss +0 -46
- package/theming/_elder-typography-utils.scss +0 -23
- package/theming/_mat-icon-button-size.scss +0 -34
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@mixin elder-layout-system($theme) {
|
|
5
|
+
$common-sizes: map.get($theme, elder, common-sizes);
|
|
6
|
+
|
|
7
|
+
/***************************************************************************
|
|
8
|
+
* *
|
|
9
|
+
* Common Sizes *
|
|
10
|
+
* *
|
|
11
|
+
**************************************************************************/
|
|
12
|
+
|
|
13
|
+
$xs: map.get($common-sizes, xs);
|
|
14
|
+
$sm: map.get($common-sizes, sm);
|
|
15
|
+
$md: map.get($common-sizes, md);
|
|
16
|
+
$lg: map.get($common-sizes, lg);
|
|
17
|
+
$xl: map.get($common-sizes, xl);
|
|
18
|
+
$xxl: map.get($common-sizes, xxl);
|
|
19
|
+
|
|
20
|
+
/***************************************************************************
|
|
21
|
+
* *
|
|
22
|
+
* Padding *
|
|
23
|
+
* *
|
|
24
|
+
**************************************************************************/
|
|
25
|
+
|
|
26
|
+
.p-xs {
|
|
27
|
+
padding: $xs;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pt-xs {
|
|
31
|
+
padding-top: $xs;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pb-xs {
|
|
35
|
+
padding-bottom: $xs;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pr-xs {
|
|
39
|
+
padding-right: $xs;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pl-xs {
|
|
43
|
+
padding-left: $xs;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.px-xs {
|
|
47
|
+
padding-left: $xs;
|
|
48
|
+
padding-right: $xs;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.py-xs {
|
|
52
|
+
padding-top: $xs;
|
|
53
|
+
padding-bottom: $xs;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.p-sm {
|
|
57
|
+
padding: $sm;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pt-sm {
|
|
61
|
+
padding-top: $sm;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pb-sm {
|
|
65
|
+
padding-bottom: $sm;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pr-sm {
|
|
69
|
+
padding-right: $sm;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pl-sm {
|
|
73
|
+
padding-left: $sm;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.px-sm {
|
|
77
|
+
padding-left: $sm;
|
|
78
|
+
padding-right: $sm;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.py-sm {
|
|
82
|
+
padding-top: $sm;
|
|
83
|
+
padding-bottom: $sm;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.p-md {
|
|
87
|
+
padding: $md;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.pt-md {
|
|
91
|
+
padding-top: $md;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.pb-md {
|
|
95
|
+
padding-bottom: $md;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.pr-md {
|
|
99
|
+
padding-right: $md;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pl-md {
|
|
103
|
+
padding-left: $md;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.px-md {
|
|
107
|
+
padding-left: $md;
|
|
108
|
+
padding-right: $md;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.py-md {
|
|
112
|
+
padding-top: $md;
|
|
113
|
+
padding-bottom: $md;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.p-lg {
|
|
117
|
+
padding: $lg;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.pt-lg {
|
|
121
|
+
padding-top: $lg;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pb-lg {
|
|
125
|
+
padding-bottom: $lg;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pr-lg {
|
|
129
|
+
padding-right: $lg;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pl-lg {
|
|
133
|
+
padding-left: $lg;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.px-lg {
|
|
137
|
+
padding-left: $lg;
|
|
138
|
+
padding-right: $lg;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.py-lg {
|
|
142
|
+
padding-top: $lg;
|
|
143
|
+
padding-bottom: $lg;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.p-xl {
|
|
147
|
+
padding: $xl;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.pt-xl {
|
|
151
|
+
padding-top: $xl;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.pb-xl {
|
|
155
|
+
padding-bottom: $xl;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.pr-xl {
|
|
159
|
+
padding-right: $xl;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.pl-xl {
|
|
163
|
+
padding-left: $xl;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.px-xl {
|
|
167
|
+
padding-left: $xl;
|
|
168
|
+
padding-right: $xl;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.py-xl {
|
|
172
|
+
padding-top: $xl;
|
|
173
|
+
padding-bottom: $xl;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.p-xxl {
|
|
177
|
+
padding: $xxl;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.pt-xxl {
|
|
181
|
+
padding-top: $xxl;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.pb-xxl {
|
|
185
|
+
padding-bottom: $xxl;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.pr-xxl {
|
|
189
|
+
padding-right: $xxl;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.pl-xxl {
|
|
193
|
+
padding-left: $xxl;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.px-xxl {
|
|
197
|
+
padding-left: $xxl;
|
|
198
|
+
padding-right: $xxl;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.py-xxl {
|
|
202
|
+
padding-top: $xxl;
|
|
203
|
+
padding-bottom: $xxl;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.p-0 {
|
|
207
|
+
padding: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.pt-0 {
|
|
211
|
+
padding-top: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.pb-0 {
|
|
215
|
+
padding-bottom: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.pr-0 {
|
|
219
|
+
padding-right: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.pl-0 {
|
|
223
|
+
padding-left: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.px-0 {
|
|
227
|
+
padding-left: 0;
|
|
228
|
+
padding-right: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.py-0 {
|
|
232
|
+
padding-top: 0;
|
|
233
|
+
padding-bottom: 0;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/***************************************************************************
|
|
237
|
+
* *
|
|
238
|
+
* Margin *
|
|
239
|
+
* *
|
|
240
|
+
**************************************************************************/
|
|
241
|
+
|
|
242
|
+
.m-auto {
|
|
243
|
+
margin: auto;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.mx-auto {
|
|
247
|
+
margin-left: auto;
|
|
248
|
+
margin-right: auto;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.m-0 {
|
|
252
|
+
margin: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.mt-0 {
|
|
256
|
+
margin-top: 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.mb-0 {
|
|
260
|
+
margin-bottom: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.mr-0 {
|
|
264
|
+
margin-right: 0;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.ml-0 {
|
|
268
|
+
margin-left: 0;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.mx-0 {
|
|
272
|
+
margin-left: 0;
|
|
273
|
+
margin-right: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.my-0 {
|
|
277
|
+
margin-top: 0;
|
|
278
|
+
margin-bottom: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.m-xs {
|
|
282
|
+
margin: $xs;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.mt-xs {
|
|
286
|
+
margin-top: $xs;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.mb-xs {
|
|
290
|
+
margin-bottom: $xs;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.mr-xs {
|
|
294
|
+
margin-right: $xs;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ml-xs {
|
|
298
|
+
margin-left: $xs;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.mx-xs {
|
|
302
|
+
margin-left: $xs;
|
|
303
|
+
margin-right: $xs;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.my-xs {
|
|
307
|
+
margin-top: $xs;
|
|
308
|
+
margin-bottom: $xs;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.m-sm {
|
|
312
|
+
margin: $sm;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.mt-sm {
|
|
316
|
+
margin-top: $sm;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.mb-sm {
|
|
320
|
+
margin-bottom: $sm;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.mr-sm {
|
|
324
|
+
margin-right: $sm;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.ml-sm {
|
|
328
|
+
margin-left: $sm;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.mx-sm {
|
|
332
|
+
margin-left: $sm;
|
|
333
|
+
margin-right: $sm;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.my-sm {
|
|
337
|
+
margin-top: $sm;
|
|
338
|
+
margin-bottom: $sm;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.m-md {
|
|
342
|
+
margin: $md;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.mt-md {
|
|
346
|
+
margin-top: $md;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.mb-md {
|
|
350
|
+
margin-bottom: $md;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.mr-md {
|
|
354
|
+
margin-right: $md;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ml-md {
|
|
358
|
+
margin-left: $md;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.mx-md {
|
|
362
|
+
margin-left: $md;
|
|
363
|
+
margin-right: $md;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.my-md {
|
|
367
|
+
margin-top: $md;
|
|
368
|
+
margin-bottom: $md;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.m-lg {
|
|
372
|
+
margin: $lg;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.mt-lg {
|
|
376
|
+
margin-top: $lg;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.mb-lg {
|
|
380
|
+
margin-bottom: $lg;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.mr-lg {
|
|
384
|
+
margin-right: $lg;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.ml-lg {
|
|
388
|
+
margin-left: $lg;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.mx-lg {
|
|
392
|
+
margin-left: $lg;
|
|
393
|
+
margin-right: $lg;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.my-lg {
|
|
397
|
+
margin-top: $lg;
|
|
398
|
+
margin-bottom: $lg;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.m-xl {
|
|
402
|
+
margin: $xl;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.mt-xl {
|
|
406
|
+
margin-top: $xl;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.mb-xl {
|
|
410
|
+
margin-bottom: $xl;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.mr-xl {
|
|
414
|
+
margin-right: $xl;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.ml-xl {
|
|
418
|
+
margin-left: $xl;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.mx-xl {
|
|
422
|
+
margin-left: $xl;
|
|
423
|
+
margin-right: $xl;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.my-xl {
|
|
427
|
+
margin-top: $xl;
|
|
428
|
+
margin-bottom: $xl;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.m-xxl {
|
|
432
|
+
margin: $xxl;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.mt-xxl {
|
|
436
|
+
margin-top: $xxl;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.mb-xxl {
|
|
440
|
+
margin-bottom: $xxl;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.mr-xxl {
|
|
444
|
+
margin-right: $xxl;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.ml-xxl {
|
|
448
|
+
margin-left: $xxl;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.mx-xxl {
|
|
452
|
+
margin-left: $xxl;
|
|
453
|
+
margin-right: $xxl;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.my-xxl {
|
|
457
|
+
margin-top: $xxl;
|
|
458
|
+
margin-bottom: $xxl;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/***************************************************************************
|
|
462
|
+
* *
|
|
463
|
+
* Layout Widths *
|
|
464
|
+
* *
|
|
465
|
+
**************************************************************************/
|
|
466
|
+
|
|
467
|
+
.width-5p {
|
|
468
|
+
width: 5%;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.width-10p {
|
|
472
|
+
width: 10%;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.width-15p {
|
|
476
|
+
width: 15%;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.width-20p {
|
|
480
|
+
width: 20%;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.width-25p {
|
|
484
|
+
width: 25%;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.width-30p {
|
|
488
|
+
width: 30%;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.width-40p {
|
|
492
|
+
width: 40%;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.width-50p {
|
|
496
|
+
width: 50%;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin _elder-panel-color($palette) {
|
|
4
|
-
background: mat.m2-get-color-from-palette($palette);
|
|
5
|
-
color: mat.m2-get-color-from-palette($palette, default-contrast);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@mixin _elder-panel-form-field-overrides {
|
|
9
|
-
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
10
|
-
.mat-form-field-underline,
|
|
11
|
-
.mat-form-field-ripple,
|
|
12
|
-
.mat-focused .mat-form-field-ripple {
|
|
13
|
-
background-color: currentColor;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.mat-mdc-form-field-label,
|
|
17
|
-
.mat-focused .mat-form-field-label,
|
|
18
|
-
.mat-select-value,
|
|
19
|
-
.mat-select-arrow,
|
|
20
|
-
.mat-form-field.mat-focused .mat-select-arrow {
|
|
21
|
-
color: inherit;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.mat-mdc-input-element {
|
|
25
|
-
caret-color: currentColor;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin theme($theme) {
|
|
30
|
-
$primary: map-get($theme, primary);
|
|
31
|
-
$accent: map-get($theme, accent);
|
|
32
|
-
$warn: map-get($theme, warn);
|
|
33
|
-
$background: map-get($theme, background);
|
|
34
|
-
$foreground: map-get($theme, foreground);
|
|
35
|
-
|
|
36
|
-
.mat-panel {
|
|
37
|
-
background: mat.m2-get-color-from-palette($background, app-bar);
|
|
38
|
-
color: mat.m2-get-color-from-palette($foreground, text);
|
|
39
|
-
transition: background 0.5s;
|
|
40
|
-
|
|
41
|
-
&.mat-primary {
|
|
42
|
-
@if (map-get($theme, is-dark)) {
|
|
43
|
-
// dark
|
|
44
|
-
} @else {
|
|
45
|
-
@include _elder-panel-color($primary);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.mat-accent {
|
|
50
|
-
@include _elder-panel-color($accent);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.mat-warn {
|
|
54
|
-
@include _elder-panel-color($warn);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@include _elder-panel-form-field-overrides;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@mixin elder-panel-typography($config) {
|
|
62
|
-
.mat-panel,
|
|
63
|
-
.mat-panel h1,
|
|
64
|
-
.mat-panel h2,
|
|
65
|
-
.mat-panel h3,
|
|
66
|
-
.mat-panel h4,
|
|
67
|
-
.mat-panel h5,
|
|
68
|
-
.mat-panel h6 {
|
|
69
|
-
@include mat.m2-typography-level($config, title);
|
|
70
|
-
margin: 0;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
|
-
|
|
5
|
-
@mixin theme($config-or-theme) {
|
|
6
|
-
$color: mat.m2-get-color-config($config-or-theme);
|
|
7
|
-
$typography: mat.m2-get-typography-config($config-or-theme);
|
|
8
|
-
|
|
9
|
-
@include _interval-form-field-sizing();
|
|
10
|
-
@include _interval-form-field-color();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin _interval-form-field-sizing() {
|
|
14
|
-
.mat-mdc-form-field-type-day-time-range .mat-mdc-form-field-infix {
|
|
15
|
-
width: 224px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.mat-mdc-form-field-type-date-time-range .mat-mdc-form-field-infix {
|
|
19
|
-
width: 320px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.mat-mdc-form-field-type-single-day .mat-mdc-form-field-infix {
|
|
23
|
-
width: 180px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.mat-mdc-form-field-type-date-range .mat-mdc-form-field-infix {
|
|
27
|
-
width: 224px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin _interval-form-field-color() {
|
|
32
|
-
.mdc-text-field__input .mat-date-range-input-separator {
|
|
33
|
-
color: inherit;
|
|
34
|
-
}
|
|
35
|
-
}
|