@clayui/css 3.106.1 → 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.
Files changed (36) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +1 -1
  3. package/lib/css/atlas.css +431 -130
  4. package/lib/css/atlas.css.map +1 -1
  5. package/lib/css/base.css +428 -115
  6. package/lib/css/base.css.map +1 -1
  7. package/lib/css/cadmin.css +446 -124
  8. package/lib/css/cadmin.css.map +1 -1
  9. package/lib/images/icons/flags-en-CA.svg +13 -0
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/lib/images/icons/twitter-x.svg +9 -0
  12. package/package.json +2 -2
  13. package/src/images/icons/flags-en-CA.svg +13 -0
  14. package/src/images/icons/twitter-x.svg +9 -0
  15. package/src/scss/_license-text.scss +1 -1
  16. package/src/scss/atlas/variables/_tables.scss +37 -18
  17. package/src/scss/cadmin/components/_badges.scss +1 -6
  18. package/src/scss/cadmin/components/_modals.scss +11 -0
  19. package/src/scss/cadmin/components/_tables.scss +82 -25
  20. package/src/scss/cadmin/variables/_alerts.scss +2 -16
  21. package/src/scss/cadmin/variables/_badges.scss +78 -3
  22. package/src/scss/cadmin/variables/_buttons.scss +204 -0
  23. package/src/scss/cadmin/variables/_dropdowns.scss +1 -1
  24. package/src/scss/cadmin/variables/_modals.scss +21 -1
  25. package/src/scss/cadmin/variables/_tables.scss +144 -99
  26. package/src/scss/cadmin/variables/_utilities.scss +2 -1
  27. package/src/scss/components/_modals.scss +8 -0
  28. package/src/scss/components/_tables.scss +87 -28
  29. package/src/scss/functions/_lx-icons-generated.scss +4 -0
  30. package/src/scss/mixins/_grid.scss +8 -0
  31. package/src/scss/mixins/_tables.scss +21 -2
  32. package/src/scss/variables/_badges.scss +74 -4
  33. package/src/scss/variables/_buttons.scss +198 -4
  34. package/src/scss/variables/_modals.scss +21 -1
  35. package/src/scss/variables/_tables.scss +131 -91
  36. package/src/scss/variables/_utilities.scss +1 -1
@@ -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: $grid-gutter-width * 0.5 !default; // 15px
56
- $table-cell-padding: 0.75rem !default;
57
- $table-cell-padding-sm: 0.3rem !default;
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,17 +76,9 @@ $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: 36px !default;
79
-
80
- // table-cell: Webkit (Safari 11) rendering issue with responsive-tables. See https://github.com/liferay/clay/issues/950
79
+ $table-head-height: 56px !default;
81
80
 
82
81
  $c-table-thead: () !default;
83
- $c-table-thead: map-merge(
84
- (
85
- background-color: $table-head-bg,
86
- ),
87
- $c-table-thead
88
- );
89
82
 
90
83
  $table-head-link: () !default;
91
84
 
@@ -115,7 +108,7 @@ $table-divider-bg: $white !default;
115
108
  $table-divider-color: null !default;
116
109
  $table-divider-font-weight: null !default;
117
110
  $table-divider-font-size: null !default;
118
- $table-divider-padding: $table-cell-padding !default;
111
+ $table-divider-padding: 0.5rem 1rem 0.5rem 1.25rem !default;
119
112
  $table-divider-text-transform: null !default;
120
113
 
121
114
  $table-quick-action-menu-align-items: flex-start !default;
@@ -147,8 +140,8 @@ $c-table-caption: () !default;
147
140
  $c-table-caption: map-merge(
148
141
  (
149
142
  caption-side: top,
150
- padding-left: $table-cell-padding,
151
- padding-right: $table-cell-padding,
143
+ padding-left: nth($table-cell-padding, 2),
144
+ padding-right: nth($table-cell-padding, 2),
152
145
  ),
153
146
  $c-table-caption
154
147
  );
@@ -230,12 +223,10 @@ $table-action-link: map-deep-merge(
230
223
 
231
224
  // .table
232
225
 
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
226
  $c-table: () !default;
237
227
  $c-table: map-deep-merge(
238
228
  (
229
+ background-color: $table-bg,
239
230
  border-spacing: 0,
240
231
  color: $table-color,
241
232
  font-size: $table-font-size,
@@ -245,12 +236,12 @@ $c-table: map-deep-merge(
245
236
  map-deep-merge(
246
237
  $c-table-thead,
247
238
  (
239
+ background-color: $table-head-bg,
248
240
  table-cell: (
249
- background-color: $table-head-bg,
250
241
  border-bottom: $table-head-border-bottom-width solid
251
242
  $table-border-color,
252
243
  border-top-width: $table-head-border-top-width,
253
- vertical-align: bottom,
244
+ vertical-align: middle,
254
245
  ),
255
246
  th: (
256
247
  href: $table-head-link,
@@ -260,9 +251,6 @@ $c-table: map-deep-merge(
260
251
  table-column-start: (
261
252
  padding-left: $table-cell-gutters,
262
253
  ),
263
- table-column-end: (
264
- padding-right: $table-cell-gutters,
265
- ),
266
254
  th: (
267
255
  background-clip: padding-box,
268
256
  border-top: $table-border-width solid $table-border-color,
@@ -282,6 +270,7 @@ $c-table: map-deep-merge(
282
270
  border-right-width: $table-data-border-right-width,
283
271
  border-style: $table-data-border-style,
284
272
  border-top-width: $table-data-border-top-width,
273
+ height: 56px,
285
274
  padding: $table-cell-padding,
286
275
  position: relative,
287
276
  vertical-align: $table-data-vertical-align,
@@ -290,26 +279,13 @@ $c-table: map-deep-merge(
290
279
  map-deep-merge(
291
280
  $c-table-tbody,
292
281
  (
293
- table-cell: (
294
- background-color:
295
- map-get($c-table-tbody, background-color),
296
- ),
297
282
  tbody: (
298
283
  border-top: calc(2 * #{$table-border-width}) solid
299
284
  $table-border-color,
300
285
  ),
301
286
  )
302
287
  ),
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
- ),
288
+ tfoot: $c-table-tfoot,
313
289
  caption: $c-table-caption,
314
290
  table-divider: (
315
291
  table-cell: (
@@ -317,23 +293,22 @@ $c-table: map-deep-merge(
317
293
  color: $table-divider-color,
318
294
  font-size: $table-divider-font-size,
319
295
  font-weight: $table-divider-font-weight,
296
+ height: 34px,
297
+ line-height: 17px,
320
298
  padding: $table-divider-padding,
321
299
  text-transform: $table-divider-text-transform,
322
300
  ),
323
301
  ),
324
302
  table-active: (
325
303
  background-color: $table-active-bg,
326
- table-cell: (
327
- background-color: $table-active-bg,
328
- ),
329
304
  quick-action-menu: (
330
305
  background-color: $table-quick-action-menu-active-bg,
331
306
  ),
332
307
  ),
333
308
  table-disabled: (
309
+ background-color: $table-disabled-bg,
334
310
  color: $table-disabled-color,
335
311
  table-cell: (
336
- background-color: $table-disabled-bg,
337
312
  cursor: $table-disabled-cursor,
338
313
  href: (
339
314
  color: $table-disabled-color,
@@ -349,8 +324,8 @@ $c-table: map-deep-merge(
349
324
  ),
350
325
  autofit-col: (
351
326
  justify-content: center,
352
- padding-left: $table-cell-padding,
353
- padding-right: $table-cell-padding,
327
+ padding-left: nth($table-cell-padding, 2),
328
+ padding-right: nth($table-cell-padding, 2),
354
329
  first-child: (
355
330
  padding-left: 0,
356
331
  ),
@@ -372,8 +347,8 @@ $c-table: map-deep-merge(
372
347
  quick-action-menu: (
373
348
  align-items: $table-quick-action-menu-align-items,
374
349
  background-color: $table-quick-action-menu-bg,
375
- padding-bottom: $table-cell-padding,
376
- padding-top: $table-cell-padding,
350
+ padding-bottom: nth($table-cell-padding, 1),
351
+ padding-top: nth($table-cell-padding, 1),
377
352
  ),
378
353
  ),
379
354
  $c-table
@@ -389,10 +364,6 @@ $c-table-hover: map-deep-merge(
389
364
  hover: (
390
365
  background-color: $table-hover-bg,
391
366
  color: $table-hover-color,
392
- table-cell: (
393
- background-color: $table-hover-bg,
394
- color: $table-hover-color,
395
- ),
396
367
  quick-action-menu: (
397
368
  background-color: $table-quick-action-menu-hover-bg,
398
369
  ),
@@ -409,15 +380,94 @@ $c-table-hover: map-deep-merge(
409
380
  table-disabled: (
410
381
  hover: (
411
382
  background-color: $table-disabled-bg,
412
- table-cell: (
413
- background-color: $table-disabled-bg,
414
- ),
415
383
  ),
416
384
  ),
417
385
  ),
418
386
  $c-table-hover
419
387
  );
420
388
 
389
+ // .table-focus
390
+
391
+ $c-tr-table-focus: () !default;
392
+ $c-tr-table-focus: map-deep-merge(
393
+ (
394
+ outline: 0,
395
+ td: (
396
+ outline: 0,
397
+ before: (
398
+ box-shadow: (
399
+ inset 0 0.2rem 0 0 rgba($primary, 0.25),
400
+ inset 0 -0.2rem 0 0 rgba($primary, 0.25),
401
+ ),
402
+ content: '',
403
+ display: block,
404
+ position: absolute,
405
+ left: math-sign($table-border-width),
406
+ right: math-sign($table-border-width),
407
+ top: math-sign($table-border-width),
408
+ bottom: math-sign($table-border-width),
409
+ pointer-events: none,
410
+ z-index: 1,
411
+ ),
412
+ first-child: (
413
+ after: (
414
+ box-shadow: inset 0.2rem 0 0 0 rgba($primary, 0.25),
415
+ content: '',
416
+ display: block,
417
+ position: absolute,
418
+ pointer-events: none,
419
+ top: $table-border-width,
420
+ bottom: $table-border-width,
421
+ left: math-sign($table-border-width),
422
+ z-index: 1,
423
+ width: 0.25rem,
424
+ ),
425
+ ),
426
+ last-child: (
427
+ after: (
428
+ box-shadow: inset -0.2rem 0 0 0 rgba($primary, 0.25),
429
+ content: '',
430
+ display: block,
431
+ position: absolute,
432
+ pointer-events: none,
433
+ top: $table-border-width,
434
+ bottom: $table-border-width,
435
+ right: math-sign($table-border-width),
436
+ z-index: 1,
437
+ width: 0.25rem,
438
+ ),
439
+ ),
440
+ ),
441
+ ),
442
+ $c-tr-table-focus
443
+ );
444
+
445
+ $c-td-table-focus: () !default;
446
+ $c-td-table-focus: map-deep-merge(
447
+ (
448
+ outline: 'none',
449
+ box-shadow: clay-enable-shadows($component-focus-inset-box-shadow),
450
+ ),
451
+ $c-td-table-focus
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
+
421
471
  // .table-bordered
422
472
 
423
473
  $table-bordered-border-width: $table-border-width !default;
@@ -444,23 +494,43 @@ $c-table-sm: () !default;
444
494
  $c-table-sm: map-deep-merge(
445
495
  (
446
496
  table-cell: (
497
+ height: 32px,
447
498
  padding: $table-cell-padding-sm,
448
499
  ),
449
500
  ),
450
501
  $c-table-sm
451
502
  );
452
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
+
453
529
  // .table-nested-rows
454
530
 
455
531
  $c-table-nested-rows: () !default;
456
532
  $c-table-nested-rows: map-deep-merge(
457
533
  (
458
- table-column-start: (
459
- padding-left: 1.25rem,
460
- ),
461
- table-column-end: (
462
- padding-right: 1.25rem,
463
- ),
464
534
  autofit-col: (
465
535
  padding-left: 0.125rem,
466
536
  padding-right: 0.125rem,
@@ -569,7 +639,6 @@ $table-list-head-link: () !default;
569
639
  $c-table-list-thead: () !default;
570
640
  $c-table-list-thead: map-merge(
571
641
  (
572
- background-color: $white,
573
642
  border-top-left-radius:
574
643
  clay-border-radius-inner(
575
644
  $table-list-border-radius,
@@ -589,7 +658,6 @@ $c-table-list-thead: map-merge(
589
658
  $c-table-list-tbody: () !default;
590
659
  $c-table-list-tbody: map-merge(
591
660
  (
592
- background-color: $white,
593
661
  border-bottom-left-radius:
594
662
  clay-border-radius-inner(
595
663
  $table-list-border-radius,
@@ -607,12 +675,6 @@ $c-table-list-tbody: map-merge(
607
675
  // Table List Tfoot
608
676
 
609
677
  $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
678
 
617
679
  // .table.table-list.table-bordered th, .table.table-list.table-bordered td
618
680
 
@@ -630,8 +692,8 @@ $c-table-list-caption: () !default;
630
692
 
631
693
  // .table-list .table-divider
632
694
 
633
- $table-list-divider-padding-x: 0.75rem !default;
634
- $table-list-divider-padding-y: 0.75rem !default;
695
+ $table-list-divider-padding-x: 1rem !default;
696
+ $table-list-divider-padding-y: 0.5rem !default;
635
697
 
636
698
  // .table-list .quick-action-menu
637
699
 
@@ -709,9 +771,6 @@ $table-list-action-link: map-deep-merge(
709
771
 
710
772
  // .table-list
711
773
 
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
774
  $c-table-list: () !default;
716
775
  $c-table-list: map-merge(
717
776
  (
@@ -729,7 +788,6 @@ $c-table-list: map-merge(
729
788
  $c-table-list-thead,
730
789
  (
731
790
  table-cell: (
732
- background-color: $table-list-head-bg,
733
791
  border-bottom-width: 0,
734
792
  font-size: $table-list-head-font-size,
735
793
  font-weight: $table-list-head-font-weight,
@@ -745,8 +803,6 @@ $c-table-list: map-merge(
745
803
  $c-table-list-tbody,
746
804
  (
747
805
  table-cell: (
748
- background-color:
749
- map-get($c-table-list-tbody, background-color),
750
806
  vertical-align: middle,
751
807
  ),
752
808
  )
@@ -756,8 +812,6 @@ $c-table-list: map-merge(
756
812
  $c-table-list-tfoot,
757
813
  (
758
814
  table-cell: (
759
- background-color:
760
- map-get($c-table-list-tfoot, background-color),
761
815
  vertical-align: middle,
762
816
  ),
763
817
  )
@@ -766,16 +820,13 @@ $c-table-list: map-merge(
766
820
  table-divider: (
767
821
  table-cell: (
768
822
  padding-bottom: $table-list-divider-padding-y,
769
- padding-left: $table-list-divider-padding-x,
823
+ padding-left: 1.25rem,
770
824
  padding-right: $table-list-divider-padding-x,
771
825
  padding-top: $table-list-divider-padding-y,
772
826
  ),
773
827
  ),
774
828
  table-active: (
775
829
  background-color: $table-list-active-bg,
776
- table-cell: (
777
- background-color: $table-list-active-bg,
778
- ),
779
830
  quick-action-menu: (
780
831
  background-color: $table-list-quick-action-menu-active-bg,
781
832
  ),
@@ -784,8 +835,6 @@ $c-table-list: map-merge(
784
835
  background-color: $table-list-disabled-bg,
785
836
  color: $table-list-disabled-color,
786
837
  table-cell: (
787
- background-color: $table-list-disabled-bg,
788
- color: $table-list-disabled-color,
789
838
  href: (
790
839
  color: $table-list-disabled-color,
791
840
  pointer-events: $table-list-disabled-pointer-events,
@@ -860,9 +909,6 @@ $c-table-list-table-hover: map-deep-merge(
860
909
  tr: (
861
910
  hover: (
862
911
  background-color: $table-list-hover-bg,
863
- table-cell: (
864
- background-color: $table-list-hover-bg,
865
- ),
866
912
  quick-action-menu: (
867
913
  background-color: $table-list-quick-action-menu-hover-bg,
868
914
  ),
@@ -872,9 +918,6 @@ $c-table-list-table-hover: map-deep-merge(
872
918
  table-active: (
873
919
  hover: (
874
920
  background-color: $table-list-active-bg,
875
- table-cell: (
876
- background-color: $table-list-active-bg,
877
- ),
878
921
  quick-action-menu: (
879
922
  background-color: $table-list-quick-action-menu-hover-bg,
880
923
  ),
@@ -884,9 +927,6 @@ $c-table-list-table-hover: map-deep-merge(
884
927
  background-color: $table-list-disabled-bg,
885
928
  hover: (
886
929
  background-color: $table-list-disabled-bg,
887
- table-cell: (
888
- background-color: $table-list-disabled-bg,
889
- ),
890
930
  ),
891
931
  ),
892
932
  ),
@@ -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
  ),