@carbon/styles 0.16.2 → 1.0.0-rc.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/package.json +15 -10
- package/scss/__tests__/__snapshots__/config-test.js.snap +30 -1
- package/scss/__tests__/type-test.js +0 -1
- package/scss/_breakpoint.scss +2 -1
- package/scss/_config.scss +9 -2
- package/scss/_spacing.scss +1 -1
- package/scss/_theme.scss +4 -4
- package/scss/_themes.scss +2 -1
- package/scss/components/accordion/_accordion.scss +1 -1
- package/scss/components/aspect-ratio/_aspect-ratio.scss +2 -2
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +1 -5
- package/scss/components/button/_tokens.scss +1 -0
- package/scss/components/code-snippet/_code-snippet.scss +32 -47
- package/scss/components/content-switcher/_content-switcher.scss +0 -2
- package/scss/components/copy-button/_copy-button.scss +0 -59
- package/scss/components/data-table/_data-table.scss +2 -164
- package/scss/components/data-table/action/_data-table-action.scss +2 -19
- package/scss/components/data-table/expandable/_data-table-expandable.scss +0 -2
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -28
- package/scss/components/dropdown/_dropdown.scss +0 -1
- package/scss/components/file-uploader/_file-uploader.scss +3 -3
- package/scss/components/modal/_modal.scss +1 -1
- package/scss/components/notification/_actionable-notification.scss +58 -19
- package/scss/components/notification/_inline-notification.scss +9 -21
- package/scss/components/notification/_toast-notification.scss +29 -58
- package/scss/components/notification/_tokens.scss +2 -1
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -5
- package/scss/components/pagination/_unstable_pagination.scss +1 -1
- package/scss/components/popover/_popover.scss +0 -8
- package/scss/components/progress-bar/_progress-bar.scss +21 -0
- package/scss/components/progress-indicator/_progress-indicator.scss +5 -5
- package/scss/components/radio-button/_radio-button.scss +2 -10
- package/scss/components/search/_search.scss +6 -0
- package/scss/components/tabs/_tabs.scss +1 -1
- package/scss/components/tag/_tokens.scss +1 -0
- package/scss/components/text-input/_text-input.scss +7 -22
- package/scss/components/tile/_tile.scss +60 -29
- package/scss/components/time-picker/_time-picker.scss +0 -3
- package/scss/components/toggletip/_toggletip.scss +1 -2
- package/scss/components/treeview/_treeview.scss +1 -1
- package/scss/components/ui-shell/content/_content.scss +0 -1
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +269 -0
- package/scss/fonts/__tests__/fonts-test.js +55 -0
- package/scss/fonts/_src.scss +42 -31
- package/scss/grid/_css-grid.scss +11 -0
- package/scss/grid/_flexbox.scss +1 -1
- package/scss/grid/_index.scss +7 -2
- package/scss/grid/_mixins.scss +9 -0
- package/scss/type/_reset.scss +1 -1
- package/scss/utilities/_component-tokens.scss +2 -1
- package/scss/utilities/_convert.scss +2 -4
- package/scss/utilities/_high-contrast-mode.scss +2 -4
- package/scss/grid/_config.scss +0 -18
|
@@ -256,18 +256,13 @@
|
|
|
256
256
|
color: $link-secondary;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
// V11: Remove compact, short styles
|
|
260
|
-
.#{$prefix}--data-table--compact td.#{$prefix}--table-column-menu,
|
|
261
259
|
.#{$prefix}--data-table--xs td.#{$prefix}--table-column-menu,
|
|
262
|
-
.#{$prefix}--data-table--short td.#{$prefix}--table-column-menu,
|
|
263
260
|
.#{$prefix}--data-table--sm td.#{$prefix}--table-column-menu {
|
|
264
261
|
height: rem(24px);
|
|
265
262
|
padding-top: 0;
|
|
266
263
|
padding-bottom: 0;
|
|
267
264
|
}
|
|
268
265
|
|
|
269
|
-
// V11: Remove short styles
|
|
270
|
-
.#{$prefix}--data-table--short td.#{$prefix}--table-column-menu,
|
|
271
266
|
.#{$prefix}--data-table--sm td.#{$prefix}--table-column-menu {
|
|
272
267
|
height: rem(32px);
|
|
273
268
|
}
|
|
@@ -276,8 +271,6 @@
|
|
|
276
271
|
height: rem(40px);
|
|
277
272
|
}
|
|
278
273
|
|
|
279
|
-
// V11: Remove tall styles
|
|
280
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-column-menu,
|
|
281
274
|
.#{$prefix}--data-table--xl .#{$prefix}--table-column-menu {
|
|
282
275
|
padding-top: $spacing-03;
|
|
283
276
|
}
|
|
@@ -367,9 +360,6 @@
|
|
|
367
360
|
height: rem(32px);
|
|
368
361
|
}
|
|
369
362
|
|
|
370
|
-
// V11: Remove compact
|
|
371
|
-
.#{$prefix}--data-table--compact thead th.#{$prefix}--table-expand,
|
|
372
|
-
.#{$prefix}--data-table--compact tbody td.#{$prefix}--table-expand,
|
|
373
363
|
.#{$prefix}--data-table--xs thead th.#{$prefix}--table-expand,
|
|
374
364
|
.#{$prefix}--data-table--xs tbody td.#{$prefix}--table-expand {
|
|
375
365
|
width: rem(24px);
|
|
@@ -377,9 +367,6 @@
|
|
|
377
367
|
padding: 0 0 0 0.5rem;
|
|
378
368
|
}
|
|
379
369
|
|
|
380
|
-
// V11: remove short
|
|
381
|
-
.#{$prefix}--data-table--short thead th.#{$prefix}--table-expand,
|
|
382
|
-
.#{$prefix}--data-table--short tbody td.#{$prefix}--table-expand,
|
|
383
370
|
.#{$prefix}--data-table--sm thead th.#{$prefix}--table-expand,
|
|
384
371
|
.#{$prefix}--data-table--sm tbody td.#{$prefix}--table-expand {
|
|
385
372
|
width: rem(32px);
|
|
@@ -395,9 +382,6 @@
|
|
|
395
382
|
padding: rem(4px) 0 rem(4px) rem(8px);
|
|
396
383
|
}
|
|
397
384
|
|
|
398
|
-
// V11: remove tall
|
|
399
|
-
.#{$prefix}--data-table--tall thead th.#{$prefix}--table-expand,
|
|
400
|
-
.#{$prefix}--data-table--tall tbody td.#{$prefix}--table-expand,
|
|
401
385
|
.#{$prefix}--data-table--xl thead th.#{$prefix}--table-expand,
|
|
402
386
|
.#{$prefix}--data-table--xl tbody td.#{$prefix}--table-expand {
|
|
403
387
|
height: rem(64px);
|
|
@@ -405,14 +389,10 @@
|
|
|
405
389
|
padding-bottom: rem(22px);
|
|
406
390
|
}
|
|
407
391
|
|
|
408
|
-
// V11: remove tall
|
|
409
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-column-checkbox,
|
|
410
392
|
.#{$prefix}--data-table--xl .#{$prefix}--table-column-checkbox {
|
|
411
393
|
padding-top: rem(13px);
|
|
412
394
|
}
|
|
413
395
|
|
|
414
|
-
// V11: remove tall
|
|
415
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-column-radio,
|
|
416
396
|
.#{$prefix}--data-table--xl .#{$prefix}--table-column-radio {
|
|
417
397
|
padding-top: $spacing-05;
|
|
418
398
|
}
|
|
@@ -448,7 +428,7 @@
|
|
|
448
428
|
td,
|
|
449
429
|
tr.#{$prefix}--data-table--selected:first-of-type td {
|
|
450
430
|
// Top border acts as separator from thead
|
|
451
|
-
border-top: 1px solid $
|
|
431
|
+
border-top: 1px solid $border-subtle-selected;
|
|
452
432
|
}
|
|
453
433
|
|
|
454
434
|
// last row + zebra select last
|
|
@@ -500,46 +480,6 @@
|
|
|
500
480
|
opacity: 1;
|
|
501
481
|
}
|
|
502
482
|
|
|
503
|
-
// V11: Remove this compact block
|
|
504
|
-
//----------------------------------------------------------------------------
|
|
505
|
-
// Compact
|
|
506
|
-
//----------------------------------------------------------------------------
|
|
507
|
-
.#{$prefix}--data-table--compact thead tr,
|
|
508
|
-
.#{$prefix}--data-table--compact tbody tr,
|
|
509
|
-
.#{$prefix}--data-table--compact tbody tr th {
|
|
510
|
-
height: rem(24px);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
.#{$prefix}--data-table--compact .#{$prefix}--table-header-label {
|
|
514
|
-
padding-top: rem(2px);
|
|
515
|
-
padding-bottom: rem(2px);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.#{$prefix}--data-table--compact td,
|
|
519
|
-
.#{$prefix}--data-table--compact tbody tr th {
|
|
520
|
-
padding-top: rem(2px);
|
|
521
|
-
padding-bottom: rem(2px);
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.#{$prefix}--data-table--compact .#{$prefix}--overflow-menu {
|
|
525
|
-
width: rem(32px);
|
|
526
|
-
height: 100%;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.#{$prefix}--data-table.#{$prefix}--data-table--compact
|
|
530
|
-
.#{$prefix}--table-column-checkbox {
|
|
531
|
-
padding-top: 0;
|
|
532
|
-
padding-bottom: 0;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.#{$prefix}--data-table.#{$prefix}--data-table--compact
|
|
536
|
-
.#{$prefix}--table-column-checkbox
|
|
537
|
-
.#{$prefix}--checkbox-label {
|
|
538
|
-
height: rem(23px);
|
|
539
|
-
// 24px row - 1px border
|
|
540
|
-
min-height: rem(23px);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
483
|
//----------------------------------------------------------------------------
|
|
544
484
|
// Extra Small
|
|
545
485
|
//----------------------------------------------------------------------------
|
|
@@ -579,37 +519,6 @@
|
|
|
579
519
|
min-height: rem(23px);
|
|
580
520
|
}
|
|
581
521
|
|
|
582
|
-
// V11: Remove this short block
|
|
583
|
-
//----------------------------------------------------------------------------
|
|
584
|
-
// Short
|
|
585
|
-
//----------------------------------------------------------------------------
|
|
586
|
-
.#{$prefix}--data-table--short thead tr,
|
|
587
|
-
.#{$prefix}--data-table--short tbody tr,
|
|
588
|
-
.#{$prefix}--data-table--short tbody tr th {
|
|
589
|
-
height: rem(32px);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.#{$prefix}--data-table--short .#{$prefix}--table-header-label {
|
|
593
|
-
padding-top: rem(7px);
|
|
594
|
-
padding-bottom: rem(7px);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.#{$prefix}--data-table--short td,
|
|
598
|
-
.#{$prefix}--data-table--short tbody tr th {
|
|
599
|
-
padding-top: rem(7px);
|
|
600
|
-
padding-bottom: rem(6px);
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
.#{$prefix}--data-table.#{$prefix}--data-table--short
|
|
604
|
-
.#{$prefix}--table-column-checkbox {
|
|
605
|
-
padding-top: rem(3px);
|
|
606
|
-
padding-bottom: rem(3px);
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
.#{$prefix}--data-table--short .#{$prefix}--overflow-menu {
|
|
610
|
-
height: 100%;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
522
|
//----------------------------------------------------------------------------
|
|
614
523
|
// Small
|
|
615
524
|
//----------------------------------------------------------------------------
|
|
@@ -671,35 +580,6 @@
|
|
|
671
580
|
padding-bottom: rem(3px);
|
|
672
581
|
}
|
|
673
582
|
|
|
674
|
-
// V11: remove this tall block
|
|
675
|
-
//----------------------------------------------------------------------------
|
|
676
|
-
// Tall
|
|
677
|
-
//----------------------------------------------------------------------------
|
|
678
|
-
.#{$prefix}--data-table--tall thead tr,
|
|
679
|
-
.#{$prefix}--data-table--tall tbody tr,
|
|
680
|
-
.#{$prefix}--data-table--tall tbody tr th {
|
|
681
|
-
height: rem(64px);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-header-label {
|
|
685
|
-
padding-top: $spacing-05;
|
|
686
|
-
padding-bottom: $spacing-05;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.#{$prefix}--data-table--tall td,
|
|
690
|
-
.#{$prefix}--data-table--tall tbody tr th {
|
|
691
|
-
padding-top: 1rem;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
.#{$prefix}--data-table--tall th,
|
|
695
|
-
.#{$prefix}--data-table--tall td {
|
|
696
|
-
vertical-align: top;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.#{$prefix}--data-table--tall .#{$prefix}--data-table--cell-secondary-text {
|
|
700
|
-
@include type-style('label-01');
|
|
701
|
-
}
|
|
702
|
-
|
|
703
583
|
//----------------------------------------------------------------------------
|
|
704
584
|
// Extra Large
|
|
705
585
|
//----------------------------------------------------------------------------
|
|
@@ -803,8 +683,7 @@
|
|
|
803
683
|
min-height: 3rem;
|
|
804
684
|
}
|
|
805
685
|
|
|
806
|
-
|
|
807
|
-
&:not(.#{$prefix}--data-table--compact):not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--tall):not(.#{$prefix}--data-table--xl):not(.#{$prefix}--data-table--short):not(.#{$prefix}--data-table--sm)
|
|
686
|
+
&:not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--xl):not(.#{$prefix}--data-table--sm)
|
|
808
687
|
td:not(.#{$prefix}--table-column-menu):not(.#{$prefix}--table-column-checkbox) {
|
|
809
688
|
padding-top: rem(14px);
|
|
810
689
|
}
|
|
@@ -833,10 +712,7 @@
|
|
|
833
712
|
align-items: center;
|
|
834
713
|
}
|
|
835
714
|
|
|
836
|
-
// V11: remove tall
|
|
837
|
-
&.#{$prefix}--data-table--tall thead th.#{$prefix}--table-column-checkbox,
|
|
838
715
|
&.#{$prefix}--data-table--xl thead th.#{$prefix}--table-column-checkbox,
|
|
839
|
-
&.#{$prefix}--data-table--tall td.#{$prefix}--table-column-checkbox,
|
|
840
716
|
&.#{$prefix}--data-table--xl td.#{$prefix}--table-column-checkbox {
|
|
841
717
|
align-items: flex-start;
|
|
842
718
|
}
|
|
@@ -881,46 +757,29 @@
|
|
|
881
757
|
min-width: 0;
|
|
882
758
|
}
|
|
883
759
|
|
|
884
|
-
// V11: remove compact, short, tall
|
|
885
|
-
&.#{$prefix}--data-table--compact tr:not(.#{$prefix}--expandable-row),
|
|
886
760
|
&.#{$prefix}--data-table--xs tr:not(.#{$prefix}--expandable-row),
|
|
887
|
-
&.#{$prefix}--data-table--short tr:not(.#{$prefix}--expandable-row),
|
|
888
761
|
&.#{$prefix}--data-table--sm tr:not(.#{$prefix}--expandable-row),
|
|
889
|
-
&.#{$prefix}--data-table--tall tr:not(.#{$prefix}--expandable-row),
|
|
890
762
|
&.#{$prefix}--data-table--xl tr:not(.#{$prefix}--expandable-row) {
|
|
891
763
|
height: auto;
|
|
892
764
|
}
|
|
893
765
|
|
|
894
|
-
// Compact
|
|
895
|
-
// V11: remove compact
|
|
896
|
-
&.#{$prefix}--data-table--compact tr:not(.#{$prefix}--expandable-row),
|
|
897
766
|
&.#{$prefix}--data-table--xs tr:not(.#{$prefix}--expandable-row) {
|
|
898
767
|
min-height: rem(24px);
|
|
899
768
|
}
|
|
900
769
|
|
|
901
|
-
// Short
|
|
902
|
-
// V11: remove short
|
|
903
|
-
&.#{$prefix}--data-table--short tr:not(.#{$prefix}--expandable-row),
|
|
904
770
|
&.#{$prefix}--data-table--sm tr:not(.#{$prefix}--expandable-row) {
|
|
905
771
|
min-height: rem(32px);
|
|
906
772
|
}
|
|
907
773
|
|
|
908
|
-
// Tall
|
|
909
|
-
// V11: remove tall
|
|
910
|
-
&.#{$prefix}--data-table--tall tr:not(.#{$prefix}--expandable-row),
|
|
911
774
|
&.#{$prefix}--data-table--xl tr:not(.#{$prefix}--expandable-row) {
|
|
912
775
|
min-height: rem(64px);
|
|
913
776
|
}
|
|
914
777
|
|
|
915
778
|
// Expansion overrides
|
|
916
|
-
// V11: remove compact
|
|
917
|
-
&.#{$prefix}--data-table--compact tr td.#{$prefix}--table-expand,
|
|
918
779
|
&.#{$prefix}--data-table--xs tr td.#{$prefix}--table-expand {
|
|
919
780
|
padding-top: rem(4px);
|
|
920
781
|
}
|
|
921
782
|
|
|
922
|
-
// V11: remove short
|
|
923
|
-
&.#{$prefix}--data-table--short tr td.#{$prefix}--table-expand,
|
|
924
783
|
&.#{$prefix}--data-table--sm tr td.#{$prefix}--table-expand {
|
|
925
784
|
padding-top: rem(8px);
|
|
926
785
|
}
|
|
@@ -935,41 +794,25 @@
|
|
|
935
794
|
overflow-y: hidden;
|
|
936
795
|
}
|
|
937
796
|
|
|
938
|
-
// V11: remove compact
|
|
939
|
-
&.#{$prefix}--data-table--compact th .#{$prefix}--table-header-label,
|
|
940
797
|
&.#{$prefix}--data-table--xs th .#{$prefix}--table-header-label {
|
|
941
798
|
padding-top: rem(3px);
|
|
942
799
|
padding-bottom: 0;
|
|
943
800
|
}
|
|
944
801
|
|
|
945
|
-
// V11: remove short
|
|
946
|
-
&.#{$prefix}--data-table--short th .#{$prefix}--table-header-label,
|
|
947
802
|
&.#{$prefix}--data-table--sm th .#{$prefix}--table-header-label {
|
|
948
803
|
padding-top: rem(8px);
|
|
949
804
|
padding-bottom: 0;
|
|
950
805
|
}
|
|
951
806
|
|
|
952
|
-
// V11: remove tall
|
|
953
|
-
&.#{$prefix}--data-table--tall th .#{$prefix}--table-header-label,
|
|
954
807
|
&.#{$prefix}--data-table--xl th .#{$prefix}--table-header-label {
|
|
955
808
|
padding-top: 1rem;
|
|
956
809
|
}
|
|
957
810
|
|
|
958
|
-
// V11: remove tall
|
|
959
|
-
&.#{$prefix}--data-table--tall th.#{$prefix}--table-expand,
|
|
960
811
|
&.#{$prefix}--data-table--xl th.#{$prefix}--table-expand {
|
|
961
812
|
display: flex;
|
|
962
813
|
align-items: flex-start;
|
|
963
814
|
}
|
|
964
815
|
|
|
965
|
-
// With dynamic content overrides
|
|
966
|
-
// V11: remove compact, short
|
|
967
|
-
&.#{$prefix}--data-table--compact
|
|
968
|
-
tr.#{$prefix}--parent-row
|
|
969
|
-
.#{$prefix}--table-column-checkbox,
|
|
970
|
-
&.#{$prefix}--data-table--short
|
|
971
|
-
tr.#{$prefix}--parent-row
|
|
972
|
-
.#{$prefix}--table-column-checkbox,
|
|
973
816
|
&.#{$prefix}--data-table--xs
|
|
974
817
|
tr.#{$prefix}--parent-row
|
|
975
818
|
.#{$prefix}--table-column-checkbox,
|
|
@@ -990,11 +833,6 @@
|
|
|
990
833
|
margin: 0;
|
|
991
834
|
}
|
|
992
835
|
|
|
993
|
-
// V11: remove short, compact
|
|
994
|
-
.#{$prefix}--data-table--short
|
|
995
|
-
.#{$prefix}--form-item.#{$prefix}--checkbox-wrapper:last-of-type,
|
|
996
|
-
.#{$prefix}--data-table--compact
|
|
997
|
-
.#{$prefix}--form-item.#{$prefix}--checkbox-wrapper:last-of-type,
|
|
998
836
|
.#{$prefix}--data-table--xs
|
|
999
837
|
.#{$prefix}--form-item.#{$prefix}--checkbox-wrapper:last-of-type,
|
|
1000
838
|
.#{$prefix}--data-table--sm
|
|
@@ -500,8 +500,7 @@
|
|
|
500
500
|
//-------------------------------------------------
|
|
501
501
|
//SMALL TOOLBAR
|
|
502
502
|
//-------------------------------------------------
|
|
503
|
-
|
|
504
|
-
.#{$prefix}--table-toolbar--small,
|
|
503
|
+
|
|
505
504
|
.#{$prefix}--table-toolbar--sm {
|
|
506
505
|
height: rem(32px);
|
|
507
506
|
min-height: rem(32px);
|
|
@@ -605,26 +604,19 @@
|
|
|
605
604
|
//-------------------------------------------------
|
|
606
605
|
// SMALL BATCH ACTIONS
|
|
607
606
|
//-------------------------------------------------
|
|
608
|
-
|
|
609
|
-
.#{$prefix}--table-toolbar--small
|
|
610
|
-
.#{$prefix}--batch-actions
|
|
611
|
-
.#{$prefix}--action-list,
|
|
607
|
+
|
|
612
608
|
.#{$prefix}--table-toolbar--sm
|
|
613
609
|
.#{$prefix}--batch-actions
|
|
614
610
|
.#{$prefix}--action-list {
|
|
615
611
|
height: rem(32px);
|
|
616
612
|
}
|
|
617
613
|
|
|
618
|
-
// V11: remove --small selector block
|
|
619
|
-
.#{$prefix}--table-toolbar--small .#{$prefix}--toolbar-action,
|
|
620
614
|
.#{$prefix}--table-toolbar--sm .#{$prefix}--toolbar-action {
|
|
621
615
|
width: rem(32px);
|
|
622
616
|
height: rem(32px);
|
|
623
617
|
padding: $spacing-03 0;
|
|
624
618
|
}
|
|
625
619
|
|
|
626
|
-
// V11: remove --small selector block
|
|
627
|
-
.#{$prefix}--table-toolbar--small .#{$prefix}--btn--primary,
|
|
628
620
|
.#{$prefix}--table-toolbar--sm .#{$prefix}--btn--primary {
|
|
629
621
|
height: rem(32px);
|
|
630
622
|
min-height: auto;
|
|
@@ -632,18 +624,11 @@
|
|
|
632
624
|
padding-bottom: calc(0.375rem - 3px);
|
|
633
625
|
}
|
|
634
626
|
|
|
635
|
-
// V11: remove --small selector block
|
|
636
|
-
.#{$prefix}--table-toolbar--small
|
|
637
|
-
.#{$prefix}--btn--primary.#{$prefix}--batch-summary__cancel::before,
|
|
638
627
|
.#{$prefix}--table-toolbar--sm
|
|
639
628
|
.#{$prefix}--btn--primary.#{$prefix}--batch-summary__cancel::before {
|
|
640
629
|
top: rem(8px);
|
|
641
630
|
}
|
|
642
631
|
|
|
643
|
-
// V11: remove --small selector block
|
|
644
|
-
.#{$prefix}--table-toolbar--small
|
|
645
|
-
.#{$prefix}--toolbar-action
|
|
646
|
-
~ .#{$prefix}--btn,
|
|
647
632
|
.#{$prefix}--table-toolbar--sm
|
|
648
633
|
.#{$prefix}--toolbar-action
|
|
649
634
|
~ .#{$prefix}--btn {
|
|
@@ -651,8 +636,6 @@
|
|
|
651
636
|
height: rem(32px);
|
|
652
637
|
}
|
|
653
638
|
|
|
654
|
-
// V11: remove --small selector block
|
|
655
|
-
.#{$prefix}--table-toolbar--small .#{$prefix}--batch-summary,
|
|
656
639
|
.#{$prefix}--table-toolbar--sm .#{$prefix}--batch-summary {
|
|
657
640
|
min-height: 2rem;
|
|
658
641
|
}
|
|
@@ -231,8 +231,6 @@
|
|
|
231
231
|
transition: transform $duration-moderate-01 motion(standard, productive);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
// V11: remove tall
|
|
235
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-expand__button,
|
|
236
234
|
.#{$prefix}--data-table--xl .#{$prefix}--table-expand__button {
|
|
237
235
|
width: rem(32px);
|
|
238
236
|
padding: 0;
|
|
@@ -84,8 +84,7 @@
|
|
|
84
84
|
justify-content: space-between;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
.#{$prefix}--data-table--sort:not(.#{$prefix}--data-table--compact):not(.#{$prefix}--data-table--short):not(.#{$prefix}--data-table--tall):not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--sm):not(.#{$prefix}--data-table--md):not(.#{$prefix}--data-table--xl)
|
|
87
|
+
.#{$prefix}--data-table--sort:not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--sm):not(.#{$prefix}--data-table--md):not(.#{$prefix}--data-table--xl)
|
|
89
88
|
th
|
|
90
89
|
.#{$prefix}--table-sort__flex {
|
|
91
90
|
/* IE11 workaround for align-items: center and min-height
|
|
@@ -96,20 +95,12 @@
|
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
|
|
99
|
-
// V11: remove compact
|
|
100
|
-
.#{$prefix}--data-table--compact.#{$prefix}--data-table--sort
|
|
101
|
-
th
|
|
102
|
-
.#{$prefix}--table-sort__flex,
|
|
103
98
|
.#{$prefix}--data-table--xs.#{$prefix}--data-table--sort
|
|
104
99
|
th
|
|
105
100
|
.#{$prefix}--table-sort__flex {
|
|
106
101
|
min-height: 1.5rem;
|
|
107
102
|
}
|
|
108
103
|
|
|
109
|
-
// V11: remove short
|
|
110
|
-
.#{$prefix}--data-table--short.#{$prefix}--data-table--sort
|
|
111
|
-
th
|
|
112
|
-
.#{$prefix}--table-sort__flex,
|
|
113
104
|
.#{$prefix}--data-table--sm.#{$prefix}--data-table--sort
|
|
114
105
|
th
|
|
115
106
|
.#{$prefix}--table-sort__flex {
|
|
@@ -122,10 +113,6 @@
|
|
|
122
113
|
min-height: 2.5rem;
|
|
123
114
|
}
|
|
124
115
|
|
|
125
|
-
// V11: remove tall
|
|
126
|
-
.#{$prefix}--data-table--tall.#{$prefix}--data-table--sort
|
|
127
|
-
th
|
|
128
|
-
.#{$prefix}--table-sort__flex,
|
|
129
116
|
.#{$prefix}--data-table--xl.#{$prefix}--data-table--sort
|
|
130
117
|
th
|
|
131
118
|
.#{$prefix}--table-sort__flex {
|
|
@@ -189,36 +176,25 @@
|
|
|
189
176
|
// Compact, Short, Tall Sortable
|
|
190
177
|
//----------------------------------------------------------------------------
|
|
191
178
|
// Sortable compact
|
|
192
|
-
// V11: remove compact
|
|
193
|
-
.#{$prefix}--data-table--compact.#{$prefix}--data-table--sort th,
|
|
194
179
|
.#{$prefix}--data-table--xs.#{$prefix}--data-table--sort th {
|
|
195
180
|
height: rem(24px);
|
|
196
181
|
}
|
|
197
182
|
|
|
198
183
|
// Sortable Short
|
|
199
|
-
// V11: remove short
|
|
200
|
-
.#{$prefix}--data-table--short.#{$prefix}--data-table--sort th,
|
|
201
184
|
.#{$prefix}--data-table--sm.#{$prefix}--data-table--sort th {
|
|
202
185
|
height: rem(32px);
|
|
203
186
|
}
|
|
204
187
|
|
|
205
188
|
// Sortable Medium
|
|
206
|
-
// V11: remove short
|
|
207
189
|
.#{$prefix}--data-table--md.#{$prefix}--data-table--sort th {
|
|
208
190
|
height: rem(40px);
|
|
209
191
|
}
|
|
210
192
|
|
|
211
193
|
// Sortable Tall
|
|
212
|
-
// V11: remove tall
|
|
213
|
-
.#{$prefix}--data-table--tall.#{$prefix}--data-table--sort th,
|
|
214
194
|
.#{$prefix}--data-table--xl.#{$prefix}--data-table--sort th {
|
|
215
195
|
height: rem(64px);
|
|
216
196
|
}
|
|
217
197
|
|
|
218
|
-
// V11: remove tall
|
|
219
|
-
.#{$prefix}--data-table--tall.#{$prefix}--data-table--sort
|
|
220
|
-
th
|
|
221
|
-
.#{$prefix}--table-sort,
|
|
222
198
|
.#{$prefix}--data-table--xl.#{$prefix}--data-table--sort
|
|
223
199
|
th
|
|
224
200
|
.#{$prefix}--table-sort {
|
|
@@ -226,9 +202,6 @@
|
|
|
226
202
|
height: rem(64px);
|
|
227
203
|
}
|
|
228
204
|
|
|
229
|
-
// V11: remove tall
|
|
230
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-sort__icon-unsorted,
|
|
231
|
-
.#{$prefix}--data-table--tall .#{$prefix}--table-sort__icon,
|
|
232
205
|
.#{$prefix}--data-table--xl .#{$prefix}--table-sort__icon-unsorted,
|
|
233
206
|
.#{$prefix}--data-table--xl .#{$prefix}--table-sort__icon {
|
|
234
207
|
margin-top: rem(13px);
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
min-height: $spacing-09;
|
|
140
140
|
align-items: center;
|
|
141
141
|
margin-bottom: $spacing-03;
|
|
142
|
-
background-color: $
|
|
142
|
+
background-color: $layer;
|
|
143
143
|
gap: rem(12px) $spacing-05;
|
|
144
144
|
grid-auto-rows: auto;
|
|
145
145
|
grid-template-columns: 1fr auto;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
|
|
188
188
|
max-width: rem(320px);
|
|
189
189
|
margin-bottom: $spacing-03;
|
|
190
|
-
background-color: $
|
|
190
|
+
background-color: $layer;
|
|
191
191
|
outline-width: 1px;
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
|
|
281
281
|
// for checkmark contrast
|
|
282
282
|
[data-icon-path='inner-path'] {
|
|
283
|
-
fill: $icon-
|
|
283
|
+
fill: $icon-inverse;
|
|
284
284
|
opacity: 1;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.#{$prefix}--actionable-notification a:focus {
|
|
81
|
-
outline: 1px solid $
|
|
81
|
+
outline: 1px solid $focus-inverse;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.#{$prefix}--actionable-notification.#{$prefix}--actionable-notification--low-contrast
|
|
@@ -88,20 +88,20 @@
|
|
|
88
88
|
|
|
89
89
|
.#{$prefix}--actionable-notification--low-contrast {
|
|
90
90
|
color: $text-primary;
|
|
91
|
+
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
93
|
+
.#{$prefix}--actionable-notification--low-contrast:not(.#{$prefix}--actionable-notification--toast)::before {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
border-width: 1px 1px 1px 0;
|
|
101
|
+
border-style: solid;
|
|
102
|
+
content: '';
|
|
103
|
+
filter: opacity(0.4);
|
|
104
|
+
pointer-events: none;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.#{$prefix}--actionable-notification--error {
|
|
@@ -192,13 +192,13 @@
|
|
|
192
192
|
.#{$prefix}--actionable-notification__details {
|
|
193
193
|
display: flex;
|
|
194
194
|
flex-grow: 1;
|
|
195
|
-
margin: 0 $spacing-09 0
|
|
195
|
+
margin: 0 $spacing-09 0 rem(13px);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--toast)
|
|
199
199
|
.#{$prefix}--actionable-notification__details {
|
|
200
200
|
@include breakpoint(md) {
|
|
201
|
-
margin: 0
|
|
201
|
+
margin: 0 rem(13px);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -220,12 +220,48 @@
|
|
|
220
220
|
padding: rem(15px) 0;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
.#{$prefix}--actionable-notification--toast
|
|
224
|
+
.#{$prefix}--actionable-notification__text-wrapper {
|
|
225
|
+
padding: rem(15px) 0 rem(23px) 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
.#{$prefix}--actionable-notification__content {
|
|
224
229
|
@include type-style('body-compact-01');
|
|
225
230
|
|
|
231
|
+
display: flex;
|
|
226
232
|
word-break: break-word;
|
|
227
233
|
}
|
|
228
234
|
|
|
235
|
+
.#{$prefix}--actionable-notification--toast
|
|
236
|
+
.#{$prefix}--actionable-notification__content {
|
|
237
|
+
display: block;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.#{$prefix}--actionable-notification__title {
|
|
241
|
+
@include type-style('heading-compact-01');
|
|
242
|
+
|
|
243
|
+
margin-right: $spacing-02;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
word-break: break-word;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.#{$prefix}--actionable-notification--toast
|
|
249
|
+
.#{$prefix}--actionable-notification__title {
|
|
250
|
+
margin-right: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.#{$prefix}--actionable-notification__subtitle {
|
|
254
|
+
@include type-style('body-compact-01');
|
|
255
|
+
|
|
256
|
+
margin-top: 0;
|
|
257
|
+
color: $text-inverse;
|
|
258
|
+
word-break: break-word;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.#{$prefix}--actionable-notification--low-contrast
|
|
262
|
+
.#{$prefix}--actionable-notification__subtitle {
|
|
263
|
+
color: $text-primary;
|
|
264
|
+
}
|
|
229
265
|
/* Ghost action button when inline */
|
|
230
266
|
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost {
|
|
231
267
|
height: rem(32px);
|
|
@@ -273,10 +309,13 @@
|
|
|
273
309
|
|
|
274
310
|
/* Tertiary action button when not inline (toast) */
|
|
275
311
|
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary {
|
|
276
|
-
|
|
312
|
+
padding: 0 $spacing-05;
|
|
313
|
+
margin-bottom: $spacing-05;
|
|
277
314
|
|
|
278
|
-
// Button should be left aligned with text.
|
|
279
|
-
|
|
315
|
+
// Button should be left aligned with text.
|
|
316
|
+
// 20px is the width of the notification icon
|
|
317
|
+
// 2px is the width of the left border that should be negated
|
|
318
|
+
margin-left: calc(#{$spacing-07} + #{rem(20px)} - #{rem(2px)});
|
|
280
319
|
}
|
|
281
320
|
|
|
282
321
|
// Tertiary button styles by default use mostly "inverse" tokens. Since the non-low-contrast notification
|