@clayui/css 3.107.0 → 3.108.0
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/CHANGELOG.md +2833 -0
- package/lib/css/atlas.css +71 -52
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +71 -52
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +72 -51
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/atlas/variables/_tables.scss +2 -6
- package/src/scss/cadmin/components/_modals.scss +11 -0
- package/src/scss/cadmin/components/_tables.scss +35 -30
- package/src/scss/cadmin/variables/_modals.scss +21 -1
- package/src/scss/cadmin/variables/_tables.scss +67 -28
- package/src/scss/components/_modals.scss +8 -0
- package/src/scss/components/_tables.scss +35 -28
- package/src/scss/mixins/_grid.scss +8 -0
- package/src/scss/mixins/_tables.scss +21 -2
- package/src/scss/variables/_modals.scss +21 -1
- package/src/scss/variables/_tables.scss +63 -25
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
.modal {
|
|
11
11
|
@include clay-css($modal);
|
|
12
|
+
|
|
13
|
+
$_media-breakpoint-down: map-get($modal, media-breakpoint-down);
|
|
14
|
+
$_media-breakpoint-up: map-get($modal, media-breakpoint-up);
|
|
15
|
+
|
|
16
|
+
@if ($_media-breakpoint-down) or ($_media-breakpoint-up) {
|
|
17
|
+
@include clay-generate-media-breakpoints($modal, 'clay-map-to-css');
|
|
18
|
+
}
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
.modal-dialog {
|
|
@@ -230,6 +237,7 @@
|
|
|
230
237
|
.modal-footer {
|
|
231
238
|
> .modal-item-last {
|
|
232
239
|
margin-left: auto;
|
|
240
|
+
margin-right: 0;
|
|
233
241
|
}
|
|
234
242
|
}
|
|
235
243
|
|
|
@@ -37,6 +37,18 @@ caption {
|
|
|
37
37
|
caption-side: bottom;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
// Table lg
|
|
41
|
+
|
|
42
|
+
.table-lg {
|
|
43
|
+
@include clay-table-variant($c-table-lg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Table Md
|
|
47
|
+
|
|
48
|
+
.table-md {
|
|
49
|
+
@include clay-table-variant($c-table-md);
|
|
50
|
+
}
|
|
51
|
+
|
|
40
52
|
// Table Sm
|
|
41
53
|
|
|
42
54
|
.table-sm {
|
|
@@ -49,6 +61,10 @@ caption {
|
|
|
49
61
|
@include clay-table-variant($c-table-bordered);
|
|
50
62
|
}
|
|
51
63
|
|
|
64
|
+
.table-head-bordered {
|
|
65
|
+
@include clay-table-variant($c-table-head-bordered);
|
|
66
|
+
}
|
|
67
|
+
|
|
52
68
|
.table-borderless {
|
|
53
69
|
th,
|
|
54
70
|
td,
|
|
@@ -62,9 +78,12 @@ caption {
|
|
|
62
78
|
|
|
63
79
|
.table-striped {
|
|
64
80
|
tbody tr:nth-of-type(#{$table-striped-order}) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
81
|
+
&:not(.table-active):not(.table-disabled):not(.table-divider) {
|
|
82
|
+
&,
|
|
83
|
+
td,
|
|
84
|
+
th {
|
|
85
|
+
background-color: $table-accent-bg;
|
|
86
|
+
}
|
|
68
87
|
}
|
|
69
88
|
}
|
|
70
89
|
}
|
|
@@ -176,17 +195,6 @@ td.table-focus {
|
|
|
176
195
|
}
|
|
177
196
|
}
|
|
178
197
|
|
|
179
|
-
// Table Disabled
|
|
180
|
-
|
|
181
|
-
.table-striped {
|
|
182
|
-
tbody .table-disabled:nth-of-type(#{$table-striped-order}) {
|
|
183
|
-
td,
|
|
184
|
-
th {
|
|
185
|
-
background-color: $table-disabled-bg;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
198
|
// Dark styles
|
|
191
199
|
|
|
192
200
|
.table {
|
|
@@ -223,7 +231,13 @@ td.table-focus {
|
|
|
223
231
|
|
|
224
232
|
&.table-striped {
|
|
225
233
|
tbody tr:nth-of-type(#{$table-striped-order}) {
|
|
226
|
-
|
|
234
|
+
&:not(.table-active):not(.table-disabled):not(.table-divider) {
|
|
235
|
+
&,
|
|
236
|
+
th,
|
|
237
|
+
td {
|
|
238
|
+
background-color: $table-dark-accent-bg;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
227
241
|
}
|
|
228
242
|
}
|
|
229
243
|
|
|
@@ -296,9 +310,12 @@ td.table-focus {
|
|
|
296
310
|
|
|
297
311
|
.table-list.table-striped {
|
|
298
312
|
tbody tr:nth-of-type(#{$table-striped-order}) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
313
|
+
&:not(.table-active):not(.table-disabled):not(.table-divider) {
|
|
314
|
+
&,
|
|
315
|
+
th,
|
|
316
|
+
td {
|
|
317
|
+
background-color: $table-list-accent-bg;
|
|
318
|
+
}
|
|
302
319
|
}
|
|
303
320
|
}
|
|
304
321
|
}
|
|
@@ -309,16 +326,6 @@ td.table-focus {
|
|
|
309
326
|
@include clay-table-variant($c-table-list-table-hover);
|
|
310
327
|
}
|
|
311
328
|
|
|
312
|
-
.table-list.table-striped {
|
|
313
|
-
tbody .table-disabled:nth-of-type(#{$table-striped-order}) {
|
|
314
|
-
&,
|
|
315
|
-
td,
|
|
316
|
-
th {
|
|
317
|
-
background-color: $table-list-disabled-bg;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
329
|
// Table List Title
|
|
323
330
|
|
|
324
331
|
.table-list-title {
|
|
@@ -219,8 +219,12 @@
|
|
|
219
219
|
@include clay-input-group-text-variant($breakpoint-up);
|
|
220
220
|
} @else if ($mixin == 'clay-dropdown-menu-variant') {
|
|
221
221
|
@include clay-dropdown-menu-variant($breakpoint-up);
|
|
222
|
+
} @else if ($mixin == 'clay-map-to-css') {
|
|
223
|
+
@include clay-map-to-css($breakpoint-up);
|
|
222
224
|
} @else if ($mixin == 'clay-menubar-vertical-variant') {
|
|
223
225
|
@include clay-menubar-vertical-variant($breakpoint-up);
|
|
226
|
+
} @else if ($mixin == 'clay-modal-variant') {
|
|
227
|
+
@include clay-modal-variant($breakpoint-up);
|
|
224
228
|
} @else if ($mixin == 'clay-select-variant') {
|
|
225
229
|
@include clay-select-variant($breakpoint-up);
|
|
226
230
|
}
|
|
@@ -247,10 +251,14 @@
|
|
|
247
251
|
);
|
|
248
252
|
} @else if ($mixin == 'clay-dropdown-menu-variant') {
|
|
249
253
|
@include clay-dropdown-menu-variant($breakpoint-down);
|
|
254
|
+
} @else if ($mixin == 'clay-map-to-css') {
|
|
255
|
+
@include clay-map-to-css($breakpoint-down);
|
|
250
256
|
} @else if ($mixin == 'clay-menubar-vertical-variant') {
|
|
251
257
|
@include clay-menubar-vertical-variant(
|
|
252
258
|
$breakpoint-down
|
|
253
259
|
);
|
|
260
|
+
} @else if ($mixin == 'clay-modal-variant') {
|
|
261
|
+
@include clay-modal-variant($breakpoint-down);
|
|
254
262
|
} @else if ($mixin == 'clay-select-variant') {
|
|
255
263
|
@include clay-select-variant($breakpoint-down);
|
|
256
264
|
}
|
|
@@ -58,11 +58,30 @@
|
|
|
58
58
|
@include clay-css($map);
|
|
59
59
|
|
|
60
60
|
thead {
|
|
61
|
-
|
|
61
|
+
$_thead: setter(map-get($map, thead), ());
|
|
62
|
+
|
|
63
|
+
@include clay-css($_thead);
|
|
62
64
|
|
|
63
65
|
th,
|
|
64
66
|
td {
|
|
65
|
-
|
|
67
|
+
$_thead-table-cell: setter(
|
|
68
|
+
map-get($_thead, table-cell),
|
|
69
|
+
()
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
@include clay-css($_thead-table-cell);
|
|
73
|
+
|
|
74
|
+
&:first-child {
|
|
75
|
+
@include clay-css(
|
|
76
|
+
map-get($_thead-table-cell, table-column-start)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:last-child {
|
|
81
|
+
@include clay-css(
|
|
82
|
+
map-get($_thead-table-cell, table-column-end)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
66
85
|
}
|
|
67
86
|
|
|
68
87
|
th {
|
|
@@ -345,7 +345,7 @@ $modal: map-deep-merge(
|
|
|
345
345
|
padding-right: $modal-footer-padding-x,
|
|
346
346
|
padding-top: $modal-footer-padding-y,
|
|
347
347
|
'> *': (
|
|
348
|
-
margin: calc(#{$modal-footer-margin-between} * 0.5),
|
|
348
|
+
margin: 0 calc(#{$modal-footer-margin-between} * 0.5),
|
|
349
349
|
),
|
|
350
350
|
),
|
|
351
351
|
modal-title: (
|
|
@@ -366,6 +366,26 @@ $modal: map-deep-merge(
|
|
|
366
366
|
margin-top: -0.2em,
|
|
367
367
|
vertical-align: middle,
|
|
368
368
|
),
|
|
369
|
+
media-breakpoint-down: (
|
|
370
|
+
sm: (
|
|
371
|
+
close: (
|
|
372
|
+
margin-right: -0.5rem,
|
|
373
|
+
),
|
|
374
|
+
modal-header: (
|
|
375
|
+
height: 3rem,
|
|
376
|
+
padding: 0.5rem 1rem,
|
|
377
|
+
),
|
|
378
|
+
modal-title: (
|
|
379
|
+
font-size: 1.125rem,
|
|
380
|
+
),
|
|
381
|
+
modal-body: (
|
|
382
|
+
padding: 0.5rem 1rem,
|
|
383
|
+
),
|
|
384
|
+
modal-footer: (
|
|
385
|
+
padding: 0.5rem,
|
|
386
|
+
),
|
|
387
|
+
),
|
|
388
|
+
),
|
|
369
389
|
),
|
|
370
390
|
$modal
|
|
371
391
|
);
|
|
@@ -52,9 +52,10 @@ $table-striped-order: odd !default;
|
|
|
52
52
|
|
|
53
53
|
// Table Cell applies to `th` and `td`
|
|
54
54
|
|
|
55
|
-
$table-cell-gutters:
|
|
56
|
-
$table-cell-padding: 0.
|
|
57
|
-
$table-cell-padding-sm: 0.
|
|
55
|
+
$table-cell-gutters: 1.25rem !default;
|
|
56
|
+
$table-cell-padding: 0.5rem 1rem !default;
|
|
57
|
+
$table-cell-padding-sm: 0.25rem 1rem !default;
|
|
58
|
+
$table-cell-padding-lg: 1.0625rem !default;
|
|
58
59
|
|
|
59
60
|
$table-cell-expand-min-width: 12.5rem !default; // 200px
|
|
60
61
|
|
|
@@ -75,7 +76,7 @@ $table-head-border-top-width: 0px !default;
|
|
|
75
76
|
$table-head-color: $gray-700 !default;
|
|
76
77
|
$table-head-font-size: null !default;
|
|
77
78
|
$table-head-font-weight: null !default;
|
|
78
|
-
$table-head-height:
|
|
79
|
+
$table-head-height: 56px !default;
|
|
79
80
|
|
|
80
81
|
$c-table-thead: () !default;
|
|
81
82
|
|
|
@@ -107,7 +108,7 @@ $table-divider-bg: $white !default;
|
|
|
107
108
|
$table-divider-color: null !default;
|
|
108
109
|
$table-divider-font-weight: null !default;
|
|
109
110
|
$table-divider-font-size: null !default;
|
|
110
|
-
$table-divider-padding:
|
|
111
|
+
$table-divider-padding: 0.5rem 1rem 0.5rem 1.25rem !default;
|
|
111
112
|
$table-divider-text-transform: null !default;
|
|
112
113
|
|
|
113
114
|
$table-quick-action-menu-align-items: flex-start !default;
|
|
@@ -139,8 +140,8 @@ $c-table-caption: () !default;
|
|
|
139
140
|
$c-table-caption: map-merge(
|
|
140
141
|
(
|
|
141
142
|
caption-side: top,
|
|
142
|
-
padding-left: $table-cell-padding,
|
|
143
|
-
padding-right: $table-cell-padding,
|
|
143
|
+
padding-left: nth($table-cell-padding, 2),
|
|
144
|
+
padding-right: nth($table-cell-padding, 2),
|
|
144
145
|
),
|
|
145
146
|
$c-table-caption
|
|
146
147
|
);
|
|
@@ -240,7 +241,7 @@ $c-table: map-deep-merge(
|
|
|
240
241
|
border-bottom: $table-head-border-bottom-width solid
|
|
241
242
|
$table-border-color,
|
|
242
243
|
border-top-width: $table-head-border-top-width,
|
|
243
|
-
vertical-align:
|
|
244
|
+
vertical-align: middle,
|
|
244
245
|
),
|
|
245
246
|
th: (
|
|
246
247
|
href: $table-head-link,
|
|
@@ -250,9 +251,6 @@ $c-table: map-deep-merge(
|
|
|
250
251
|
table-column-start: (
|
|
251
252
|
padding-left: $table-cell-gutters,
|
|
252
253
|
),
|
|
253
|
-
table-column-end: (
|
|
254
|
-
padding-right: $table-cell-gutters,
|
|
255
|
-
),
|
|
256
254
|
th: (
|
|
257
255
|
background-clip: padding-box,
|
|
258
256
|
border-top: $table-border-width solid $table-border-color,
|
|
@@ -272,6 +270,7 @@ $c-table: map-deep-merge(
|
|
|
272
270
|
border-right-width: $table-data-border-right-width,
|
|
273
271
|
border-style: $table-data-border-style,
|
|
274
272
|
border-top-width: $table-data-border-top-width,
|
|
273
|
+
height: 56px,
|
|
275
274
|
padding: $table-cell-padding,
|
|
276
275
|
position: relative,
|
|
277
276
|
vertical-align: $table-data-vertical-align,
|
|
@@ -289,11 +288,13 @@ $c-table: map-deep-merge(
|
|
|
289
288
|
tfoot: $c-table-tfoot,
|
|
290
289
|
caption: $c-table-caption,
|
|
291
290
|
table-divider: (
|
|
292
|
-
background-color: $table-divider-bg,
|
|
293
291
|
table-cell: (
|
|
292
|
+
background-color: $table-divider-bg,
|
|
294
293
|
color: $table-divider-color,
|
|
295
294
|
font-size: $table-divider-font-size,
|
|
296
295
|
font-weight: $table-divider-font-weight,
|
|
296
|
+
height: 34px,
|
|
297
|
+
line-height: 17px,
|
|
297
298
|
padding: $table-divider-padding,
|
|
298
299
|
text-transform: $table-divider-text-transform,
|
|
299
300
|
),
|
|
@@ -323,8 +324,8 @@ $c-table: map-deep-merge(
|
|
|
323
324
|
),
|
|
324
325
|
autofit-col: (
|
|
325
326
|
justify-content: center,
|
|
326
|
-
padding-left: $table-cell-padding,
|
|
327
|
-
padding-right: $table-cell-padding,
|
|
327
|
+
padding-left: nth($table-cell-padding, 2),
|
|
328
|
+
padding-right: nth($table-cell-padding, 2),
|
|
328
329
|
first-child: (
|
|
329
330
|
padding-left: 0,
|
|
330
331
|
),
|
|
@@ -346,8 +347,8 @@ $c-table: map-deep-merge(
|
|
|
346
347
|
quick-action-menu: (
|
|
347
348
|
align-items: $table-quick-action-menu-align-items,
|
|
348
349
|
background-color: $table-quick-action-menu-bg,
|
|
349
|
-
padding-bottom: $table-cell-padding,
|
|
350
|
-
padding-top: $table-cell-padding,
|
|
350
|
+
padding-bottom: nth($table-cell-padding, 1),
|
|
351
|
+
padding-top: nth($table-cell-padding, 1),
|
|
351
352
|
),
|
|
352
353
|
),
|
|
353
354
|
$c-table
|
|
@@ -450,6 +451,23 @@ $c-td-table-focus: map-deep-merge(
|
|
|
450
451
|
$c-td-table-focus
|
|
451
452
|
);
|
|
452
453
|
|
|
454
|
+
// .table-head-bordered
|
|
455
|
+
|
|
456
|
+
$c-table-head-bordered: () !default;
|
|
457
|
+
$c-table-head-bordered: map-deep-merge(
|
|
458
|
+
(
|
|
459
|
+
thead: (
|
|
460
|
+
table-cell: (
|
|
461
|
+
border-left: $table-border-width solid $table-border-color,
|
|
462
|
+
table-column-start: (
|
|
463
|
+
border-left-width: 0,
|
|
464
|
+
),
|
|
465
|
+
),
|
|
466
|
+
),
|
|
467
|
+
),
|
|
468
|
+
$c-table-head-bordered
|
|
469
|
+
);
|
|
470
|
+
|
|
453
471
|
// .table-bordered
|
|
454
472
|
|
|
455
473
|
$table-bordered-border-width: $table-border-width !default;
|
|
@@ -476,23 +494,43 @@ $c-table-sm: () !default;
|
|
|
476
494
|
$c-table-sm: map-deep-merge(
|
|
477
495
|
(
|
|
478
496
|
table-cell: (
|
|
497
|
+
height: 32px,
|
|
479
498
|
padding: $table-cell-padding-sm,
|
|
480
499
|
),
|
|
481
500
|
),
|
|
482
501
|
$c-table-sm
|
|
483
502
|
);
|
|
484
503
|
|
|
504
|
+
// .table-md
|
|
505
|
+
|
|
506
|
+
$c-table-md: () !default;
|
|
507
|
+
$c-table-md: map-deep-merge(
|
|
508
|
+
(
|
|
509
|
+
table-cell: (
|
|
510
|
+
height: 48px,
|
|
511
|
+
padding: 0.375rem 1rem,
|
|
512
|
+
),
|
|
513
|
+
),
|
|
514
|
+
$c-table-md
|
|
515
|
+
);
|
|
516
|
+
|
|
517
|
+
// .table-lg
|
|
518
|
+
|
|
519
|
+
$c-table-lg: () !default;
|
|
520
|
+
$c-table-lg: map-deep-merge(
|
|
521
|
+
(
|
|
522
|
+
table-cell: (
|
|
523
|
+
padding: $table-cell-padding-lg,
|
|
524
|
+
),
|
|
525
|
+
),
|
|
526
|
+
$c-table-lg
|
|
527
|
+
);
|
|
528
|
+
|
|
485
529
|
// .table-nested-rows
|
|
486
530
|
|
|
487
531
|
$c-table-nested-rows: () !default;
|
|
488
532
|
$c-table-nested-rows: map-deep-merge(
|
|
489
533
|
(
|
|
490
|
-
table-column-start: (
|
|
491
|
-
padding-left: 1.25rem,
|
|
492
|
-
),
|
|
493
|
-
table-column-end: (
|
|
494
|
-
padding-right: 1.25rem,
|
|
495
|
-
),
|
|
496
534
|
autofit-col: (
|
|
497
535
|
padding-left: 0.125rem,
|
|
498
536
|
padding-right: 0.125rem,
|
|
@@ -654,8 +692,8 @@ $c-table-list-caption: () !default;
|
|
|
654
692
|
|
|
655
693
|
// .table-list .table-divider
|
|
656
694
|
|
|
657
|
-
$table-list-divider-padding-x:
|
|
658
|
-
$table-list-divider-padding-y: 0.
|
|
695
|
+
$table-list-divider-padding-x: 1rem !default;
|
|
696
|
+
$table-list-divider-padding-y: 0.5rem !default;
|
|
659
697
|
|
|
660
698
|
// .table-list .quick-action-menu
|
|
661
699
|
|
|
@@ -782,7 +820,7 @@ $c-table-list: map-merge(
|
|
|
782
820
|
table-divider: (
|
|
783
821
|
table-cell: (
|
|
784
822
|
padding-bottom: $table-list-divider-padding-y,
|
|
785
|
-
padding-left:
|
|
823
|
+
padding-left: 1.25rem,
|
|
786
824
|
padding-right: $table-list-divider-padding-x,
|
|
787
825
|
padding-top: $table-list-divider-padding-y,
|
|
788
826
|
),
|