@clayui/css 3.56.0 → 3.58.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.
@@ -32,6 +32,8 @@ $table-color: $body-color !default;
32
32
  $table-font-size: null !default;
33
33
  $table-margin-bottom: 0 !default;
34
34
 
35
+ // .table-hover
36
+
35
37
  $table-hover-bg: #ececec !default;
36
38
  $table-hover-color: $table-color !default;
37
39
 
@@ -75,6 +77,8 @@ $table-head-font-size: null !default;
75
77
  $table-head-font-weight: null !default;
76
78
  $table-head-height: 36px !default;
77
79
 
80
+ // table-cell: Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
81
+
78
82
  $c-table-thead: () !default;
79
83
  $c-table-thead: map-merge(
80
84
  (
@@ -219,6 +223,220 @@ $table-action-link: map-deep-merge(
219
223
  $table-action-link
220
224
  );
221
225
 
226
+ // .table
227
+
228
+ // thead, tbody, tfoot Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
229
+ // thead table-cell, tbody table-cell, tfoot table-cell: Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
230
+
231
+ $c-table: () !default;
232
+ $c-table: map-deep-merge(
233
+ (
234
+ border-spacing: 0,
235
+ color: $table-color,
236
+ font-size: $table-font-size,
237
+ margin-bottom: $table-margin-bottom,
238
+ width: 100%,
239
+ thead:
240
+ map-deep-merge(
241
+ $c-table-thead,
242
+ (
243
+ table-cell: (
244
+ background-color: $table-head-bg,
245
+ border-bottom: $table-head-border-bottom-width solid
246
+ $table-border-color,
247
+ border-top-width: $table-head-border-top-width,
248
+ vertical-align: bottom,
249
+ ),
250
+ th: (
251
+ href: $table-head-link,
252
+ ),
253
+ )
254
+ ),
255
+ table-column-start: (
256
+ padding-left: $table-cell-gutters,
257
+ ),
258
+ table-column-end: (
259
+ padding-right: $table-cell-gutters,
260
+ ),
261
+ th: (
262
+ background-clip: padding-box,
263
+ border-top: $table-border-width solid $table-border-color,
264
+ color: $table-head-color,
265
+ font-size: $table-head-font-size,
266
+ font-weight: $table-head-font-weight,
267
+ height: $table-head-height,
268
+ padding: $table-cell-padding,
269
+ position: relative,
270
+ vertical-align: top,
271
+ ),
272
+ td: (
273
+ background-clip: padding-box,
274
+ border-bottom-width: $table-data-border-bottom-width,
275
+ border-color: $table-data-border-color,
276
+ border-left-width: $table-data-border-left-width,
277
+ border-right-width: $table-data-border-right-width,
278
+ border-style: $table-data-border-style,
279
+ border-top-width: $table-data-border-top-width,
280
+ padding: $table-cell-padding,
281
+ position: relative,
282
+ vertical-align: $table-data-vertical-align,
283
+ ),
284
+ tbody:
285
+ map-deep-merge(
286
+ $c-table-tbody,
287
+ (
288
+ table-cell: (
289
+ background-color:
290
+ map-get($c-table-tbody, background-color),
291
+ ),
292
+ tbody: (
293
+ border-top: calc(2 * #{$table-border-width}) solid
294
+ $table-border-color,
295
+ ),
296
+ )
297
+ ),
298
+ tfoot:
299
+ map-deep-merge(
300
+ $c-table-tfoot,
301
+ (
302
+ table-cell: (
303
+ background-color:
304
+ map-get($c-table-tfoot, background-color),
305
+ ),
306
+ )
307
+ ),
308
+ caption: $c-table-caption,
309
+ table-divider: (
310
+ table-cell: (
311
+ background-color: $table-divider-bg,
312
+ color: $table-divider-color,
313
+ font-size: $table-divider-font-size,
314
+ font-weight: $table-divider-font-weight,
315
+ padding: $table-divider-padding,
316
+ text-transform: $table-divider-text-transform,
317
+ ),
318
+ ),
319
+ table-active: (
320
+ background-color: $table-active-bg,
321
+ table-cell: (
322
+ background-color: $table-active-bg,
323
+ ),
324
+ quick-action-menu: (
325
+ background-color: $table-quick-action-menu-active-bg,
326
+ ),
327
+ ),
328
+ table-disabled: (
329
+ color: $table-disabled-color,
330
+ table-cell: (
331
+ background-color: $table-disabled-bg,
332
+ cursor: $table-disabled-cursor,
333
+ href: (
334
+ color: $table-disabled-color,
335
+ pointer-events: $table-disabled-pointer-events,
336
+ ),
337
+ ),
338
+ table-title: (
339
+ color: $table-disabled-color,
340
+ ),
341
+ table-list-title: (
342
+ color: $table-disabled-color,
343
+ ),
344
+ ),
345
+ autofit-col: (
346
+ justify-content: center,
347
+ padding-left: $table-cell-padding,
348
+ padding-right: $table-cell-padding,
349
+ first-child: (
350
+ padding-left: 0,
351
+ ),
352
+ last-child: (
353
+ padding-right: 0,
354
+ ),
355
+ ),
356
+ custom-control: (
357
+ margin-bottom: 0,
358
+ ),
359
+ quick-action-menu: (
360
+ align-items: $table-quick-action-menu-align-items,
361
+ background-color: $table-quick-action-menu-bg,
362
+ padding-bottom: $table-cell-padding,
363
+ padding-top: $table-cell-padding,
364
+ ),
365
+ ),
366
+ $c-table
367
+ );
368
+
369
+ // .table-hover
370
+
371
+ $c-table-hover: () !default;
372
+ $c-table-hover: map-deep-merge(
373
+ (
374
+ tbody: (
375
+ tr: (
376
+ hover: (
377
+ background-color: $table-hover-bg,
378
+ color: $table-hover-color,
379
+ table-cell: (
380
+ background-color: $table-hover-bg,
381
+ color: $table-hover-color,
382
+ ),
383
+ quick-action-menu: (
384
+ background-color: $table-quick-action-menu-hover-bg,
385
+ ),
386
+ ),
387
+ ),
388
+ ),
389
+ table-active: (
390
+ hover: (
391
+ quick-action-menu: (
392
+ background-color: $table-quick-action-menu-active-bg,
393
+ ),
394
+ ),
395
+ ),
396
+ table-disabled: (
397
+ hover: (
398
+ background-color: $table-disabled-bg,
399
+ table-cell: (
400
+ background-color: $table-disabled-bg,
401
+ ),
402
+ ),
403
+ ),
404
+ ),
405
+ $c-table-hover
406
+ );
407
+
408
+ // .table-bordered
409
+
410
+ $table-bordered-border-width: $table-border-width !default;
411
+
412
+ $c-table-bordered: () !default;
413
+ $c-table-bordered: map-deep-merge(
414
+ (
415
+ border: $table-border-width solid $table-border-color,
416
+ thead: (
417
+ table-cell: (
418
+ border-bottom-width: calc(2 * #{$table-border-width}),
419
+ ),
420
+ ),
421
+ table-cell: (
422
+ border: $table-border-width solid $table-border-color,
423
+ ),
424
+ ),
425
+ $c-table-bordered
426
+ );
427
+
428
+ // .table-sm
429
+
430
+ $c-table-sm: () !default;
431
+ $c-table-sm: map-deep-merge(
432
+ (
433
+ table-cell: (
434
+ padding: $table-cell-padding-sm,
435
+ ),
436
+ ),
437
+ $c-table-sm
438
+ );
439
+
222
440
  // Table Dark Variant
223
441
 
224
442
  $table-dark-bg: $gray-800 !default;
@@ -230,10 +448,6 @@ $table-dark-hover-color: $table-dark-color !default;
230
448
 
231
449
  $table-dark-accent-bg: rgba($white, 0.05) !default;
232
450
 
233
- // Table Bordered
234
-
235
- $table-bordered-border-width: $table-border-width !default;
236
-
237
451
  /// @deprecated as of v3.x with no replacement, this color modifier is too specific to support a variety of colors
238
452
 
239
453
  $table-bg-level: -9 !default;
@@ -257,62 +471,6 @@ $table-list-font-size: null !default;
257
471
  $table-list-margin-bottom: $table-list-border-y-width !default;
258
472
  $table-list-margin-top: null !default;
259
473
 
260
- $c-table-list: () !default;
261
- $c-table-list: map-merge(
262
- (
263
- border-collapse: separate,
264
- border-color: $table-list-border-color,
265
- border-style: solid,
266
- border-width: $table-list-border-y-width $table-list-border-x-width,
267
- border-radius: clay-enable-rounded($table-list-border-radius),
268
- color: $table-list-color,
269
- font-size: $table-list-font-size,
270
- margin-bottom: $table-list-margin-bottom,
271
- margin-top: $table-list-margin-top,
272
- table-row-start: (
273
- table-cell-start: (
274
- border-top-left-radius:
275
- clay-enable-rounded(
276
- clay-border-radius-inner(
277
- $table-list-border-radius,
278
- $table-list-border-y-width
279
- )
280
- ),
281
- ),
282
- table-cell-end: (
283
- border-top-right-radius:
284
- clay-enable-rounded(
285
- clay-border-radius-inner(
286
- $table-list-border-radius,
287
- $table-list-border-y-width
288
- )
289
- ),
290
- ),
291
- ),
292
- table-row-end: (
293
- table-cell-start: (
294
- border-bottom-left-radius:
295
- clay-enable-rounded(
296
- clay-border-radius-inner(
297
- $table-list-border-radius,
298
- $table-list-border-y-width
299
- )
300
- ),
301
- ),
302
- table-cell-end: (
303
- border-bottom-right-radius:
304
- clay-enable-rounded(
305
- clay-border-radius-inner(
306
- $table-list-border-radius,
307
- $table-list-border-y-width
308
- )
309
- ),
310
- ),
311
- ),
312
- ),
313
- $c-table-list
314
- );
315
-
316
474
  // .table-list.table-striped
317
475
 
318
476
  $table-list-accent-bg: #f2f2f2 !default;
@@ -406,7 +564,7 @@ $c-table-list-tfoot: map-merge(
406
564
  $c-table-list-tfoot
407
565
  );
408
566
 
409
- // .table-list.table-bordered {thead,tbody,tfoot} {th,td}
567
+ // .table.table-list.table-bordered th, .table.table-list.table-bordered td
410
568
 
411
569
  $c-table-list-bordered-cell: () !default;
412
570
  $c-table-list-bordered-cell: map-merge(
@@ -499,6 +657,210 @@ $table-list-action-link: map-deep-merge(
499
657
  $table-list-action-link
500
658
  );
501
659
 
660
+ // .table-list
661
+
662
+ // thead, tbody, tfoot: Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
663
+ // thead table-cell, tbody table-cell, tfoot table-cell: Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
664
+
665
+ $c-table-list: () !default;
666
+ $c-table-list: map-merge(
667
+ (
668
+ border-collapse: separate,
669
+ border-color: $table-list-border-color,
670
+ border-radius: clay-enable-rounded($table-list-border-radius),
671
+ border-style: solid,
672
+ border-width: $table-list-border-y-width $table-list-border-x-width,
673
+ color: $table-list-color,
674
+ font-size: $table-list-font-size,
675
+ margin-bottom: $table-list-margin-bottom,
676
+ margin-top: $table-list-margin-top,
677
+ thead:
678
+ map-deep-merge(
679
+ $c-table-list-thead,
680
+ (
681
+ table-cell: (
682
+ background-color: $table-list-head-bg,
683
+ border-bottom-width: 0,
684
+ font-size: $table-list-head-font-size,
685
+ font-weight: $table-list-head-font-weight,
686
+ height: $table-list-head-height,
687
+ vertical-align: $table-list-head-vertical-alignment,
688
+ href: $table-list-head-link,
689
+ ),
690
+ )
691
+ ),
692
+ table-cell: $c-table-list-cell,
693
+ tbody:
694
+ map-deep-merge(
695
+ $c-table-list-tbody,
696
+ (
697
+ table-cell: (
698
+ background-color:
699
+ map-get($c-table-list-tbody, background-color),
700
+ vertical-align: middle,
701
+ ),
702
+ )
703
+ ),
704
+ tfoot:
705
+ map-deep-merge(
706
+ $c-table-list-tfoot,
707
+ (
708
+ table-cell: (
709
+ background-color:
710
+ map-get($c-table-list-tfoot, background-color),
711
+ vertical-align: middle,
712
+ ),
713
+ )
714
+ ),
715
+ caption: $c-table-list-caption,
716
+ table-divider: (
717
+ table-cell: (
718
+ padding-bottom: $table-list-divider-padding-y,
719
+ padding-left: $table-list-divider-padding-x,
720
+ padding-right: $table-list-divider-padding-x,
721
+ padding-top: $table-list-divider-padding-y,
722
+ ),
723
+ ),
724
+ table-active: (
725
+ background-color: $table-list-active-bg,
726
+ table-cell: (
727
+ background-color: $table-list-active-bg,
728
+ ),
729
+ quick-action-menu: (
730
+ background-color: $table-list-quick-action-menu-active-bg,
731
+ ),
732
+ ),
733
+ table-disabled: (
734
+ background-color: $table-list-disabled-bg,
735
+ color: $table-list-disabled-color,
736
+ table-cell: (
737
+ background-color: $table-list-disabled-bg,
738
+ color: $table-list-disabled-color,
739
+ href: (
740
+ color: $table-list-disabled-color,
741
+ pointer-events: $table-list-disabled-pointer-events,
742
+ ),
743
+ ),
744
+ table-title: (
745
+ color: $table-list-disabled-color,
746
+ ),
747
+ table-list-title: (
748
+ color: $table-list-disabled-color,
749
+ ),
750
+ ),
751
+ table-row-start: (
752
+ table-cell: (
753
+ border-top-width: 0,
754
+ ),
755
+ table-cell-start: (
756
+ border-top-left-radius:
757
+ clay-enable-rounded(
758
+ clay-border-radius-inner(
759
+ $table-list-border-radius,
760
+ $table-list-border-y-width
761
+ )
762
+ ),
763
+ ),
764
+ table-cell-end: (
765
+ border-top-right-radius:
766
+ clay-enable-rounded(
767
+ clay-border-radius-inner(
768
+ $table-list-border-radius,
769
+ $table-list-border-y-width
770
+ )
771
+ ),
772
+ ),
773
+ ),
774
+ table-row-end: (
775
+ table-cell-start: (
776
+ border-bottom-left-radius:
777
+ clay-enable-rounded(
778
+ clay-border-radius-inner(
779
+ $table-list-border-radius,
780
+ $table-list-border-y-width
781
+ )
782
+ ),
783
+ ),
784
+ table-cell-end: (
785
+ border-bottom-right-radius:
786
+ clay-enable-rounded(
787
+ clay-border-radius-inner(
788
+ $table-list-border-radius,
789
+ $table-list-border-y-width
790
+ )
791
+ ),
792
+ ),
793
+ ),
794
+ quick-action-menu: (
795
+ align-items: $table-list-quick-action-menu-align-items,
796
+ background-color: $table-list-quick-action-menu-bg,
797
+ bottom: 0,
798
+ top: 0,
799
+ ),
800
+ ),
801
+ $c-table-list
802
+ );
803
+
804
+ // .table-list.table-hover
805
+
806
+ $c-table-list-table-hover: () !default;
807
+ $c-table-list-table-hover: map-deep-merge(
808
+ (
809
+ tbody: (
810
+ tr: (
811
+ hover: (
812
+ background-color: $table-list-hover-bg,
813
+ table-cell: (
814
+ background-color: $table-list-hover-bg,
815
+ ),
816
+ quick-action-menu: (
817
+ background-color: $table-list-quick-action-menu-hover-bg,
818
+ ),
819
+ ),
820
+ ),
821
+ ),
822
+ table-active: (
823
+ hover: (
824
+ background-color: $table-list-active-bg,
825
+ table-cell: (
826
+ background-color: $table-list-active-bg,
827
+ ),
828
+ quick-action-menu: (
829
+ background-color: $table-list-quick-action-menu-hover-bg,
830
+ ),
831
+ ),
832
+ ),
833
+ table-disabled: (
834
+ background-color: $table-list-disabled-bg,
835
+ hover: (
836
+ background-color: $table-list-disabled-bg,
837
+ table-cell: (
838
+ background-color: $table-list-disabled-bg,
839
+ ),
840
+ ),
841
+ ),
842
+ ),
843
+ $c-table-list-table-hover
844
+ );
845
+
846
+ // .table.table-list.table-bordered
847
+
848
+ $c-table-list-table-bordered: () !default;
849
+ $c-table-list-table-bordered: map-deep-merge(
850
+ (
851
+ thead: (
852
+ table-cell: (
853
+ border-bottom-width: 0,
854
+ ),
855
+ ),
856
+ table-cell: $c-table-list-bordered-cell,
857
+ table-column-start: (
858
+ border-left-width: 0,
859
+ ),
860
+ ),
861
+ $c-table-list-table-bordered
862
+ );
863
+
502
864
  // Table Valign
503
865
 
504
866
  $table-valign-top-body-cell-padding-top: 1rem !default;
@@ -7,9 +7,18 @@ $treeview: map-merge(
7
7
  list-style: none,
8
8
  margin-bottom: 0,
9
9
  padding: 2px 0,
10
+ btn: (
11
+ font-size: 12px,
12
+ line-height: 1,
13
+ padding: 6px 8px,
14
+ c-inner: (
15
+ margin: -7px -8px,
16
+ ),
17
+ ),
10
18
  btn-monospaced: (
11
- font-size: 14px,
19
+ font-size: inherit,
12
20
  height: 24px,
21
+ padding: 0,
13
22
  width: 24px,
14
23
  focus: (
15
24
  box-shadow: $component-focus-inset-box-shadow,
@@ -86,8 +95,11 @@ $treeview: map-merge(
86
95
  cursor: $disabled-cursor,
87
96
  ),
88
97
  ),
98
+ component-expander: (
99
+ font-size: 10px,
100
+ ),
89
101
  component-action: (
90
- display: none,
102
+ font-size: 16px,
91
103
  margin-left: 2px,
92
104
  margin-right: 2px,
93
105
  hover: (
@@ -102,18 +114,29 @@ $treeview: map-merge(
102
114
  ),
103
115
  ),
104
116
  component-icon: (
105
- display: inline,
117
+ display: inline-block,
118
+ font-size: 16px,
106
119
  height: auto,
107
- margin-left: 4px,
108
- margin-right: 4px,
120
+ margin: 4px,
121
+ vertical-align: middle,
109
122
  width: auto,
123
+ lexicon-icon: (
124
+ display: block,
125
+ ),
110
126
  ),
111
127
  component-text: (
112
- padding-bottom: 1.5px,
128
+ line-height: 24px,
113
129
  padding-left: 4px,
114
- padding-top: 1.5px,
115
130
  user-select: auto,
116
131
  ),
132
+ quick-action-item: (
133
+ margin: 0 2px,
134
+ min-height: 0,
135
+ min-width: 0,
136
+ ),
137
+ autofit-row: (
138
+ align-items: center,
139
+ ),
117
140
  ),
118
141
  $treeview
119
142
  );