@clayui/css 3.126.0 → 3.128.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/lib/css/atlas.css +224 -58
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +176 -74
- package/lib/css/base.css.map +1 -1
- package/lib/css/bootstrap.css +0 -0
- package/lib/css/bootstrap.css.map +1 -1
- package/lib/css/cadmin.css +423 -272
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/atlas/variables/_globals.scss +8 -0
- package/src/scss/cadmin/components/_grid.scss +3 -1
- package/src/scss/cadmin/components/_multi-step-nav.scss +4 -2
- package/src/scss/cadmin/variables/_dropdowns.scss +18 -6
- package/src/scss/cadmin/variables/_globals.scss +4 -0
- package/src/scss/cadmin/variables/_multi-step-nav.scss +2 -2
- package/src/scss/components/_grid.scss +3 -1
- package/src/scss/components/_multi-step-nav.scss +4 -2
- package/src/scss/functions/_global-functions.scss +8 -2
- package/src/scss/mixins/_alerts.scss +104 -48
- package/src/scss/mixins/_badges.scss +75 -33
- package/src/scss/mixins/_buttons.scss +503 -250
- package/src/scss/mixins/_cards.scss +619 -302
- package/src/scss/mixins/_close.scss +42 -49
- package/src/scss/mixins/_custom-forms.scss +864 -606
- package/src/scss/mixins/_dropdown-menu.scss +476 -239
- package/src/scss/mixins/_forms.scss +4 -79
- package/src/scss/mixins/_links.scss +565 -308
- package/src/scss/mixins/_modals.scss +1 -26
- package/src/scss/mixins/_popovers.scss +1 -26
- package/src/scss/mixins/_sidebar.scss +3 -28
- package/src/scss/mixins/_slideout.scss +1 -26
- package/src/scss/mixins/_toggle-switch.scss +6 -31
- package/src/scss/variables/_dropdowns.scss +18 -6
- package/src/scss/variables/_globals.scss +8 -0
- package/src/scss/variables/_multi-step-nav.scss +2 -2
|
@@ -253,31 +253,6 @@
|
|
|
253
253
|
@if (type-of($map) == 'map') {
|
|
254
254
|
$enabled: setter(map-get($map, enabled), true);
|
|
255
255
|
|
|
256
|
-
$_enable-focus-visible: if(
|
|
257
|
-
variable-exists(enable-focus-visible),
|
|
258
|
-
$enable-focus-visible,
|
|
259
|
-
if(
|
|
260
|
-
variable-exists(cadmin-enable-focus-visible),
|
|
261
|
-
$cadmin-enable-focus-visible,
|
|
262
|
-
true
|
|
263
|
-
)
|
|
264
|
-
);
|
|
265
|
-
|
|
266
|
-
$_c-prefers-focus-selector: if(
|
|
267
|
-
$_enable-focus-visible,
|
|
268
|
-
'.c-prefers-focus &:focus',
|
|
269
|
-
''
|
|
270
|
-
);
|
|
271
|
-
|
|
272
|
-
@if (variable-exists(cadmin-enable-focus-visible)) and
|
|
273
|
-
($_enable-focus-visible)
|
|
274
|
-
{
|
|
275
|
-
$_c-prefers-focus-selector: clay-insert-before(
|
|
276
|
-
'.cadmin',
|
|
277
|
-
'.c-prefers-focus '
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
256
|
$base: map-merge(
|
|
282
257
|
$map,
|
|
283
258
|
(
|
|
@@ -575,400 +550,641 @@
|
|
|
575
550
|
);
|
|
576
551
|
|
|
577
552
|
@if ($enabled) {
|
|
578
|
-
@
|
|
579
|
-
|
|
580
|
-
&::before {
|
|
581
|
-
@include clay-css(map-get($map, before));
|
|
553
|
+
@if (length($base) != 0) {
|
|
554
|
+
@include clay-css($base);
|
|
582
555
|
}
|
|
583
556
|
|
|
584
|
-
|
|
585
|
-
@include clay-css(map-get($map, after));
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
&:link {
|
|
589
|
-
$_link: setter(map-get($map, link), ());
|
|
590
|
-
|
|
591
|
-
@include clay-css($_link);
|
|
557
|
+
$_before: map-get($map, before);
|
|
592
558
|
|
|
559
|
+
@if ($_before) {
|
|
593
560
|
&::before {
|
|
594
|
-
@include clay-css(
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
&::after {
|
|
598
|
-
@include clay-css(map-get($_link, after));
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.inline-item {
|
|
602
|
-
@include clay-css(map-get($_link, inline-item));
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.inline-item-before {
|
|
606
|
-
@include clay-css(map-get($_link, inline-item-before));
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
.inline-item-middle {
|
|
610
|
-
@include clay-css(map-get($_link, inline-item-middle));
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
.inline-item-after {
|
|
614
|
-
@include clay-css(map-get($_link, inline-item-after));
|
|
561
|
+
@include clay-css($_before);
|
|
615
562
|
}
|
|
616
563
|
}
|
|
617
564
|
|
|
618
|
-
|
|
619
|
-
$_visited: setter(map-get($map, visited), ());
|
|
620
|
-
|
|
621
|
-
@include clay-css($_visited);
|
|
622
|
-
|
|
623
|
-
&::before {
|
|
624
|
-
@include clay-css(map-get($_visited, before));
|
|
625
|
-
}
|
|
565
|
+
$_after: map-get($map, after);
|
|
626
566
|
|
|
567
|
+
@if ($_after) {
|
|
627
568
|
&::after {
|
|
628
|
-
@include clay-css(
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
.inline-item {
|
|
632
|
-
@include clay-css(map-get($_visited, inline-item));
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
.inline-item-before {
|
|
636
|
-
@include clay-css(map-get($_visited, inline-item-before));
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
.inline-item-middle {
|
|
640
|
-
@include clay-css(map-get($_visited, inline-item-middle));
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
.inline-item-after {
|
|
644
|
-
@include clay-css(map-get($_visited, inline-item-after));
|
|
569
|
+
@include clay-css($_after);
|
|
645
570
|
}
|
|
646
571
|
}
|
|
647
572
|
|
|
648
|
-
|
|
649
|
-
&.hover {
|
|
650
|
-
@include clay-css($hover);
|
|
573
|
+
$_link: map-get($map, link);
|
|
651
574
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
575
|
+
@if ($_link) {
|
|
576
|
+
&:link {
|
|
577
|
+
@include clay-css($_link);
|
|
655
578
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
579
|
+
&::before {
|
|
580
|
+
@include clay-css(map-get($_link, before));
|
|
581
|
+
}
|
|
659
582
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
583
|
+
&::after {
|
|
584
|
+
@include clay-css(map-get($_link, after));
|
|
585
|
+
}
|
|
663
586
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
587
|
+
.inline-item {
|
|
588
|
+
@include clay-css(map-get($_link, inline-item));
|
|
589
|
+
}
|
|
667
590
|
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
591
|
+
.inline-item-before {
|
|
592
|
+
@include clay-css(map-get($_link, inline-item-before));
|
|
593
|
+
}
|
|
671
594
|
|
|
672
|
-
|
|
673
|
-
|
|
595
|
+
.inline-item-middle {
|
|
596
|
+
@include clay-css(map-get($_link, inline-item-middle));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.inline-item-after {
|
|
600
|
+
@include clay-css(map-get($_link, inline-item-after));
|
|
601
|
+
}
|
|
674
602
|
}
|
|
675
603
|
}
|
|
676
604
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
@include clay-css($
|
|
605
|
+
$_visited: map-get($map, visited);
|
|
606
|
+
|
|
607
|
+
@if ($_visited) {
|
|
608
|
+
&:visited {
|
|
609
|
+
@include clay-css($_visited);
|
|
682
610
|
|
|
683
611
|
&::before {
|
|
684
|
-
@include clay-css(map-get($
|
|
612
|
+
@include clay-css(map-get($_visited, before));
|
|
685
613
|
}
|
|
686
614
|
|
|
687
615
|
&::after {
|
|
688
|
-
@include clay-css(map-get($
|
|
616
|
+
@include clay-css(map-get($_visited, after));
|
|
689
617
|
}
|
|
690
618
|
|
|
691
619
|
.inline-item {
|
|
692
|
-
@include clay-css(map-get($
|
|
620
|
+
@include clay-css(map-get($_visited, inline-item));
|
|
693
621
|
}
|
|
694
622
|
|
|
695
623
|
.inline-item-before {
|
|
696
|
-
@include clay-css(
|
|
624
|
+
@include clay-css(
|
|
625
|
+
map-get($_visited, inline-item-before)
|
|
626
|
+
);
|
|
697
627
|
}
|
|
698
628
|
|
|
699
629
|
.inline-item-middle {
|
|
700
|
-
@include clay-css(
|
|
630
|
+
@include clay-css(
|
|
631
|
+
map-get($_visited, inline-item-middle)
|
|
632
|
+
);
|
|
701
633
|
}
|
|
702
634
|
|
|
703
635
|
.inline-item-after {
|
|
704
|
-
@include clay-css(
|
|
636
|
+
@include clay-css(
|
|
637
|
+
map-get($_visited, inline-item-after)
|
|
638
|
+
);
|
|
705
639
|
}
|
|
706
640
|
}
|
|
707
641
|
}
|
|
708
642
|
|
|
709
|
-
|
|
710
|
-
|
|
643
|
+
@if (length($hover) != 0) {
|
|
644
|
+
&:hover,
|
|
645
|
+
&.hover {
|
|
646
|
+
@include clay-css($hover);
|
|
711
647
|
|
|
712
|
-
|
|
713
|
-
@include clay-css(map-get($active, before));
|
|
714
|
-
}
|
|
648
|
+
$_before: map-get($hover, before);
|
|
715
649
|
|
|
716
|
-
|
|
717
|
-
|
|
650
|
+
@if ($_before) {
|
|
651
|
+
&::before {
|
|
652
|
+
@include clay-css($_before);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
$_after: map-get($hover, after);
|
|
657
|
+
|
|
658
|
+
@if ($_after) {
|
|
659
|
+
&::after {
|
|
660
|
+
@include clay-css($_after);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
$_inline-item: map-get($hover, inline-item);
|
|
665
|
+
|
|
666
|
+
@if ($_inline-item) {
|
|
667
|
+
.inline-item {
|
|
668
|
+
@include clay-css($_inline-item);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
$_inline-item-before: map-get($hover, inline-item-before);
|
|
673
|
+
|
|
674
|
+
@if ($_inline-item-before) {
|
|
675
|
+
.inline-item-before {
|
|
676
|
+
@include clay-css($_inline-item-before);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
$_inline-item-middle: map-get($hover, inline-item-middle);
|
|
681
|
+
|
|
682
|
+
@if ($_inline-item-middle) {
|
|
683
|
+
.inline-item-middle {
|
|
684
|
+
@include clay-css($_inline-item-middle);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
$_inline-item-after: map-get($hover, inline-item-after);
|
|
689
|
+
|
|
690
|
+
@if ($_inline-item-after) {
|
|
691
|
+
.inline-item-after {
|
|
692
|
+
@include clay-css($_inline-item-after);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
718
695
|
}
|
|
696
|
+
}
|
|
719
697
|
|
|
698
|
+
@if (length($focus) != 0) {
|
|
720
699
|
@at-root {
|
|
700
|
+
&.focus,
|
|
721
701
|
#{$focus-visible-selector},
|
|
722
|
-
#{$
|
|
723
|
-
|
|
702
|
+
#{if($c-prefers-focus-selector,$c-prefers-focus-selector,clay-insert-before('.cadmin', '.c-prefers-focus ', '&:focus'))} {
|
|
703
|
+
@include clay-css($focus);
|
|
704
|
+
|
|
705
|
+
$_before: map-get($focus, before);
|
|
724
706
|
|
|
725
|
-
@
|
|
707
|
+
@if ($_before) {
|
|
708
|
+
&::before {
|
|
709
|
+
@include clay-css($_before);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
726
712
|
|
|
713
|
+
$_after: map-get($focus, after);
|
|
714
|
+
|
|
715
|
+
@if ($_after) {
|
|
716
|
+
&::after {
|
|
717
|
+
@include clay-css($_after);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
$_inline-item: map-get($focus, inline-item);
|
|
722
|
+
|
|
723
|
+
@if ($_inline-item) {
|
|
724
|
+
.inline-item {
|
|
725
|
+
@include clay-css($_inline-item);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
$_inline-item-before: map-get(
|
|
730
|
+
$focus,
|
|
731
|
+
inline-item-before
|
|
732
|
+
);
|
|
733
|
+
|
|
734
|
+
@if ($_inline-item-before) {
|
|
735
|
+
.inline-item-before {
|
|
736
|
+
@include clay-css($_inline-item-before);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
$_inline-item-middle: map-get(
|
|
741
|
+
$focus,
|
|
742
|
+
inline-item-middle
|
|
743
|
+
);
|
|
744
|
+
|
|
745
|
+
@if ($_inline-item-middle) {
|
|
746
|
+
.inline-item-middle {
|
|
747
|
+
@include clay-css($_inline-item-middle);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
$_inline-item-after: map-get($focus, inline-item-after);
|
|
752
|
+
|
|
753
|
+
@if ($_inline-item-after) {
|
|
754
|
+
.inline-item-after {
|
|
755
|
+
@include clay-css($_inline-item-after);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
@if (length($active) != 0) {
|
|
763
|
+
&:active {
|
|
764
|
+
@include clay-css($active);
|
|
765
|
+
|
|
766
|
+
$_before: map-get($active, before);
|
|
767
|
+
|
|
768
|
+
@if ($_before) {
|
|
727
769
|
&::before {
|
|
728
|
-
@include clay-css(
|
|
770
|
+
@include clay-css($_before);
|
|
729
771
|
}
|
|
772
|
+
}
|
|
730
773
|
|
|
774
|
+
$_after: map-get($active, after);
|
|
775
|
+
|
|
776
|
+
@if ($_after) {
|
|
731
777
|
&::after {
|
|
732
|
-
@include clay-css(
|
|
778
|
+
@include clay-css($_after);
|
|
733
779
|
}
|
|
734
780
|
}
|
|
735
|
-
}
|
|
736
781
|
|
|
737
|
-
|
|
738
|
-
@include clay-css(map-get($active, inline-item));
|
|
739
|
-
}
|
|
782
|
+
$_focus: map-get($active, focus);
|
|
740
783
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
784
|
+
@if ($_focus) {
|
|
785
|
+
@at-root {
|
|
786
|
+
#{$focus-visible-selector},
|
|
787
|
+
#{if($c-prefers-focus-selector,$c-prefers-focus-selector,clay-insert-before('.cadmin', '.c-prefers-focus ', '&:focus'))} {
|
|
788
|
+
@include clay-css($_focus);
|
|
744
789
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
790
|
+
&::before {
|
|
791
|
+
@include clay-css(map-get($_focus, before));
|
|
792
|
+
}
|
|
748
793
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
794
|
+
&::after {
|
|
795
|
+
@include clay-css(map-get($_focus, after));
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
753
800
|
|
|
754
|
-
|
|
755
|
-
@include clay-css($active-class);
|
|
801
|
+
$_inline-item: map-get($active, inline-item);
|
|
756
802
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
803
|
+
@if ($_inline-item) {
|
|
804
|
+
.inline-item {
|
|
805
|
+
@include clay-css($_inline-item);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
760
808
|
|
|
761
|
-
|
|
762
|
-
|
|
809
|
+
$_inline-item-before: map-get($active, inline-item-before);
|
|
810
|
+
|
|
811
|
+
@if ($_inline-item-before) {
|
|
812
|
+
.inline-item-before {
|
|
813
|
+
@include clay-css($_inline-item-before);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
$_inline-item-middle: map-get($active, inline-item-middle);
|
|
818
|
+
|
|
819
|
+
@if ($_inline-item-middle) {
|
|
820
|
+
.inline-item-middle {
|
|
821
|
+
@include clay-css($_inline-item-middle);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
$_inline-item-after: map-get($active, inline-item-after);
|
|
826
|
+
|
|
827
|
+
@if ($_inline-item-after) {
|
|
828
|
+
.inline-item-after {
|
|
829
|
+
@include clay-css($_inline-item-after);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
763
832
|
}
|
|
833
|
+
}
|
|
764
834
|
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
$_active-class-focus: setter(
|
|
769
|
-
map-get($active-class, focus),
|
|
770
|
-
()
|
|
771
|
-
);
|
|
835
|
+
@if (length($active-class) != 0) {
|
|
836
|
+
&.active {
|
|
837
|
+
@include clay-css($active-class);
|
|
772
838
|
|
|
773
|
-
|
|
839
|
+
$_before: map-get($active-class, before);
|
|
774
840
|
|
|
841
|
+
@if ($_before) {
|
|
775
842
|
&::before {
|
|
776
|
-
@include clay-css(
|
|
777
|
-
map-get($_active-class-focus, before)
|
|
778
|
-
);
|
|
843
|
+
@include clay-css($_before);
|
|
779
844
|
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
$_after: map-get($active-class, after);
|
|
780
848
|
|
|
849
|
+
@if ($_after) {
|
|
781
850
|
&::after {
|
|
782
|
-
@include clay-css(
|
|
783
|
-
map-get($_active-class-focus, after)
|
|
784
|
-
);
|
|
851
|
+
@include clay-css($_after);
|
|
785
852
|
}
|
|
786
853
|
}
|
|
787
|
-
}
|
|
788
854
|
|
|
789
|
-
|
|
790
|
-
@include clay-css(map-get($active-class, inline-item));
|
|
791
|
-
}
|
|
855
|
+
$_focus: map-get($active-class, focus);
|
|
792
856
|
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
857
|
+
@if ($_focus) {
|
|
858
|
+
@at-root {
|
|
859
|
+
#{$focus-visible-selector},
|
|
860
|
+
#{if($c-prefers-focus-selector,$c-prefers-focus-selector,clay-insert-before('.cadmin', '.c-prefers-focus ', '&:focus'))} {
|
|
861
|
+
@include clay-css($_focus);
|
|
798
862
|
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
863
|
+
&::before {
|
|
864
|
+
@include clay-css(map-get($_focus, before));
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
&::after {
|
|
868
|
+
@include clay-css(map-get($_focus, after));
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
$_inline-item: map-get($active-class, inline-item);
|
|
875
|
+
|
|
876
|
+
@if ($_inline-item) {
|
|
877
|
+
.inline-item {
|
|
878
|
+
@include clay-css($_inline-item);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
$_inline-item-before: map-get(
|
|
883
|
+
$active-class,
|
|
884
|
+
inline-item-before
|
|
802
885
|
);
|
|
803
|
-
}
|
|
804
886
|
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
887
|
+
@if ($_inline-item-before) {
|
|
888
|
+
.inline-item-before {
|
|
889
|
+
@include clay-css($_inline-item-before);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
$_inline-item-middle: map-get(
|
|
894
|
+
$active-class,
|
|
895
|
+
inline-item-middle
|
|
808
896
|
);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
897
|
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
898
|
+
@if ($_inline-item-middle) {
|
|
899
|
+
.inline-item-middle {
|
|
900
|
+
@include clay-css($_inline-item-middle);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
815
903
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
904
|
+
$_inline-item-after: map-get(
|
|
905
|
+
$active-class,
|
|
906
|
+
inline-item-after
|
|
907
|
+
);
|
|
819
908
|
|
|
820
|
-
|
|
821
|
-
|
|
909
|
+
@if ($_inline-item-after) {
|
|
910
|
+
.inline-item-after {
|
|
911
|
+
@include clay-css($_inline-item-after);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
822
914
|
}
|
|
915
|
+
}
|
|
823
916
|
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
917
|
+
@if (length($disabled) != 0) {
|
|
918
|
+
&:disabled,
|
|
919
|
+
&.disabled {
|
|
920
|
+
@include clay-css($disabled);
|
|
828
921
|
|
|
829
|
-
|
|
922
|
+
$_before: map-get($disabled, before);
|
|
830
923
|
|
|
924
|
+
@if ($_before) {
|
|
831
925
|
&::before {
|
|
832
|
-
@include clay-css(
|
|
833
|
-
map-get($_disabled-focus, before)
|
|
834
|
-
);
|
|
926
|
+
@include clay-css($_before);
|
|
835
927
|
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
$_after: map-get($disabled, after);
|
|
836
931
|
|
|
932
|
+
@if ($_after) {
|
|
837
933
|
&::after {
|
|
838
|
-
@include clay-css(
|
|
934
|
+
@include clay-css($_after);
|
|
839
935
|
}
|
|
840
936
|
}
|
|
841
|
-
}
|
|
842
937
|
|
|
843
|
-
|
|
844
|
-
@include clay-css($disabled-active);
|
|
938
|
+
$_focus: map-get($disabled, focus);
|
|
845
939
|
|
|
846
|
-
|
|
847
|
-
@
|
|
940
|
+
@if ($_focus) {
|
|
941
|
+
@at-root {
|
|
942
|
+
#{$focus-visible-selector},
|
|
943
|
+
#{if($c-prefers-focus-selector,$c-prefers-focus-selector,clay-insert-before('.cadmin', '.c-prefers-focus ', '&:focus'))} {
|
|
944
|
+
@include clay-css($_focus);
|
|
945
|
+
|
|
946
|
+
&::before {
|
|
947
|
+
@include clay-css(map-get($_focus, before));
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
&::after {
|
|
951
|
+
@include clay-css(map-get($_focus, after));
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
848
955
|
}
|
|
849
956
|
|
|
850
|
-
|
|
851
|
-
|
|
957
|
+
@if (length($disabled-active) != 0) {
|
|
958
|
+
&:active {
|
|
959
|
+
@include clay-css($disabled-active);
|
|
960
|
+
|
|
961
|
+
&::before {
|
|
962
|
+
@include clay-css(
|
|
963
|
+
map-get($disabled-active, before)
|
|
964
|
+
);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
&::after {
|
|
968
|
+
@include clay-css(
|
|
969
|
+
map-get($disabled-active, after)
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
852
973
|
}
|
|
853
|
-
}
|
|
854
974
|
|
|
855
|
-
|
|
856
|
-
@include clay-css(map-get($disabled, inline-item));
|
|
857
|
-
}
|
|
975
|
+
$_inline-item: map-get($disabled, inline-item);
|
|
858
976
|
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
977
|
+
@if ($_inline-item) {
|
|
978
|
+
.inline-item {
|
|
979
|
+
@include clay-css($_inline-item);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
862
982
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
983
|
+
$_inline-item-before: map-get(
|
|
984
|
+
$disabled,
|
|
985
|
+
inline-item-before
|
|
986
|
+
);
|
|
866
987
|
|
|
867
|
-
|
|
868
|
-
|
|
988
|
+
@if ($_inline-item-before) {
|
|
989
|
+
.inline-item-before {
|
|
990
|
+
@include clay-css($_inline-item-before);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
$_inline-item-middle: map-get(
|
|
995
|
+
$disabled,
|
|
996
|
+
inline-item-middle
|
|
997
|
+
);
|
|
998
|
+
|
|
999
|
+
@if ($_inline-item-middle) {
|
|
1000
|
+
.inline-item-middle {
|
|
1001
|
+
@include clay-css($_inline-item-middle);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
$_inline-item-after: map-get($disabled, inline-item-after);
|
|
1006
|
+
|
|
1007
|
+
@if ($_inline-item-after) {
|
|
1008
|
+
.inline-item-after {
|
|
1009
|
+
@include clay-css($_inline-item-after);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
869
1012
|
}
|
|
870
1013
|
}
|
|
871
1014
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
1015
|
+
@if (length($btn-focus) != 0) {
|
|
1016
|
+
&[type] {
|
|
1017
|
+
@at-root {
|
|
1018
|
+
#{$focus-visible-selector},
|
|
1019
|
+
#{if($c-prefers-focus-selector,$c-prefers-focus-selector,clay-insert-before('.cadmin', '.c-prefers-focus ', '&:focus'))} {
|
|
1020
|
+
@include clay-css($btn-focus);
|
|
1021
|
+
}
|
|
877
1022
|
}
|
|
878
1023
|
}
|
|
879
1024
|
}
|
|
880
1025
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1026
|
+
@if (length($show) != 0) {
|
|
1027
|
+
&[aria-expanded='true'],
|
|
1028
|
+
&.show {
|
|
1029
|
+
@include clay-css($show);
|
|
884
1030
|
|
|
885
|
-
|
|
886
|
-
@include clay-css(map-get($show, before));
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
&::after {
|
|
890
|
-
@include clay-css(map-get($show, after));
|
|
891
|
-
}
|
|
1031
|
+
$_before: map-get($show, before);
|
|
892
1032
|
|
|
893
|
-
|
|
894
|
-
|
|
1033
|
+
@if ($_before) {
|
|
1034
|
+
&::before {
|
|
1035
|
+
@include clay-css($_before);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
895
1038
|
|
|
896
|
-
|
|
1039
|
+
$_after: map-get($show, after);
|
|
897
1040
|
|
|
898
|
-
|
|
899
|
-
|
|
1041
|
+
@if ($_after) {
|
|
1042
|
+
&::after {
|
|
1043
|
+
@include clay-css($_after);
|
|
1044
|
+
}
|
|
900
1045
|
}
|
|
901
1046
|
|
|
902
|
-
|
|
903
|
-
|
|
1047
|
+
$_hover: map-get($show, hover);
|
|
1048
|
+
|
|
1049
|
+
@if ($_hover) {
|
|
1050
|
+
&:hover {
|
|
1051
|
+
@include clay-css($_hover);
|
|
1052
|
+
|
|
1053
|
+
$_before: map-get($_hover, before);
|
|
1054
|
+
|
|
1055
|
+
@if ($_before) {
|
|
1056
|
+
&::before {
|
|
1057
|
+
@include clay-css($_before);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
$_after: map-get($_hover, after);
|
|
1062
|
+
|
|
1063
|
+
@if ($_after) {
|
|
1064
|
+
&::after {
|
|
1065
|
+
@include clay-css($_after);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
904
1069
|
}
|
|
905
|
-
}
|
|
906
1070
|
|
|
907
|
-
|
|
908
|
-
#{$focus-visible-selector},
|
|
909
|
-
#{$_c-prefers-focus-selector} {
|
|
910
|
-
$_show-focus: setter(map-get($show, focus), ());
|
|
1071
|
+
$_focus: map-get($show, focus);
|
|
911
1072
|
|
|
912
|
-
|
|
1073
|
+
@if ($_focus) {
|
|
1074
|
+
@at-root {
|
|
1075
|
+
#{$focus-visible-selector},
|
|
1076
|
+
#{if($c-prefers-focus-selector,$c-prefers-focus-selector,clay-insert-before('.cadmin', '.c-prefers-focus ', '&:focus'))} {
|
|
1077
|
+
@include clay-css($_focus);
|
|
913
1078
|
|
|
914
|
-
|
|
915
|
-
|
|
1079
|
+
$_before: map-get($_focus, before);
|
|
1080
|
+
|
|
1081
|
+
@if ($_before) {
|
|
1082
|
+
&::before {
|
|
1083
|
+
@include clay-css($_before);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
$_after: map-get($_focus, after);
|
|
1088
|
+
|
|
1089
|
+
@if ($_after) {
|
|
1090
|
+
&::after {
|
|
1091
|
+
@include clay-css($_after);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
916
1095
|
}
|
|
1096
|
+
}
|
|
917
1097
|
|
|
918
|
-
|
|
919
|
-
|
|
1098
|
+
$_inline-item: map-get($show, inline-item);
|
|
1099
|
+
|
|
1100
|
+
@if ($_inline-item) {
|
|
1101
|
+
.inline-item {
|
|
1102
|
+
@include clay-css($_inline-item);
|
|
920
1103
|
}
|
|
921
1104
|
}
|
|
922
|
-
}
|
|
923
1105
|
|
|
924
|
-
|
|
925
|
-
@include clay-css(map-get($show, inline-item));
|
|
926
|
-
}
|
|
1106
|
+
$_inline-item-before: map-get($show, inline-item-before);
|
|
927
1107
|
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
1108
|
+
@if ($_inline-item-before) {
|
|
1109
|
+
.inline-item-before {
|
|
1110
|
+
@include clay-css($_inline-item-before);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
931
1113
|
|
|
932
|
-
|
|
933
|
-
@include clay-css(map-get($show, inline-item-middle));
|
|
934
|
-
}
|
|
1114
|
+
$_inline-item-middle: map-get($show, inline-item-middle);
|
|
935
1115
|
|
|
936
|
-
|
|
937
|
-
|
|
1116
|
+
@if ($_inline-item-middle) {
|
|
1117
|
+
.inline-item-middle {
|
|
1118
|
+
@include clay-css($_inline-item-middle);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
$_inline-item-after: map-get($show, inline-item-after);
|
|
1123
|
+
|
|
1124
|
+
@if ($_inline-item-after) {
|
|
1125
|
+
.inline-item-after {
|
|
1126
|
+
@include clay-css($_inline-item-after);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
938
1129
|
}
|
|
939
1130
|
}
|
|
940
1131
|
|
|
941
|
-
|
|
942
|
-
$_collapse-icon: setter(map-get($map, collapse-icon), ());
|
|
1132
|
+
$_collapse-icon: map-get($map, collapse-icon);
|
|
943
1133
|
|
|
944
|
-
|
|
1134
|
+
@if ($_collapse-icon) {
|
|
1135
|
+
&.collapse-icon {
|
|
1136
|
+
@include clay-css($_collapse-icon);
|
|
945
1137
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1138
|
+
$_collapse-icon-closed: map-get(
|
|
1139
|
+
$_collapse-icon,
|
|
1140
|
+
collapse-icon-closed
|
|
949
1141
|
);
|
|
950
|
-
}
|
|
951
1142
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1143
|
+
@if ($_collapse-icon-closed) {
|
|
1144
|
+
.collapse-icon-closed {
|
|
1145
|
+
@include clay-css($_collapse-icon-closed);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
$_collapse-icon-open: map-get(
|
|
1150
|
+
$_collapse-icon,
|
|
1151
|
+
collapse-icon-open
|
|
955
1152
|
);
|
|
1153
|
+
|
|
1154
|
+
@if ($_collapse-icon-open) {
|
|
1155
|
+
.collapse-icon-open {
|
|
1156
|
+
@include clay-css($_collapse-icon-open);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
956
1159
|
}
|
|
957
1160
|
}
|
|
958
1161
|
|
|
959
|
-
|
|
960
|
-
$_autofit-row: setter(map-get($map, autofit-row), ());
|
|
1162
|
+
$_autofit-row: map-get($map, autofit-row);
|
|
961
1163
|
|
|
962
|
-
|
|
1164
|
+
@if ($_autofit-row) {
|
|
1165
|
+
.autofit-row {
|
|
1166
|
+
@include clay-css($_autofit-row);
|
|
963
1167
|
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1168
|
+
$_autofit-col: map-get($_autofit-row, autofit-col);
|
|
1169
|
+
|
|
1170
|
+
@if ($_autofit-col) {
|
|
1171
|
+
.autofit-col {
|
|
1172
|
+
@include clay-css(
|
|
1173
|
+
map-get($_autofit-row, autofit-col)
|
|
1174
|
+
);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
967
1177
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1178
|
+
$_autofit-col-expand: map-get(
|
|
1179
|
+
$_autofit-row,
|
|
1180
|
+
autofit-col-expand
|
|
971
1181
|
);
|
|
1182
|
+
|
|
1183
|
+
@if ($_autofit-col-expand) {
|
|
1184
|
+
.autofit-col-expand {
|
|
1185
|
+
@include clay-css($_autofit-col-expand);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
972
1188
|
}
|
|
973
1189
|
}
|
|
974
1190
|
|
|
@@ -978,34 +1194,53 @@
|
|
|
978
1194
|
}
|
|
979
1195
|
}
|
|
980
1196
|
|
|
981
|
-
|
|
982
|
-
|
|
1197
|
+
$_inline-item: map-get($map, inline-item);
|
|
1198
|
+
|
|
1199
|
+
@if ($_inline-item) {
|
|
1200
|
+
.inline-item {
|
|
1201
|
+
@include clay-css($_inline-item);
|
|
1202
|
+
}
|
|
983
1203
|
}
|
|
984
1204
|
|
|
985
|
-
|
|
986
|
-
|
|
1205
|
+
$_inline-item-before: map-get($map, inline-item-before);
|
|
1206
|
+
|
|
1207
|
+
@if ($_inline-item-before) {
|
|
1208
|
+
.inline-item-before {
|
|
1209
|
+
@include clay-css($_inline-item-before);
|
|
1210
|
+
}
|
|
987
1211
|
}
|
|
988
1212
|
|
|
989
|
-
|
|
990
|
-
@include clay-css(map-get($map, inline-item-middle));
|
|
1213
|
+
$_inline-item-middle: map-get($map, inline-item-middle);
|
|
991
1214
|
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1215
|
+
@if ($_inline-item-middle) {
|
|
1216
|
+
.inline-item-middle {
|
|
1217
|
+
@include clay-css($_inline-item-middle);
|
|
1218
|
+
|
|
1219
|
+
$_inline-item-middle: map-get(
|
|
1220
|
+
$_inline-item-middle,
|
|
1221
|
+
inline-item-middle
|
|
999
1222
|
);
|
|
1223
|
+
|
|
1224
|
+
@if ($_inline-item-middle) {
|
|
1225
|
+
}
|
|
1226
|
+
+ .inline-item-middle {
|
|
1227
|
+
@include clay-css($_inline-item-middle);
|
|
1228
|
+
}
|
|
1000
1229
|
}
|
|
1001
1230
|
}
|
|
1002
1231
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1232
|
+
$_inline-item-after: map-get($map, inline-item-after);
|
|
1233
|
+
|
|
1234
|
+
@if ($_inline-item-after) {
|
|
1235
|
+
.inline-item-after {
|
|
1236
|
+
@include clay-css($_inline-item-after);
|
|
1237
|
+
}
|
|
1005
1238
|
}
|
|
1006
1239
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1240
|
+
@if (length($lexicon-icon) != 0) {
|
|
1241
|
+
.lexicon-icon {
|
|
1242
|
+
@include clay-css($lexicon-icon);
|
|
1243
|
+
}
|
|
1009
1244
|
}
|
|
1010
1245
|
|
|
1011
1246
|
$c-link-variants: map-get($map, c-link-variants);
|
|
@@ -1054,27 +1289,47 @@
|
|
|
1054
1289
|
$href: setter(map-get($map, href), ());
|
|
1055
1290
|
$href: map-deep-merge($href, $link);
|
|
1056
1291
|
|
|
1057
|
-
@
|
|
1292
|
+
@if (length($map) != 0) {
|
|
1293
|
+
@include clay-css($map);
|
|
1294
|
+
}
|
|
1058
1295
|
|
|
1059
|
-
|
|
1060
|
-
|
|
1296
|
+
$_before: map-get($map, before);
|
|
1297
|
+
|
|
1298
|
+
@if ($_before) {
|
|
1299
|
+
&::before {
|
|
1300
|
+
@include clay-css($_before);
|
|
1301
|
+
}
|
|
1061
1302
|
}
|
|
1062
1303
|
|
|
1063
|
-
|
|
1064
|
-
|
|
1304
|
+
$_after: map-get($map, after);
|
|
1305
|
+
|
|
1306
|
+
@if ($_after) {
|
|
1307
|
+
&::after {
|
|
1308
|
+
@include clay-css($_after);
|
|
1309
|
+
}
|
|
1065
1310
|
}
|
|
1066
1311
|
|
|
1067
|
-
|
|
1068
|
-
|
|
1312
|
+
$_first-child: map-get($map, first-child);
|
|
1313
|
+
|
|
1314
|
+
@if ($_first-child) {
|
|
1315
|
+
&:first-child {
|
|
1316
|
+
@include clay-css($_first-child);
|
|
1317
|
+
}
|
|
1069
1318
|
}
|
|
1070
1319
|
|
|
1071
|
-
|
|
1072
|
-
|
|
1320
|
+
$_last-child: map-get($map, last-child);
|
|
1321
|
+
|
|
1322
|
+
@if ($_last-child) {
|
|
1323
|
+
&:last-child {
|
|
1324
|
+
@include clay-css($_last-child);
|
|
1325
|
+
}
|
|
1073
1326
|
}
|
|
1074
1327
|
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1328
|
+
@if (length($href) != 0) {
|
|
1329
|
+
&[href],
|
|
1330
|
+
a[href] {
|
|
1331
|
+
@include clay-link($href);
|
|
1332
|
+
}
|
|
1078
1333
|
}
|
|
1079
1334
|
}
|
|
1080
1335
|
}
|
|
@@ -1084,5 +1339,7 @@
|
|
|
1084
1339
|
/// @param {Map} $map - A map of `key: value` pairs.
|
|
1085
1340
|
|
|
1086
1341
|
@mixin clay-title($map) {
|
|
1087
|
-
@
|
|
1342
|
+
@if (length($map) != 0) {
|
|
1343
|
+
@include clay-text-typography($map);
|
|
1344
|
+
}
|
|
1088
1345
|
}
|