@natec/mef-dev-ui-kit 22.0.305 → 22.0.350
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/README.md +14 -0
- package/fesm2022/natec-mef-dev-ui-kit.mjs +6229 -243
- package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -1
- package/package.json +19 -1
- package/src/lib/styles/_cards-grid-theme.scss +172 -0
- package/src/lib/styles/buttons.scss +114 -0
- package/src/lib/styles/core.scss +5 -18
- package/src/lib/styles/fonts/google/lato/Lato-Light.ttf +0 -0
- package/src/lib/styles/fonts/google/lato/Lato-SemiBold.ttf +0 -0
- package/src/lib/styles/fonts/google/lato/OFL.txt +93 -0
- package/src/lib/styles/{pg/modules/_form_elements.scss → form-elements.scss} +10 -10
- package/src/lib/styles/global.scss +16 -0
- package/src/lib/styles/grid-bordered.scss +1 -0
- package/src/lib/styles/grid-table.scss +1 -0
- package/src/lib/styles/theme.scss +132 -75
- package/src/lib/styles/toastr-bs4-alert.scss +2 -0
- package/src/lib/styles/toastr-bs5-alert.scss +2 -0
- package/src/lib/styles/toastr-old.scss +2 -0
- package/src/lib/styles/toastr.scss +251 -0
- package/src/lib/styles/{pg/modules/_typography.scss → typography.scss} +2 -2
- package/src/lib/styles/vars.scss +45 -30
- package/src/lib/v2/cards-grid/md-grid-table.scss +38 -33
- package/src/lib/v2/cards-grid/md-grid.scss +299 -108
- package/types/natec-mef-dev-ui-kit.d.ts +2114 -95
- package/types/natec-mef-dev-ui-kit.d.ts.map +1 -1
- package/src/lib/styles/pg/modules/_buttons.scss +0 -156
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '../../styles/cards-grid-theme' as grid-theme;
|
|
1
2
|
@use '../../styles/vars.scss' as *;
|
|
2
3
|
@use 'sass:color' as color;
|
|
3
4
|
|
|
@@ -99,8 +100,8 @@
|
|
|
99
100
|
.md-grid {
|
|
100
101
|
font-family: $base-font-family;
|
|
101
102
|
font-size: 13px;
|
|
102
|
-
background: $
|
|
103
|
-
border: 1px solid $
|
|
103
|
+
background: $white;
|
|
104
|
+
border: 1px solid $light-gray-2;
|
|
104
105
|
border-radius: $default-border-size;
|
|
105
106
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
106
107
|
overflow: hidden;
|
|
@@ -116,15 +117,15 @@
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
&::-webkit-scrollbar-track {
|
|
119
|
-
background: $
|
|
120
|
+
background: $light-gray-3;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
&::-webkit-scrollbar-thumb {
|
|
123
|
-
background: $
|
|
124
|
+
background: $light-gray-1;
|
|
124
125
|
border-radius: 4px;
|
|
125
126
|
|
|
126
127
|
&:hover {
|
|
127
|
-
background: $
|
|
128
|
+
background: $dark-gray-2;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
}
|
|
@@ -134,15 +135,15 @@
|
|
|
134
135
|
// ═════════════════════════════════════════════════════════════════════════
|
|
135
136
|
|
|
136
137
|
.md-grid-header {
|
|
137
|
-
border-bottom: 1px solid $
|
|
138
|
+
border-bottom: 1px solid $light-gray-2;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.md-grid-header-cell {
|
|
141
142
|
padding: 12px 16px;
|
|
142
|
-
background: $
|
|
143
|
+
background: $white;
|
|
143
144
|
font-size: 12px;
|
|
144
145
|
font-weight: 600;
|
|
145
|
-
color: $
|
|
146
|
+
color: $dark-gray-2;
|
|
146
147
|
text-transform: uppercase;
|
|
147
148
|
letter-spacing: 0.5px;
|
|
148
149
|
|
|
@@ -153,17 +154,17 @@
|
|
|
153
154
|
|
|
154
155
|
&.sortable {
|
|
155
156
|
&:hover {
|
|
156
|
-
background: $
|
|
157
|
+
background: $light-gray-3;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
&:focus {
|
|
160
|
-
outline: 2px solid $
|
|
161
|
+
outline: 2px solid $link;
|
|
161
162
|
outline-offset: -2px;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
&.sort-active {
|
|
166
|
-
color: $
|
|
167
|
+
color: $link;
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
|
|
@@ -173,11 +174,11 @@
|
|
|
173
174
|
|
|
174
175
|
.md-grid-sort-icon {
|
|
175
176
|
margin-left: 4px;
|
|
176
|
-
color: $
|
|
177
|
+
color: $light-gray-1;
|
|
177
178
|
|
|
178
179
|
&.md-grid-sort-asc,
|
|
179
180
|
&.md-grid-sort-desc {
|
|
180
|
-
color: $
|
|
181
|
+
color: $link;
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
|
|
@@ -194,7 +195,7 @@
|
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
&:hover::after {
|
|
197
|
-
background: $
|
|
198
|
+
background: $link;
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
|
|
@@ -203,18 +204,19 @@
|
|
|
203
204
|
// ═════════════════════════════════════════════════════════════════════════
|
|
204
205
|
|
|
205
206
|
.md-grid-body {
|
|
206
|
-
padding
|
|
207
|
-
|
|
207
|
+
// Columns already fill the viewport; horizontal padding would add overflow.
|
|
208
|
+
padding: 8px 0;
|
|
209
|
+
background: $light-gray-3;
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
.md-grid-empty {
|
|
211
|
-
background: $
|
|
212
|
-
border: 1px solid $
|
|
213
|
+
background: $white;
|
|
214
|
+
border: 1px solid $light-gray-2;
|
|
213
215
|
border-radius: $default-border-size;
|
|
214
216
|
}
|
|
215
217
|
|
|
216
218
|
.md-grid-empty-text {
|
|
217
|
-
color: $
|
|
219
|
+
color: $dark-gray-2;
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
// ═════════════════════════════════════════════════════════════════════════
|
|
@@ -232,11 +234,11 @@
|
|
|
232
234
|
.md-grid-group-header {
|
|
233
235
|
padding: 8px 12px;
|
|
234
236
|
margin-bottom: 8px;
|
|
235
|
-
background: $
|
|
237
|
+
background: $light-gray-2;
|
|
236
238
|
border-radius: $default-border-size;
|
|
237
239
|
font-size: 13px;
|
|
238
240
|
font-weight: 600;
|
|
239
|
-
color: $
|
|
241
|
+
color: $dark-gray-1;
|
|
240
242
|
}
|
|
241
243
|
|
|
242
244
|
.md-grid-group-rows {
|
|
@@ -248,21 +250,23 @@
|
|
|
248
250
|
// ═════════════════════════════════════════════════════════════════════════
|
|
249
251
|
|
|
250
252
|
.md-grid-card {
|
|
251
|
-
background: $
|
|
252
|
-
border: 1px solid $
|
|
253
|
+
background: $white;
|
|
254
|
+
border: 1px solid $light-gray-2;
|
|
255
|
+
// The host supplies the side borders; row borders must not widen columns.
|
|
256
|
+
border-inline-width: 0;
|
|
253
257
|
border-radius: $default-border-size;
|
|
254
258
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
255
259
|
transition: background-color 0.15s ease, box-shadow 0.15s ease;
|
|
256
260
|
|
|
257
261
|
&:hover {
|
|
258
|
-
background: $
|
|
262
|
+
background: $light-gray-3;
|
|
259
263
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
|
|
260
264
|
transform: none;
|
|
261
265
|
}
|
|
262
266
|
|
|
263
267
|
&.md-grid-card-editing {
|
|
264
268
|
background: #fffef5;
|
|
265
|
-
border-color: $
|
|
269
|
+
border-color: $yellow;
|
|
266
270
|
box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
|
|
267
271
|
}
|
|
268
272
|
}
|
|
@@ -274,8 +278,8 @@
|
|
|
274
278
|
.md-grid-cell {
|
|
275
279
|
padding: 12px 16px;
|
|
276
280
|
font-size: 14px;
|
|
277
|
-
color: $
|
|
278
|
-
border-right: 1px solid $
|
|
281
|
+
color: $black-color;
|
|
282
|
+
border-right: 1px solid $light-gray-2;
|
|
279
283
|
|
|
280
284
|
&:last-child {
|
|
281
285
|
border-right: none;
|
|
@@ -294,7 +298,7 @@
|
|
|
294
298
|
padding: 8px 12px;
|
|
295
299
|
gap: 4px;
|
|
296
300
|
min-width: 80px;
|
|
297
|
-
border-left: 1px solid $
|
|
301
|
+
border-left: 1px solid $light-gray-2;
|
|
298
302
|
}
|
|
299
303
|
|
|
300
304
|
// ═════════════════════════════════════════════════════════════════════════
|
|
@@ -313,26 +317,26 @@
|
|
|
313
317
|
}
|
|
314
318
|
|
|
315
319
|
.md-grid-action-edit {
|
|
316
|
-
color: $
|
|
320
|
+
color: $link;
|
|
317
321
|
|
|
318
322
|
&:hover {
|
|
319
|
-
background: rgba($
|
|
323
|
+
background: rgba($link, 0.1);
|
|
320
324
|
}
|
|
321
325
|
}
|
|
322
326
|
|
|
323
327
|
.md-grid-action-save {
|
|
324
|
-
color: $
|
|
328
|
+
color: $green;
|
|
325
329
|
|
|
326
330
|
&:hover {
|
|
327
|
-
background: rgba($
|
|
331
|
+
background: rgba($green, 0.1);
|
|
328
332
|
}
|
|
329
333
|
}
|
|
330
334
|
|
|
331
335
|
.md-grid-action-cancel {
|
|
332
|
-
color: $
|
|
336
|
+
color: $red;
|
|
333
337
|
|
|
334
338
|
&:hover {
|
|
335
|
-
background: rgba($
|
|
339
|
+
background: rgba($red, 0.1);
|
|
336
340
|
}
|
|
337
341
|
}
|
|
338
342
|
|
|
@@ -353,10 +357,10 @@
|
|
|
353
357
|
|
|
354
358
|
.md-grid-footer {
|
|
355
359
|
padding: 8px 16px;
|
|
356
|
-
background: $
|
|
357
|
-
border-top: 1px solid $
|
|
360
|
+
background: $white;
|
|
361
|
+
border-top: 1px solid $light-gray-2;
|
|
358
362
|
font-size: 12px;
|
|
359
|
-
color: $
|
|
363
|
+
color: $dark-gray-2;
|
|
360
364
|
}
|
|
361
365
|
|
|
362
366
|
.md-grid-pager {
|
|
@@ -366,14 +370,14 @@
|
|
|
366
370
|
.md-grid-pager-btn {
|
|
367
371
|
width: 28px;
|
|
368
372
|
height: 28px;
|
|
369
|
-
border: 1px solid $
|
|
373
|
+
border: 1px solid $light-gray-2;
|
|
370
374
|
border-radius: 4px;
|
|
371
|
-
background: $
|
|
372
|
-
color: $
|
|
375
|
+
background: $white;
|
|
376
|
+
color: $dark-gray-2;
|
|
373
377
|
|
|
374
378
|
&:hover:not(:disabled) {
|
|
375
|
-
background: $
|
|
376
|
-
border-color: $
|
|
379
|
+
background: $light-gray-3;
|
|
380
|
+
border-color: $light-gray-1;
|
|
377
381
|
}
|
|
378
382
|
|
|
379
383
|
&:disabled {
|
|
@@ -391,15 +395,15 @@
|
|
|
391
395
|
// ═════════════════════════════════════════════════════════════════════════
|
|
392
396
|
|
|
393
397
|
.md-paginator-page-size-select {
|
|
394
|
-
border-color: $
|
|
395
|
-
background: $
|
|
398
|
+
border-color: $light-gray-2;
|
|
399
|
+
background: $white;
|
|
396
400
|
|
|
397
401
|
&:hover {
|
|
398
|
-
border-color: $
|
|
402
|
+
border-color: $light-gray-1;
|
|
399
403
|
}
|
|
400
404
|
|
|
401
405
|
&:focus {
|
|
402
|
-
border-color: $
|
|
406
|
+
border-color: $link;
|
|
403
407
|
}
|
|
404
408
|
}
|
|
405
409
|
|
|
@@ -407,7 +411,7 @@
|
|
|
407
411
|
// RESPONSIVE
|
|
408
412
|
// ═════════════════════════════════════════════════════════════════════════
|
|
409
413
|
|
|
410
|
-
@media (max-width:
|
|
414
|
+
@media (max-width: 767.98px) {
|
|
411
415
|
&.md-grid,
|
|
412
416
|
.md-grid {
|
|
413
417
|
font-size: 12px;
|
|
@@ -428,7 +432,7 @@
|
|
|
428
432
|
.md-grid-cell {
|
|
429
433
|
padding: 10px 12px;
|
|
430
434
|
border-right: none;
|
|
431
|
-
border-bottom: 1px solid $
|
|
435
|
+
border-bottom: 1px solid $light-gray-2;
|
|
432
436
|
|
|
433
437
|
&:last-child {
|
|
434
438
|
border-bottom: none;
|
|
@@ -437,7 +441,7 @@
|
|
|
437
441
|
|
|
438
442
|
.md-grid-actions-cell {
|
|
439
443
|
border-left: none;
|
|
440
|
-
border-top: 1px solid $
|
|
444
|
+
border-top: 1px solid $light-gray-2;
|
|
441
445
|
justify-content: center;
|
|
442
446
|
}
|
|
443
447
|
|
|
@@ -455,7 +459,7 @@
|
|
|
455
459
|
|
|
456
460
|
.md-grid-bordered.zebra {
|
|
457
461
|
.md-grid-body {
|
|
458
|
-
background: $
|
|
462
|
+
background: $white;
|
|
459
463
|
}
|
|
460
464
|
|
|
461
465
|
.md-grid-card {
|
|
@@ -464,15 +468,15 @@
|
|
|
464
468
|
box-shadow: none;
|
|
465
469
|
|
|
466
470
|
&:nth-child(odd) {
|
|
467
|
-
background: $
|
|
471
|
+
background: $white;
|
|
468
472
|
}
|
|
469
473
|
|
|
470
474
|
&:nth-child(even) {
|
|
471
|
-
background: $
|
|
475
|
+
background: $light-gray-3;
|
|
472
476
|
}
|
|
473
477
|
|
|
474
478
|
&:hover {
|
|
475
|
-
background: color.mix($
|
|
479
|
+
background: color.mix($light-gray-1, $white, 25%) !important;
|
|
476
480
|
}
|
|
477
481
|
}
|
|
478
482
|
}
|
|
@@ -488,7 +492,7 @@
|
|
|
488
492
|
}
|
|
489
493
|
|
|
490
494
|
.md-grid-body {
|
|
491
|
-
padding: 6px;
|
|
495
|
+
padding: 6px 0;
|
|
492
496
|
}
|
|
493
497
|
|
|
494
498
|
.md-grid-group-rows {
|
|
@@ -533,180 +537,367 @@
|
|
|
533
537
|
.md-grid-bordered.dark-theme {
|
|
534
538
|
&.md-grid,
|
|
535
539
|
.md-grid {
|
|
536
|
-
background: color.mix($
|
|
537
|
-
border-color: color.mix($
|
|
540
|
+
background: color.mix($dark-gray-1, $black-color, 90%);
|
|
541
|
+
border-color: color.mix($dark-gray-2, $black-color, 70%);
|
|
538
542
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
539
543
|
}
|
|
540
544
|
|
|
541
545
|
.md-grid-scroll-container {
|
|
542
546
|
&::-webkit-scrollbar-track {
|
|
543
|
-
background: color.mix($
|
|
547
|
+
background: color.mix($dark-gray-1, $black-color, 80%);
|
|
544
548
|
}
|
|
545
549
|
|
|
546
550
|
&::-webkit-scrollbar-thumb {
|
|
547
|
-
background: $
|
|
551
|
+
background: $dark-gray-2;
|
|
548
552
|
|
|
549
553
|
&:hover {
|
|
550
|
-
background: $
|
|
554
|
+
background: $light-gray-1;
|
|
551
555
|
}
|
|
552
556
|
}
|
|
553
557
|
}
|
|
554
558
|
|
|
555
559
|
.md-grid-header {
|
|
556
|
-
background: color.mix($
|
|
557
|
-
border-bottom-color: color.mix($
|
|
560
|
+
background: color.mix($dark-gray-2, $black-color, 85%);
|
|
561
|
+
border-bottom-color: color.mix($dark-gray-1, $black-color, 60%);
|
|
558
562
|
}
|
|
559
563
|
|
|
560
564
|
.md-grid-header-cell {
|
|
561
|
-
background: color.mix($
|
|
562
|
-
color: $
|
|
565
|
+
background: color.mix($dark-gray-2, $black-color, 85%);
|
|
566
|
+
color: $light-gray-2;
|
|
563
567
|
|
|
564
568
|
&.sortable:hover {
|
|
565
|
-
background: color.mix($
|
|
569
|
+
background: color.mix($dark-gray-1, $black-color, 70%);
|
|
566
570
|
}
|
|
567
571
|
|
|
568
572
|
&.sort-active {
|
|
569
|
-
color: $
|
|
573
|
+
color: $link-on-dark;
|
|
570
574
|
}
|
|
571
575
|
}
|
|
572
576
|
|
|
573
577
|
.md-grid-sort-icon {
|
|
574
|
-
color: $
|
|
578
|
+
color: $dark-gray-2;
|
|
575
579
|
|
|
576
580
|
&.md-grid-sort-asc,
|
|
577
581
|
&.md-grid-sort-desc {
|
|
578
|
-
color: $
|
|
582
|
+
color: $link-on-dark;
|
|
579
583
|
}
|
|
580
584
|
}
|
|
581
585
|
|
|
582
586
|
.md-grid-resize-handle {
|
|
583
587
|
&:hover::after {
|
|
584
|
-
background: $
|
|
588
|
+
background: $link-on-dark;
|
|
585
589
|
}
|
|
586
590
|
}
|
|
587
591
|
|
|
588
592
|
.md-grid-body {
|
|
589
|
-
background: color.mix($
|
|
593
|
+
background: color.mix($dark-gray-1, $black-color, 85%);
|
|
590
594
|
}
|
|
591
595
|
|
|
592
596
|
.md-grid-group-header {
|
|
593
|
-
background: color.mix($
|
|
594
|
-
color: $
|
|
597
|
+
background: color.mix($dark-gray-2, $black-color, 75%);
|
|
598
|
+
color: $light-gray-2;
|
|
595
599
|
}
|
|
596
600
|
|
|
597
601
|
.md-grid-card {
|
|
598
|
-
background: color.mix($
|
|
599
|
-
border-color: color.mix($
|
|
602
|
+
background: color.mix($dark-gray-1, $black-color, 95%);
|
|
603
|
+
border-color: color.mix($dark-gray-2, $black-color, 60%);
|
|
600
604
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
|
|
601
605
|
|
|
602
606
|
&:hover {
|
|
603
|
-
background: color.mix($
|
|
607
|
+
background: color.mix($dark-gray-2, $black-color, 80%);
|
|
604
608
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
605
609
|
}
|
|
606
610
|
|
|
607
611
|
&.md-grid-card-editing {
|
|
608
|
-
background: color.mix($
|
|
609
|
-
border-color: $
|
|
610
|
-
box-shadow: 0 0 0 3px rgba($
|
|
612
|
+
background: color.mix($yellow, $black-color, 15%);
|
|
613
|
+
border-color: $yellow;
|
|
614
|
+
box-shadow: 0 0 0 3px rgba($yellow, 0.3);
|
|
611
615
|
}
|
|
612
616
|
}
|
|
613
617
|
|
|
614
618
|
.md-grid-cell {
|
|
615
|
-
color: $
|
|
616
|
-
border-right-color: color.mix($
|
|
619
|
+
color: $light-gray-2;
|
|
620
|
+
border-right-color: color.mix($dark-gray-2, $black-color, 60%);
|
|
617
621
|
}
|
|
618
622
|
|
|
619
623
|
.md-grid-actions-cell {
|
|
620
|
-
border-left-color: color.mix($
|
|
624
|
+
border-left-color: color.mix($dark-gray-2, $black-color, 60%);
|
|
621
625
|
}
|
|
622
626
|
|
|
623
627
|
.md-grid-action-edit {
|
|
624
|
-
color: $
|
|
628
|
+
color: $link-on-dark;
|
|
625
629
|
|
|
626
630
|
&:hover {
|
|
627
|
-
background: color.mix($
|
|
631
|
+
background: color.mix($link-on-dark, $black-color, 25%);
|
|
628
632
|
}
|
|
629
633
|
}
|
|
630
634
|
|
|
631
635
|
.md-grid-action-save {
|
|
632
|
-
color: $
|
|
636
|
+
color: $green;
|
|
633
637
|
|
|
634
638
|
&:hover {
|
|
635
|
-
background: color.mix($
|
|
639
|
+
background: color.mix($green, $black-color, 25%);
|
|
636
640
|
}
|
|
637
641
|
}
|
|
638
642
|
|
|
639
643
|
.md-grid-action-cancel {
|
|
640
|
-
color: $
|
|
644
|
+
color: $red;
|
|
641
645
|
|
|
642
646
|
&:hover {
|
|
643
|
-
background: color.mix($
|
|
647
|
+
background: color.mix($red, $black-color, 25%);
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
|
|
647
651
|
.md-grid-footer {
|
|
648
|
-
background: color.mix($
|
|
649
|
-
border-top-color: color.mix($
|
|
650
|
-
color: $
|
|
652
|
+
background: color.mix($dark-gray-2, $black-color, 85%);
|
|
653
|
+
border-top-color: color.mix($dark-gray-1, $black-color, 60%);
|
|
654
|
+
color: $light-gray-2;
|
|
651
655
|
}
|
|
652
656
|
|
|
653
657
|
.md-grid-pager-btn {
|
|
654
|
-
background: color.mix($
|
|
655
|
-
border-color: color.mix($
|
|
656
|
-
color: $
|
|
658
|
+
background: color.mix($dark-gray-1, $black-color, 95%);
|
|
659
|
+
border-color: color.mix($dark-gray-2, $black-color, 60%);
|
|
660
|
+
color: $light-gray-2;
|
|
657
661
|
|
|
658
662
|
&:hover:not(:disabled) {
|
|
659
|
-
background: color.mix($
|
|
660
|
-
border-color: $
|
|
661
|
-
color: $
|
|
663
|
+
background: color.mix($dark-gray-2, $black-color, 80%);
|
|
664
|
+
border-color: $light-gray-1;
|
|
665
|
+
color: $white;
|
|
662
666
|
}
|
|
663
667
|
}
|
|
664
668
|
|
|
665
669
|
.md-grid-pager-info {
|
|
666
|
-
color: $
|
|
670
|
+
color: $light-gray-2;
|
|
667
671
|
}
|
|
668
672
|
|
|
669
673
|
.md-grid-empty {
|
|
670
|
-
background: color.mix($
|
|
671
|
-
border-color: color.mix($
|
|
674
|
+
background: color.mix($dark-gray-1, $black-color, 95%);
|
|
675
|
+
border-color: color.mix($dark-gray-2, $black-color, 60%);
|
|
672
676
|
}
|
|
673
677
|
|
|
674
678
|
.md-grid-empty-text {
|
|
675
|
-
color: $
|
|
679
|
+
color: $light-gray-2;
|
|
676
680
|
}
|
|
677
681
|
|
|
678
682
|
.md-paginator-page-size-label {
|
|
679
|
-
color: $
|
|
683
|
+
color: $light-gray-2;
|
|
680
684
|
}
|
|
681
685
|
|
|
682
686
|
.md-paginator-page-size-select {
|
|
683
|
-
background: color.mix($
|
|
684
|
-
border-color: color.mix($
|
|
685
|
-
color: $
|
|
687
|
+
background: color.mix($dark-gray-1, $black-color, 95%);
|
|
688
|
+
border-color: color.mix($dark-gray-2, $black-color, 60%);
|
|
689
|
+
color: $light-gray-2;
|
|
686
690
|
|
|
687
691
|
&:hover {
|
|
688
|
-
border-color: $
|
|
692
|
+
border-color: $light-gray-1;
|
|
689
693
|
}
|
|
690
694
|
}
|
|
691
695
|
|
|
692
696
|
// Zebra in dark mode
|
|
693
697
|
&.zebra {
|
|
694
698
|
.md-grid-body {
|
|
695
|
-
background: color.mix($
|
|
699
|
+
background: color.mix($dark-gray-1, $black-color, 90%);
|
|
696
700
|
}
|
|
697
701
|
|
|
698
702
|
.md-grid-card {
|
|
699
703
|
&:nth-child(odd) {
|
|
700
|
-
background: color.mix($
|
|
704
|
+
background: color.mix($dark-gray-1, $black-color, 95%);
|
|
701
705
|
}
|
|
702
706
|
|
|
703
707
|
&:nth-child(even) {
|
|
704
|
-
background: color.mix($
|
|
708
|
+
background: color.mix($dark-gray-1, $black-color, 85%);
|
|
705
709
|
}
|
|
706
710
|
|
|
707
711
|
&:hover {
|
|
708
|
-
background: color.mix($
|
|
712
|
+
background: color.mix($dark-gray-2, $black-color, 75%) !important;
|
|
709
713
|
}
|
|
710
714
|
}
|
|
711
715
|
}
|
|
712
716
|
}
|
|
717
|
+
|
|
718
|
+
@include grid-theme.dark-theme;
|
|
719
|
+
|
|
720
|
+
@include grid-theme.light-header;
|
|
721
|
+
|
|
722
|
+
// Bordered grids form a continuous table, including compact and zebra variants.
|
|
723
|
+
.md-grid-bordered.md-grid {
|
|
724
|
+
.md-grid-actions-toolbar {
|
|
725
|
+
padding: 4px 8px;
|
|
726
|
+
border: 0;
|
|
727
|
+
border-bottom: 1px solid var(--md-color-border, #{$light-gray-2});
|
|
728
|
+
border-radius: 0;
|
|
729
|
+
background: var(--md-color-surface, #{$white});
|
|
730
|
+
|
|
731
|
+
+ .md-grid-scroll-container {
|
|
732
|
+
box-shadow: none;
|
|
733
|
+
border-radius: 0;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.md-grid-sizing-action {
|
|
737
|
+
min-height: 28px;
|
|
738
|
+
padding: 4px 8px;
|
|
739
|
+
font-size: 12px;
|
|
740
|
+
line-height: 20px;
|
|
741
|
+
color: var(--md-color-text-muted, #{$dark-gray-2});
|
|
742
|
+
background: transparent;
|
|
743
|
+
border: 0;
|
|
744
|
+
box-shadow: none;
|
|
745
|
+
|
|
746
|
+
&:hover {
|
|
747
|
+
color: var(--md-color-text, #{$black-color});
|
|
748
|
+
background: var(--md-color-surface-muted, #{$light-gray-3});
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.md-grid-header .md-grid-resize-handle {
|
|
754
|
+
right: -1px;
|
|
755
|
+
width: 10px;
|
|
756
|
+
|
|
757
|
+
&::after {
|
|
758
|
+
inset: 0 0 0 auto;
|
|
759
|
+
width: 1px;
|
|
760
|
+
height: auto;
|
|
761
|
+
border-radius: 0;
|
|
762
|
+
background: transparent;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
&:hover::after,
|
|
766
|
+
&:focus-visible::after,
|
|
767
|
+
&:active::after {
|
|
768
|
+
width: 2px;
|
|
769
|
+
background: var(--md-color-focus, #{$link});
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
&:focus-visible {
|
|
773
|
+
outline: none;
|
|
774
|
+
background: transparent;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.md-grid-header .md-grid-header-cell {
|
|
779
|
+
font-family: $font-header;
|
|
780
|
+
font-size: 14px;
|
|
781
|
+
font-weight: 300;
|
|
782
|
+
text-transform: uppercase;
|
|
783
|
+
letter-spacing: 0.5px;
|
|
784
|
+
border-right: 1px solid var(--md-color-border, #{$light-gray-2});
|
|
785
|
+
|
|
786
|
+
&:not(:first-child) {
|
|
787
|
+
border-left: 0;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
&:last-child {
|
|
791
|
+
border-right: 0;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.md-grid-body {
|
|
796
|
+
padding: 0;
|
|
797
|
+
width: 100%;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.horizontal-scroll-container,
|
|
801
|
+
.md-grid-group-rows,
|
|
802
|
+
.md-grid-card {
|
|
803
|
+
min-width: 100%;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.md-grid-body,
|
|
807
|
+
.horizontal-scroll-container,
|
|
808
|
+
.md-grid-group-rows {
|
|
809
|
+
// Override the grid's inline card-spacing input for continuous table rows.
|
|
810
|
+
gap: 0 !important;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.md-grid-group,
|
|
814
|
+
.md-grid-group-header {
|
|
815
|
+
margin-bottom: 0;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.md-grid-group-header {
|
|
819
|
+
border-radius: 0;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.md-grid-card {
|
|
823
|
+
border: 0;
|
|
824
|
+
border-bottom: 1px solid var(--md-color-border, #{$light-gray-2});
|
|
825
|
+
border-radius: 0;
|
|
826
|
+
box-shadow: none;
|
|
827
|
+
|
|
828
|
+
&:hover {
|
|
829
|
+
box-shadow: none;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.md-grid-body > .md-grid-card:last-child,
|
|
834
|
+
.md-grid-group:last-child .md-grid-card:last-child {
|
|
835
|
+
border-bottom: 0;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
// On phones each record becomes a labelled card instead of a squeezed table.
|
|
840
|
+
@media (max-width: 767.98px) {
|
|
841
|
+
.md-grid-bordered.md-grid {
|
|
842
|
+
border: 0;
|
|
843
|
+
background: transparent;
|
|
844
|
+
box-shadow: none;
|
|
845
|
+
overflow: visible;
|
|
846
|
+
|
|
847
|
+
.md-grid-actions-toolbar + .md-grid-scroll-container,
|
|
848
|
+
.md-grid-scroll-container {
|
|
849
|
+
border: 0;
|
|
850
|
+
border-radius: 0;
|
|
851
|
+
box-shadow: none;
|
|
852
|
+
background: transparent;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.md-grid-body {
|
|
856
|
+
padding: 6px;
|
|
857
|
+
background: transparent;
|
|
858
|
+
box-sizing: border-box;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.horizontal-scroll-container,
|
|
862
|
+
.md-grid-group-rows {
|
|
863
|
+
gap: 12px !important;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.md-grid-card,
|
|
867
|
+
.md-grid-card:hover,
|
|
868
|
+
.md-grid-body > .md-grid-card:last-child,
|
|
869
|
+
.md-grid-group:last-child .md-grid-card:last-child {
|
|
870
|
+
flex-direction: row;
|
|
871
|
+
flex-wrap: wrap;
|
|
872
|
+
min-width: 0;
|
|
873
|
+
border: 1px solid color-mix(in srgb, var(--md-color-border, #{$light-gray-2}) 55%, transparent);
|
|
874
|
+
border-radius: 8px;
|
|
875
|
+
background: var(--md-color-surface, #{$white});
|
|
876
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.md-grid-cell {
|
|
880
|
+
padding: 8px 12px;
|
|
881
|
+
border-right: 0;
|
|
882
|
+
border-bottom: 1px solid var(--md-color-border, #{$light-gray-2});
|
|
883
|
+
max-height: none;
|
|
884
|
+
color: var(--md-color-text, #{$black-color});
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.md-grid-data-cell {
|
|
888
|
+
grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
|
|
889
|
+
font-size: 14px;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.md-grid-column-actions-cell,
|
|
893
|
+
.md-grid-actions-cell {
|
|
894
|
+
padding: 6px 4px;
|
|
895
|
+
border: 0;
|
|
896
|
+
background: transparent;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.md-grid-last-action-cell { padding-right: 12px; }
|
|
900
|
+
.md-grid-mobile-label { color: var(--md-color-text-muted, #{$dark-gray-2}); }
|
|
901
|
+
.md-grid-cell-content { min-width: 0; }
|
|
902
|
+
}
|
|
903
|
+
}
|