@clayui/css 3.57.0 → 3.59.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.
@@ -28,123 +28,7 @@ caption {
28
28
  }
29
29
 
30
30
  .table {
31
- border-spacing: 0;
32
- color: $table-color;
33
- font-size: $table-font-size;
34
- margin-bottom: $table-margin-bottom;
35
- width: 100%;
36
-
37
- thead {
38
- // Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
39
-
40
- @include clay-css($c-table-thead);
41
-
42
- td,
43
- th {
44
- // Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
45
-
46
- background-color: $table-head-bg;
47
- border-bottom: $table-head-border-bottom-width solid
48
- $table-border-color;
49
- border-top-width: $table-head-border-top-width;
50
- vertical-align: bottom;
51
- }
52
-
53
- th a {
54
- @include clay-link($table-head-link);
55
- }
56
- }
57
-
58
- th {
59
- background-clip: padding-box;
60
- border-top: $table-border-width solid $table-border-color;
61
- color: $table-head-color;
62
- font-size: $table-head-font-size;
63
- font-weight: $table-head-font-weight;
64
- height: $table-head-height;
65
- padding: $table-cell-padding;
66
- position: relative;
67
- vertical-align: top;
68
- }
69
-
70
- td {
71
- background-clip: padding-box;
72
- border-bottom-width: $table-data-border-bottom-width;
73
- border-left-width: $table-data-border-left-width;
74
- border-right-width: $table-data-border-right-width;
75
- border-top-width: $table-data-border-top-width;
76
-
77
- border-color: $table-data-border-color;
78
- border-style: $table-data-border-style;
79
- padding: $table-cell-padding;
80
- position: relative;
81
- vertical-align: $table-data-vertical-align;
82
- }
83
-
84
- td:first-child,
85
- th:first-child,
86
- .table-cell-start {
87
- padding-left: $table-cell-gutters;
88
- }
89
-
90
- td:last-child,
91
- th:last-child,
92
- .table-cell-end {
93
- padding-right: $table-cell-gutters;
94
- }
95
-
96
- tbody {
97
- // Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
98
-
99
- @include clay-css($c-table-tbody);
100
-
101
- td,
102
- th {
103
- // Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
104
-
105
- background-color: map-get($c-table-tbody, background-color);
106
- }
107
- }
108
-
109
- tbody + tbody {
110
- border-top: calc(2 * #{$table-border-width}) solid $table-border-color;
111
- }
112
-
113
- tfoot {
114
- // Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
115
-
116
- @include clay-css($c-table-tfoot);
117
-
118
- td,
119
- th {
120
- // Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
121
-
122
- background-color: map-get($c-table-tfoot, background-color);
123
- }
124
- }
125
-
126
- caption {
127
- @include clay-css($c-table-caption);
128
- }
129
-
130
- .autofit-col {
131
- justify-content: center;
132
- padding-left: $table-cell-padding;
133
- padding-right: $table-cell-padding;
134
-
135
- &:first-child {
136
- padding-left: 0;
137
- }
138
-
139
- &:last-child {
140
- padding-right: 0;
141
- }
142
- }
143
-
144
- .custom-control,
145
- .form-check {
146
- margin-bottom: 0;
147
- }
31
+ @include clay-table-variant($c-table);
148
32
  }
149
33
 
150
34
  // Table Caption
@@ -156,37 +40,13 @@ caption {
156
40
  // Table Sm
157
41
 
158
42
  .table-sm {
159
- th,
160
- td {
161
- padding: $table-cell-padding-sm;
162
- }
43
+ @include clay-table-variant($c-table-sm);
163
44
  }
164
45
 
165
46
  // Table Bordered
166
47
 
167
48
  .table-bordered {
168
- border: $table-border-width solid $table-border-color;
169
-
170
- thead {
171
- td,
172
- th {
173
- border-bottom-width: calc(2 * #{$table-border-width});
174
-
175
- @if (
176
- $table-head-border-top-width ==
177
- 0 and
178
- $table-head-border-top-width
179
- ) {
180
- border-top-width: $table-border-width;
181
- }
182
- }
183
- }
184
-
185
- td,
186
- th {
187
- border: $table-border-width solid $table-border-color;
188
- border-width: $table-bordered-border-width;
189
- }
49
+ @include clay-table-variant($c-table-bordered);
190
50
  }
191
51
 
192
52
  .table-borderless {
@@ -212,16 +72,7 @@ caption {
212
72
  // Table Hover
213
73
 
214
74
  .table-hover {
215
- tbody tr {
216
- &:hover {
217
- &,
218
- td,
219
- th {
220
- color: $table-hover-color;
221
- background-color: $table-hover-bg;
222
- }
223
- }
224
- }
75
+ @include clay-table-variant($c-table-hover);
225
76
  }
226
77
 
227
78
  // Table Row Backgrounds
@@ -263,40 +114,8 @@ caption {
263
114
  }
264
115
  }
265
116
 
266
- // Table Active
267
-
268
- @include table-row-variant(active, $table-active-bg);
269
-
270
117
  // Table Disabled
271
118
 
272
- .table-disabled {
273
- color: $table-disabled-color;
274
-
275
- > td,
276
- > th {
277
- background-color: $table-disabled-bg;
278
- cursor: $table-disabled-cursor;
279
-
280
- a {
281
- color: $table-disabled-color;
282
- pointer-events: $table-disabled-pointer-events;
283
- }
284
- }
285
-
286
- .table-title,
287
- .table-list-title {
288
- color: $table-disabled-color;
289
- }
290
- }
291
-
292
- .table-hover .table-disabled:hover {
293
- &,
294
- > td,
295
- > th {
296
- background-color: $table-disabled-bg;
297
- }
298
- }
299
-
300
119
  .table-striped {
301
120
  tbody .table-disabled:nth-of-type(#{$table-striped-order}) {
302
121
  td,
@@ -402,173 +221,13 @@ caption {
402
221
  // Table List Skin
403
222
 
404
223
  .table-list {
405
- @include clay-css($c-table-list);
406
-
407
- thead:first-child,
408
- tbody:first-child,
409
- tfoot:first-child,
410
- caption:first-child + thead {
411
- tr:first-child {
412
- th,
413
- td {
414
- border-top-width: 0;
415
- }
416
-
417
- th:first-child,
418
- td:first-child,
419
- .table-cell-start {
420
- @include clay-css(
421
- map-deep-get(
422
- $c-table-list,
423
- table-row-start,
424
- table-cell-start
425
- )
426
- );
427
- }
428
-
429
- th:last-child,
430
- td:last-child,
431
- .table-cell-end {
432
- @include clay-css(
433
- map-deep-get($c-table-list, table-row-start, table-cell-end)
434
- );
435
- }
436
- }
437
- }
438
-
439
- caption {
440
- @include clay-css($c-table-list-caption);
441
- }
442
-
443
- thead,
444
- tbody,
445
- tfoot {
446
- td,
447
- th {
448
- @include clay-css($c-table-list-cell);
449
- }
450
-
451
- &:last-child {
452
- tr:last-child {
453
- th:first-child,
454
- td:first-child,
455
- .table-cell-start {
456
- @include clay-css(
457
- map-deep-get(
458
- $c-table-list,
459
- table-row-end,
460
- table-cell-start
461
- )
462
- );
463
- }
464
-
465
- th:last-child,
466
- td:last-child,
467
- .table-cell-end {
468
- @include clay-css(
469
- map-deep-get(
470
- $c-table-list,
471
- table-row-end,
472
- table-cell-end
473
- )
474
- );
475
- }
476
- }
477
- }
478
- }
479
-
480
- thead {
481
- // Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
482
-
483
- @include clay-css($c-table-list-thead);
484
-
485
- td,
486
- th {
487
- // Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
488
-
489
- background-color: $table-list-head-bg;
490
- font-size: $table-list-head-font-size;
491
- font-weight: $table-list-head-font-weight;
492
- height: $table-list-head-height;
493
- vertical-align: $table-list-head-vertical-alignment;
494
- }
495
-
496
- th a {
497
- @include clay-link($table-list-head-link);
498
- }
499
- }
500
-
501
- tbody {
502
- // Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
503
-
504
- @include clay-css($c-table-list-tbody);
505
-
506
- td,
507
- th {
508
- // Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
509
-
510
- background-color: map-get($c-table-list-tbody, background-color);
511
- vertical-align: middle;
512
- }
513
- }
514
-
515
- tfoot {
516
- // Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
517
-
518
- @include clay-css($c-table-list-tfoot);
519
-
520
- td,
521
- th {
522
- background-color: map-get($c-table-list-tfoot, background-color);
523
- vertical-align: middle;
524
- }
525
- }
526
-
527
- .table-row-start {
528
- .table-cell-start {
529
- @include clay-css(
530
- map-deep-get($c-table-list, table-row-start, table-cell-start)
531
- );
532
- }
533
-
534
- .table-cell-end {
535
- @include clay-css(
536
- map-deep-get($c-table-list, table-row-start, table-cell-end)
537
- );
538
- }
539
- }
540
-
541
- .table-row-end {
542
- .table-cell-start {
543
- @include clay-css(
544
- map-deep-get($c-table-list, table-row-end, table-cell-start)
545
- );
546
- }
547
-
548
- .table-cell-end {
549
- @include clay-css(
550
- map-deep-get($c-table-list, table-row-end, table-cell-end)
551
- );
552
- }
553
- }
224
+ @include clay-table-variant($c-table-list);
554
225
  }
555
226
 
556
227
  // Table List Bordered
557
228
 
558
- .table-list.table-bordered {
559
- thead,
560
- tbody,
561
- tfoot {
562
- th,
563
- td {
564
- @include clay-css($c-table-list-bordered-cell);
565
- }
566
- }
567
-
568
- th:first-child,
569
- td:first-child {
570
- border-left-width: 0;
571
- }
229
+ .table.table-list.table-bordered {
230
+ @include clay-table-variant($c-table-list-table-bordered);
572
231
  }
573
232
 
574
233
  // Table List Striped
@@ -585,68 +244,7 @@ caption {
585
244
  // Table List Hover
586
245
 
587
246
  .table-list.table-hover {
588
- tbody tr {
589
- &:hover {
590
- &,
591
- td,
592
- th {
593
- background-color: $table-list-hover-bg;
594
- }
595
- }
596
- }
597
- }
598
-
599
- // Table List Active
600
-
601
- .table-list.table-hover {
602
- .table-active {
603
- &:hover {
604
- &,
605
- > th,
606
- > td {
607
- background-color: $table-list-active-bg;
608
- }
609
- }
610
- }
611
- }
612
-
613
- .table-list .table-active {
614
- &,
615
- > th,
616
- > td {
617
- background-color: $table-list-active-bg;
618
- }
619
- }
620
-
621
- // Table List Disabled
622
-
623
- .table-list .table-disabled {
624
- background-color: $table-list-disabled-bg;
625
- color: $table-list-disabled-color;
626
-
627
- > td,
628
- > th {
629
- background-color: $table-list-disabled-bg;
630
- cursor: $table-list-disabled-cursor;
631
-
632
- a {
633
- color: $table-list-disabled-color;
634
- pointer-events: $table-list-disabled-pointer-events;
635
- }
636
- }
637
-
638
- .table-title,
639
- .table-list-title {
640
- color: $table-list-disabled-color;
641
- }
642
- }
643
-
644
- .table-list.table-hover .table-disabled:hover {
645
- &,
646
- > td,
647
- > th {
648
- background-color: $table-list-disabled-bg;
649
- }
247
+ @include clay-table-variant($c-table-list-table-hover);
650
248
  }
651
249
 
652
250
  .table-list.table-striped {
@@ -716,28 +314,6 @@ caption {
716
314
  }
717
315
  }
718
316
 
719
- .table .table-divider {
720
- td,
721
- th {
722
- background-color: $table-divider-bg;
723
- color: $table-divider-color;
724
- font-size: $table-divider-font-size;
725
- font-weight: $table-divider-font-weight;
726
- padding: $table-divider-padding;
727
- text-transform: $table-divider-text-transform;
728
- }
729
- }
730
-
731
- .table-list .table-divider {
732
- td,
733
- th {
734
- padding-bottom: $table-list-divider-padding-y;
735
- padding-left: $table-list-divider-padding-x;
736
- padding-right: $table-list-divider-padding-x;
737
- padding-top: $table-list-divider-padding-y;
738
- }
739
- }
740
-
741
317
  // Table Vertical Align
742
318
 
743
319
  .table-valign-bottom {
@@ -886,15 +462,6 @@ caption {
886
462
  }
887
463
  }
888
464
 
889
- .table {
890
- .quick-action-menu {
891
- align-items: $table-quick-action-menu-align-items;
892
- background-color: $table-quick-action-menu-bg;
893
- padding-bottom: $table-cell-padding;
894
- padding-top: $table-cell-padding;
895
- }
896
- }
897
-
898
465
  .table-striped {
899
466
  tbody tr:nth-of-type(#{$table-striped-order}) {
900
467
  .quick-action-menu {
@@ -909,39 +476,6 @@ caption {
909
476
  }
910
477
  }
911
478
 
912
- .table-hover {
913
- tbody tr {
914
- &:hover {
915
- .quick-action-menu {
916
- background-color: $table-quick-action-menu-hover-bg;
917
- }
918
- }
919
- }
920
-
921
- tbody .table-active {
922
- &:hover {
923
- .quick-action-menu {
924
- background-color: $table-quick-action-menu-active-bg;
925
- }
926
- }
927
- }
928
- }
929
-
930
- .table-active {
931
- .quick-action-menu {
932
- background-color: $table-quick-action-menu-active-bg;
933
- }
934
- }
935
-
936
- .table-list {
937
- .quick-action-menu {
938
- align-items: $table-list-quick-action-menu-align-items;
939
- background-color: $table-list-quick-action-menu-bg;
940
- bottom: 0;
941
- top: 0;
942
- }
943
- }
944
-
945
479
  .table-list.table-striped {
946
480
  tbody tr:nth-of-type(#{$table-striped-order}) {
947
481
  .quick-action-menu {
@@ -956,30 +490,6 @@ caption {
956
490
  }
957
491
  }
958
492
 
959
- .table-list.table-hover {
960
- tbody tr {
961
- &:hover {
962
- .quick-action-menu {
963
- background-color: $table-list-quick-action-menu-hover-bg;
964
- }
965
- }
966
- }
967
-
968
- tbody .table-active {
969
- &:hover {
970
- .quick-action-menu {
971
- background-color: $table-list-quick-action-menu-active-bg;
972
- }
973
- }
974
- }
975
- }
976
-
977
- .table-list .table-active {
978
- .quick-action-menu {
979
- background-color: $table-list-quick-action-menu-active-bg;
980
- }
981
- }
982
-
983
493
  // Table Column Utilities
984
494
 
985
495
  .table-column-text-start,
@@ -37,6 +37,23 @@
37
37
 
38
38
  .component-text {
39
39
  @include clay-css(map-get($treeview, component-text));
40
+
41
+ > .autofit-row {
42
+ @include clay-css(
43
+ map-deep-get($treeview, component-text, autofit-row)
44
+ );
45
+
46
+ > .autofit-col {
47
+ @include clay-css(
48
+ map-deep-get(
49
+ $treeview,
50
+ component-text,
51
+ autofit-row,
52
+ autofit-col
53
+ )
54
+ );
55
+ }
56
+ }
40
57
  }
41
58
 
42
59
  &.show-component-expander-on-hover {
@@ -99,6 +116,38 @@
99
116
  );
100
117
  }
101
118
  }
119
+
120
+ .quick-action-item {
121
+ @include clay-css(map-get($treeview, quick-action-item));
122
+ }
123
+
124
+ .autofit-row {
125
+ @include clay-css(map-get($treeview, autofit-row));
126
+ }
127
+
128
+ &.show-quick-actions-on-hover {
129
+ .treeview-link {
130
+ &:not(:hover):not(:focus):not(.focus) {
131
+ .quick-action-item {
132
+ display: none;
133
+ }
134
+ }
135
+
136
+ &:disabled,
137
+ &.disabled {
138
+ .quick-action-item {
139
+ display: none;
140
+ }
141
+ }
142
+
143
+ .quick-action-item {
144
+ &:disabled,
145
+ &.disabled {
146
+ display: none;
147
+ }
148
+ }
149
+ }
150
+ }
102
151
  }
103
152
 
104
153
  .treeview-group {
@@ -134,22 +183,6 @@
134
183
  );
135
184
  }
136
185
 
137
- &.hover,
138
- &:hover,
139
- &.focus,
140
- &:focus {
141
- .component-action {
142
- display: flex;
143
- }
144
- }
145
-
146
- &:disabled,
147
- &.disabled {
148
- .component-action {
149
- display: none;
150
- }
151
- }
152
-
153
186
  &.show,
154
187
  &[aria-expanded='true'] {
155
188
  .component-expander {
@@ -162,6 +195,17 @@
162
195
  }
163
196
  }
164
197
  }
198
+
199
+ > .autofit-row,
200
+ .c-inner > .autofit-row {
201
+ @include clay-css(map-deep-get($treeview, treeview-link, autofit-row));
202
+
203
+ > .autofit-col {
204
+ @include clay-css(
205
+ map-deep-get($treeview, treeview-link, autofit-row, autofit-col)
206
+ );
207
+ }
208
+ }
165
209
  }
166
210
 
167
211
  .treeview-nested-margins {
@@ -430,6 +430,10 @@
430
430
 
431
431
  'zh-tw': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#C0CFD8" d="M0 64h512v384H0z"/><path fill="#E03232" d="M16 80h480v352H16z"/><path fill="#0035A0" d="M16 80h192v160H16z"/><circle fill="#FFF" cx="112" cy="160" r="32"/></svg>',
432
432
 
433
+ 'folder-lock-line': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M144 207.821c0-42.013 64-42.363 64 0v48.063h-64v-48.063Z" fill="#{$color}"/><path class="lexicon-icon-outline" fill-rule="evenodd" clip-rule="evenodd" d="M82.216 479.998c.014 11.039 5.74 21.782 16.004 27.709 15.14 8.744 34.494 3.713 43.463-11.298L409.336 48.431c9.162-15.336 4-35.205-11.467-44.138-15.14-8.744-34.494-3.713-43.463 11.299l-47.069 78.78L241.1 44.664C230 36.362 216.5 31.86 202.7 31.86H64c-35.3 0-64 28.709-64 64.02v320.099c0 35.31 28.7 64.019 64 64.019h18.216Zm52.096-96.029L224 233.855v-26.036c0-63.717-96-64.067-96 0v48.063h-9.594C104.297 255.882 96 267.386 96 281.49v76.871c0 14.104 8.297 25.608 22.406 25.608h15.906Z" fill="#{$color}"/><path class="lexicon-icon-outline" d="M448 479.998H220.847L430.373 127.89H448c35.3 0 64 28.709 64 64.02v224.069c0 35.31-28.7 64.019-64 64.019Z" fill="#{$color}"/></svg>',
434
+
435
+ 'folder-lock': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M208 175.906c0-42.35-64-42-64 0v48.049h64v-48.049Zm-16 144.096h-32v-48.049h32v48.049Z" fill="#{$color}"/><path class="lexicon-icon-outline" fill-rule="evenodd" clip-rule="evenodd" d="M352 96h96c35.3 0 64 28.7 64 64v224c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0h138.7c13.8 0 27.3 4.5 38.4 12.8L352 96ZM224 223.953h6.406c14.094 0 25.594 11.5 25.594 25.6V326.4c0 14.1-11.5 25.6-25.594 25.6h-112C104.297 352 96 340.5 96 326.4v-76.847c0-14.1 8.297-25.6 22.406-25.6H128v-48.049c0-64.047 96-63.697 96 0v48.049Z" fill="#{$color}"/></svg>',
436
+
433
437
  'folder': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M448 128h-96L241.1 44.8C230 36.5 216.5 32 202.7 32H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64z" fill="#{$color}"/></svg>',
434
438
 
435
439
  'font-family': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline font-family-capital-a" d="M264.4 375.1 175.6 126c-15.3-40.4-69.5-39.4-84.8 0l-89 249.2c-11.7 34.4 38.6 53.1 52.1 17.8l20.5-62.7h117.4l20.5 62.6c14.1 36.5 63.6 15.4 52.1-17.8zM88.6 286.7l43.9-134.4h1.1l43.9 134.4H88.6z" fill="#{$color}"/><path class="lexicon-icon-outline font-family-lowercase-a" d="M316.1 229.9c-8.5 34.1 46.5 36.9 49.9 12.4 5.8-37.3 100.5-52.5 90.3 25.1C176.5 251 345 517.6 456.4 374c-6.9 47.6 55.6 44.7 55.6 11.2V247c.1-96.9-170.5-108.8-195.9-17.1zm43.5 110.7c.8-33.3 32-39.8 96.9-36.1 5.5 88-96.9 82.2-96.9 36.1z" fill="#{$color}"/></svg>',