@clayui/css 3.106.1 → 3.107.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.
@@ -898,10 +898,48 @@ $btn-palette: map-deep-merge(
898
898
  light: $btn-light,
899
899
  dark: $btn-dark,
900
900
  link: $btn-link,
901
- btn-beta: (
901
+ '.btn-translucent': (
902
+ extend: '%clay-btn-xs',
903
+ border-radius: $rounded-pill,
904
+ ),
905
+ '.btn-translucent.btn-primary': (
906
+ background-color: rgba($primary-d1, 0.04),
907
+ border-color: transparent,
908
+ color: $primary-d1,
909
+ hover: (
910
+ background-color: rgba($primary-d1, 0.06),
911
+ color: $primary-d1,
912
+ ),
913
+ focus: (
914
+ background-color: rgba($primary-d1, 0.06),
915
+ color: $primary-d1,
916
+ ),
917
+ active: (
918
+ background-color: rgba($primary-d1, 0.08),
919
+ color: $primary-d1,
920
+ ),
921
+ ),
922
+ '.btn-translucent.btn-secondary': (
923
+ background-color: rgba($dark-l2, 0.04),
924
+ border-color: transparent,
925
+ color: $secondary,
926
+ hover: (
927
+ background-color: rgba($dark-l2, 0.06),
928
+ color: $secondary,
929
+ ),
930
+ focus: (
931
+ background-color: rgba($dark-l2, 0.06),
932
+ color: $secondary,
933
+ ),
934
+ active: (
935
+ background-color: rgba($dark-l2, 0.08),
936
+ color: $secondary,
937
+ ),
938
+ ),
939
+ '.btn-translucent.btn-info, .btn-beta': (
902
940
  background-color: rgba($info-d1, 0.04),
941
+ border-color: transparent,
903
942
  color: $info-d1,
904
- text-transform: uppercase,
905
943
  hover: (
906
944
  background-color: rgba($info-d1, 0.06),
907
945
  color: $info-d1,
@@ -910,12 +948,89 @@ $btn-palette: map-deep-merge(
910
948
  background-color: rgba($info-d1, 0.06),
911
949
  color: $info-d1,
912
950
  ),
951
+ active: (
952
+ background-color: rgba($info-d1, 0.08),
953
+ color: $info-d1,
954
+ ),
955
+ ),
956
+ '.btn-translucent.btn-success': (
957
+ background-color: rgba($success-d1, 0.04),
958
+ border-color: transparent,
959
+ color: $success-d1,
960
+ hover: (
961
+ background-color: rgba($success-d1, 0.06),
962
+ color: $success-d1,
963
+ ),
964
+ focus: (
965
+ background-color: rgba($success-d1, 0.06),
966
+ color: $success-d1,
967
+ ),
968
+ active: (
969
+ background-color: rgba($success-d1, 0.08),
970
+ color: $success-d1,
971
+ ),
972
+ ),
973
+ '.btn-translucent.btn-warning': (
974
+ background-color: rgba($warning-d1, 0.04),
975
+ border-color: transparent,
976
+ color: $warning-d1,
977
+ hover: (
978
+ background-color: rgba($warning-d1, 0.06),
979
+ color: $warning-d1,
980
+ ),
981
+ focus: (
982
+ background-color: rgba($warning-d1, 0.06),
983
+ color: $warning-d1,
984
+ ),
985
+ active: (
986
+ background-color: rgba($warning-d1, 0.08),
987
+ color: $warning-d1,
988
+ ),
989
+ ),
990
+ '.btn-translucent.btn-danger': (
991
+ background-color: rgba($danger-d1, 0.04),
992
+ border-color: transparent,
993
+ color: $danger-d1,
994
+ hover: (
995
+ background-color: rgba($danger-d1, 0.06),
996
+ color: $danger-d1,
997
+ ),
998
+ focus: (
999
+ background-color: rgba($danger-d1, 0.06),
1000
+ color: $danger-d1,
1001
+ ),
1002
+ active: (
1003
+ background-color: rgba($danger-d1, 0.08),
1004
+ color: $danger-d1,
1005
+ ),
913
1006
  ),
914
- btn-beta-dark: (
1007
+ '%clay-dark-btn-translucent-primary': (
1008
+ background-color: rgba($primary-l2, 0.04),
1009
+ border-color: transparent,
1010
+ color: $primary-l1,
1011
+ hover: (
1012
+ background-color: rgba($primary-l2, 0.06),
1013
+ color: $primary-l1,
1014
+ ),
1015
+ focus: (
1016
+ background-color: rgba($primary-l2, 0.06),
1017
+ color: $primary-l1,
1018
+ ),
1019
+ active: (
1020
+ background-color: rgba($primary-l2, 0.08),
1021
+ color: $primary-l1,
1022
+ ),
1023
+ ),
1024
+ '.clay-dark .btn-translucent.btn-primary': (
1025
+ extend: '%clay-dark-btn-translucent-primary',
1026
+ ),
1027
+ '.clay-dark.btn-translucent.btn-primary': (
1028
+ extend: '%clay-dark-btn-translucent-primary',
1029
+ ),
1030
+ '%clay-dark-btn-translucent-info': (
915
1031
  background-color: rgba($info-l2, 0.04),
916
1032
  border-color: transparent,
917
1033
  color: $info-l1,
918
- text-transform: uppercase,
919
1034
  hover: (
920
1035
  background-color: rgba($info-l2, 0.06),
921
1036
  color: $info-l1,
@@ -924,6 +1039,85 @@ $btn-palette: map-deep-merge(
924
1039
  background-color: rgba($info-l2, 0.06),
925
1040
  color: $info-l1,
926
1041
  ),
1042
+ active: (
1043
+ background-color: rgba($info-l2, 0.08),
1044
+ color: $info-l1,
1045
+ ),
1046
+ ),
1047
+ '.clay-dark .btn-translucent.btn-info, .btn-beta-dark': (
1048
+ extend: '%clay-dark-btn-translucent-info',
1049
+ ),
1050
+ '.clay-dark.btn-translucent.btn-info': (
1051
+ extend: '%clay-dark-btn-translucent-info',
1052
+ ),
1053
+ '%clay-dark-btn-translucent-success': (
1054
+ background-color: rgba($success-l2, 0.04),
1055
+ border-color: transparent,
1056
+ color: $success-l1,
1057
+ hover: (
1058
+ background-color: rgba($success-l2, 0.06),
1059
+ color: $success-l1,
1060
+ ),
1061
+ focus: (
1062
+ background-color: rgba($success-l2, 0.06),
1063
+ color: $success-l1,
1064
+ ),
1065
+ active: (
1066
+ background-color: rgba($success-l2, 0.08),
1067
+ color: $success-l1,
1068
+ ),
1069
+ ),
1070
+ '.clay-dark .btn-translucent.btn-success': (
1071
+ extend: '%clay-dark-btn-translucent-success',
1072
+ ),
1073
+ '.clay-dark.btn-translucent.btn-success': (
1074
+ extend: '%clay-dark-btn-translucent-success',
1075
+ ),
1076
+ '%clay-dark-btn-translucent-warning': (
1077
+ background-color: rgba($warning-l2, 0.04),
1078
+ border-color: transparent,
1079
+ color: $warning-l1,
1080
+ hover: (
1081
+ background-color: rgba($warning-l2, 0.06),
1082
+ color: $warning-l1,
1083
+ ),
1084
+ focus: (
1085
+ background-color: rgba($warning-l2, 0.06),
1086
+ color: $warning-l1,
1087
+ ),
1088
+ active: (
1089
+ background-color: rgba($warning-l2, 0.08),
1090
+ color: $warning-l1,
1091
+ ),
1092
+ ),
1093
+ '.clay-dark .btn-translucent.btn-warning': (
1094
+ extend: '%clay-dark-btn-translucent-warning',
1095
+ ),
1096
+ '.clay-dark.btn-translucent.btn-warning': (
1097
+ extend: '%clay-dark-btn-translucent-warning',
1098
+ ),
1099
+ '%clay-dark-btn-translucent-danger': (
1100
+ background-color: rgba($danger-l2, 0.04),
1101
+ border-color: transparent,
1102
+ color: $danger-l1,
1103
+ hover: (
1104
+ background-color: rgba($danger-l2, 0.06),
1105
+ color: $danger-l1,
1106
+ ),
1107
+ focus: (
1108
+ background-color: rgba($danger-l2, 0.06),
1109
+ color: $danger-l1,
1110
+ ),
1111
+ active: (
1112
+ background-color: rgba($danger-l2, 0.08),
1113
+ color: $danger-l1,
1114
+ ),
1115
+ ),
1116
+ '.clay-dark .btn-translucent.btn-danger': (
1117
+ extend: '%clay-dark-btn-translucent-danger',
1118
+ ),
1119
+ '.clay-dark.btn-translucent.btn-danger': (
1120
+ extend: '%clay-dark-btn-translucent-danger',
927
1121
  ),
928
1122
  ),
929
1123
  $btn-palette
@@ -77,15 +77,7 @@ $table-head-font-size: null !default;
77
77
  $table-head-font-weight: null !default;
78
78
  $table-head-height: 36px !default;
79
79
 
80
- // table-cell: Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
81
-
82
80
  $c-table-thead: () !default;
83
- $c-table-thead: map-merge(
84
- (
85
- background-color: $table-head-bg,
86
- ),
87
- $c-table-thead
88
- );
89
81
 
90
82
  $table-head-link: () !default;
91
83
 
@@ -230,12 +222,10 @@ $table-action-link: map-deep-merge(
230
222
 
231
223
  // .table
232
224
 
233
- // thead, tbody, tfoot Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
234
- // 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
235
-
236
225
  $c-table: () !default;
237
226
  $c-table: map-deep-merge(
238
227
  (
228
+ background-color: $table-bg,
239
229
  border-spacing: 0,
240
230
  color: $table-color,
241
231
  font-size: $table-font-size,
@@ -245,8 +235,8 @@ $c-table: map-deep-merge(
245
235
  map-deep-merge(
246
236
  $c-table-thead,
247
237
  (
238
+ background-color: $table-head-bg,
248
239
  table-cell: (
249
- background-color: $table-head-bg,
250
240
  border-bottom: $table-head-border-bottom-width solid
251
241
  $table-border-color,
252
242
  border-top-width: $table-head-border-top-width,
@@ -290,30 +280,17 @@ $c-table: map-deep-merge(
290
280
  map-deep-merge(
291
281
  $c-table-tbody,
292
282
  (
293
- table-cell: (
294
- background-color:
295
- map-get($c-table-tbody, background-color),
296
- ),
297
283
  tbody: (
298
284
  border-top: calc(2 * #{$table-border-width}) solid
299
285
  $table-border-color,
300
286
  ),
301
287
  )
302
288
  ),
303
- tfoot:
304
- map-deep-merge(
305
- $c-table-tfoot,
306
- (
307
- table-cell: (
308
- background-color:
309
- map-get($c-table-tfoot, background-color),
310
- ),
311
- )
312
- ),
289
+ tfoot: $c-table-tfoot,
313
290
  caption: $c-table-caption,
314
291
  table-divider: (
292
+ background-color: $table-divider-bg,
315
293
  table-cell: (
316
- background-color: $table-divider-bg,
317
294
  color: $table-divider-color,
318
295
  font-size: $table-divider-font-size,
319
296
  font-weight: $table-divider-font-weight,
@@ -323,17 +300,14 @@ $c-table: map-deep-merge(
323
300
  ),
324
301
  table-active: (
325
302
  background-color: $table-active-bg,
326
- table-cell: (
327
- background-color: $table-active-bg,
328
- ),
329
303
  quick-action-menu: (
330
304
  background-color: $table-quick-action-menu-active-bg,
331
305
  ),
332
306
  ),
333
307
  table-disabled: (
308
+ background-color: $table-disabled-bg,
334
309
  color: $table-disabled-color,
335
310
  table-cell: (
336
- background-color: $table-disabled-bg,
337
311
  cursor: $table-disabled-cursor,
338
312
  href: (
339
313
  color: $table-disabled-color,
@@ -389,10 +363,6 @@ $c-table-hover: map-deep-merge(
389
363
  hover: (
390
364
  background-color: $table-hover-bg,
391
365
  color: $table-hover-color,
392
- table-cell: (
393
- background-color: $table-hover-bg,
394
- color: $table-hover-color,
395
- ),
396
366
  quick-action-menu: (
397
367
  background-color: $table-quick-action-menu-hover-bg,
398
368
  ),
@@ -409,15 +379,77 @@ $c-table-hover: map-deep-merge(
409
379
  table-disabled: (
410
380
  hover: (
411
381
  background-color: $table-disabled-bg,
412
- table-cell: (
413
- background-color: $table-disabled-bg,
414
- ),
415
382
  ),
416
383
  ),
417
384
  ),
418
385
  $c-table-hover
419
386
  );
420
387
 
388
+ // .table-focus
389
+
390
+ $c-tr-table-focus: () !default;
391
+ $c-tr-table-focus: map-deep-merge(
392
+ (
393
+ outline: 0,
394
+ td: (
395
+ outline: 0,
396
+ before: (
397
+ box-shadow: (
398
+ inset 0 0.2rem 0 0 rgba($primary, 0.25),
399
+ inset 0 -0.2rem 0 0 rgba($primary, 0.25),
400
+ ),
401
+ content: '',
402
+ display: block,
403
+ position: absolute,
404
+ left: math-sign($table-border-width),
405
+ right: math-sign($table-border-width),
406
+ top: math-sign($table-border-width),
407
+ bottom: math-sign($table-border-width),
408
+ pointer-events: none,
409
+ z-index: 1,
410
+ ),
411
+ first-child: (
412
+ after: (
413
+ box-shadow: inset 0.2rem 0 0 0 rgba($primary, 0.25),
414
+ content: '',
415
+ display: block,
416
+ position: absolute,
417
+ pointer-events: none,
418
+ top: $table-border-width,
419
+ bottom: $table-border-width,
420
+ left: math-sign($table-border-width),
421
+ z-index: 1,
422
+ width: 0.25rem,
423
+ ),
424
+ ),
425
+ last-child: (
426
+ after: (
427
+ box-shadow: inset -0.2rem 0 0 0 rgba($primary, 0.25),
428
+ content: '',
429
+ display: block,
430
+ position: absolute,
431
+ pointer-events: none,
432
+ top: $table-border-width,
433
+ bottom: $table-border-width,
434
+ right: math-sign($table-border-width),
435
+ z-index: 1,
436
+ width: 0.25rem,
437
+ ),
438
+ ),
439
+ ),
440
+ ),
441
+ $c-tr-table-focus
442
+ );
443
+
444
+ $c-td-table-focus: () !default;
445
+ $c-td-table-focus: map-deep-merge(
446
+ (
447
+ outline: 'none',
448
+ box-shadow: clay-enable-shadows($component-focus-inset-box-shadow),
449
+ ),
450
+ $c-td-table-focus
451
+ );
452
+
421
453
  // .table-bordered
422
454
 
423
455
  $table-bordered-border-width: $table-border-width !default;
@@ -569,7 +601,6 @@ $table-list-head-link: () !default;
569
601
  $c-table-list-thead: () !default;
570
602
  $c-table-list-thead: map-merge(
571
603
  (
572
- background-color: $white,
573
604
  border-top-left-radius:
574
605
  clay-border-radius-inner(
575
606
  $table-list-border-radius,
@@ -589,7 +620,6 @@ $c-table-list-thead: map-merge(
589
620
  $c-table-list-tbody: () !default;
590
621
  $c-table-list-tbody: map-merge(
591
622
  (
592
- background-color: $white,
593
623
  border-bottom-left-radius:
594
624
  clay-border-radius-inner(
595
625
  $table-list-border-radius,
@@ -607,12 +637,6 @@ $c-table-list-tbody: map-merge(
607
637
  // Table List Tfoot
608
638
 
609
639
  $c-table-list-tfoot: () !default;
610
- $c-table-list-tfoot: map-merge(
611
- (
612
- background-color: $white,
613
- ),
614
- $c-table-list-tfoot
615
- );
616
640
 
617
641
  // .table.table-list.table-bordered th, .table.table-list.table-bordered td
618
642
 
@@ -709,9 +733,6 @@ $table-list-action-link: map-deep-merge(
709
733
 
710
734
  // .table-list
711
735
 
712
- // thead, tbody, tfoot: Chrome 87 rendering issue. See https://github.com/liferay/clay/issues/3847.
713
- // 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
714
-
715
736
  $c-table-list: () !default;
716
737
  $c-table-list: map-merge(
717
738
  (
@@ -729,7 +750,6 @@ $c-table-list: map-merge(
729
750
  $c-table-list-thead,
730
751
  (
731
752
  table-cell: (
732
- background-color: $table-list-head-bg,
733
753
  border-bottom-width: 0,
734
754
  font-size: $table-list-head-font-size,
735
755
  font-weight: $table-list-head-font-weight,
@@ -745,8 +765,6 @@ $c-table-list: map-merge(
745
765
  $c-table-list-tbody,
746
766
  (
747
767
  table-cell: (
748
- background-color:
749
- map-get($c-table-list-tbody, background-color),
750
768
  vertical-align: middle,
751
769
  ),
752
770
  )
@@ -756,8 +774,6 @@ $c-table-list: map-merge(
756
774
  $c-table-list-tfoot,
757
775
  (
758
776
  table-cell: (
759
- background-color:
760
- map-get($c-table-list-tfoot, background-color),
761
777
  vertical-align: middle,
762
778
  ),
763
779
  )
@@ -773,9 +789,6 @@ $c-table-list: map-merge(
773
789
  ),
774
790
  table-active: (
775
791
  background-color: $table-list-active-bg,
776
- table-cell: (
777
- background-color: $table-list-active-bg,
778
- ),
779
792
  quick-action-menu: (
780
793
  background-color: $table-list-quick-action-menu-active-bg,
781
794
  ),
@@ -784,8 +797,6 @@ $c-table-list: map-merge(
784
797
  background-color: $table-list-disabled-bg,
785
798
  color: $table-list-disabled-color,
786
799
  table-cell: (
787
- background-color: $table-list-disabled-bg,
788
- color: $table-list-disabled-color,
789
800
  href: (
790
801
  color: $table-list-disabled-color,
791
802
  pointer-events: $table-list-disabled-pointer-events,
@@ -860,9 +871,6 @@ $c-table-list-table-hover: map-deep-merge(
860
871
  tr: (
861
872
  hover: (
862
873
  background-color: $table-list-hover-bg,
863
- table-cell: (
864
- background-color: $table-list-hover-bg,
865
- ),
866
874
  quick-action-menu: (
867
875
  background-color: $table-list-quick-action-menu-hover-bg,
868
876
  ),
@@ -872,9 +880,6 @@ $c-table-list-table-hover: map-deep-merge(
872
880
  table-active: (
873
881
  hover: (
874
882
  background-color: $table-list-active-bg,
875
- table-cell: (
876
- background-color: $table-list-active-bg,
877
- ),
878
883
  quick-action-menu: (
879
884
  background-color: $table-list-quick-action-menu-hover-bg,
880
885
  ),
@@ -884,9 +889,6 @@ $c-table-list-table-hover: map-deep-merge(
884
889
  background-color: $table-list-disabled-bg,
885
890
  hover: (
886
891
  background-color: $table-list-disabled-bg,
887
- table-cell: (
888
- background-color: $table-list-disabled-bg,
889
- ),
890
892
  ),
891
893
  ),
892
894
  ),
@@ -751,7 +751,7 @@ $c-prefers-link-underline: map-deep-merge(
751
751
  $c-prefers-letter-spacing: () !default;
752
752
  $c-prefers-letter-spacing: map-deep-merge(
753
753
  (
754
- '.c-prefers-letter-spacing-1': (
754
+ '.c-prefers-letter-spacing-1, .c-prefers-letter-spacing-1 *': (
755
755
  letter-spacing: 1px !important,
756
756
  ),
757
757
  ),