@clayui/css 3.40.1 → 3.41.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 +232 -164
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +196 -98
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +215 -152
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/scss/atlas/variables/_forms.scss +33 -1
- package/src/scss/atlas/variables/_globals.scss +13 -0
- package/src/scss/cadmin/components/_form-validation.scss +10 -237
- package/src/scss/cadmin/components/_reboot.scss +1 -8
- package/src/scss/cadmin/components/_toggle-switch.scss +20 -358
- package/src/scss/cadmin/variables/_forms.scss +353 -2
- package/src/scss/cadmin/variables/_globals.scss +14 -0
- package/src/scss/cadmin/variables/_toggle-switch.scss +404 -1
- package/src/scss/components/_form-validation.scss +8 -237
- package/src/scss/components/_reboot.scss +1 -8
- package/src/scss/components/_toggle-switch.scss +36 -351
- package/src/scss/functions/_global-functions.scss +18 -0
- package/src/scss/mixins/_forms.scss +419 -4
- package/src/scss/mixins/_globals.scss +7 -0
- package/src/scss/mixins/_links.scss +248 -63
- package/src/scss/mixins/_toggle-switch.scss +1076 -14
- package/src/scss/variables/_forms.scss +295 -1
- package/src/scss/variables/_globals.scss +13 -0
- package/src/scss/variables/_toggle-switch.scss +404 -5
|
@@ -532,18 +532,62 @@
|
|
|
532
532
|
/// A mixin to create Select Form Control variants. You can base your variant off Bootstrap's `select.form-control` selector or create your own base class (e.g., `<select class="form-control my-custom-form-control"></select>` or `<select class="my-custom-form-control"></select>`).
|
|
533
533
|
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
534
534
|
/// @example
|
|
535
|
-
///
|
|
535
|
+
/// (
|
|
536
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
537
|
+
/// // select.form-control
|
|
538
|
+
/// hover: (
|
|
539
|
+
/// // select.form-control:hover
|
|
540
|
+
/// option: (
|
|
541
|
+
/// // select.form-control:hover > option
|
|
542
|
+
/// checked: (
|
|
543
|
+
/// // select.form-control:hover > option:checked
|
|
544
|
+
/// ),
|
|
545
|
+
/// ),
|
|
546
|
+
/// ),
|
|
547
|
+
/// focus: (
|
|
548
|
+
/// // select.form-control:focus,
|
|
549
|
+
/// // select.form-control.focus
|
|
550
|
+
/// option: (
|
|
551
|
+
/// // select.form-control:focus > option,
|
|
552
|
+
/// // select.form-control.focus > option
|
|
553
|
+
/// checked: (
|
|
554
|
+
/// // select.form-control:focus > option:checked,
|
|
555
|
+
/// // select.form-control.focus > option:checked
|
|
556
|
+
/// ),
|
|
557
|
+
/// ),
|
|
558
|
+
/// ),
|
|
559
|
+
/// disabled: (
|
|
560
|
+
/// // select.form-control:disabled,
|
|
561
|
+
/// // select.form-control.disabled
|
|
562
|
+
/// option: (
|
|
563
|
+
/// // select.form-control:disabled > option,
|
|
564
|
+
/// // select.form-control.disabled > option
|
|
565
|
+
/// checked: (
|
|
566
|
+
/// // select.form-control:disabled > option:checked,
|
|
567
|
+
/// // select.form-control.disabled > option:checked
|
|
568
|
+
/// ),
|
|
569
|
+
/// ),
|
|
570
|
+
/// ),
|
|
571
|
+
/// option: (
|
|
572
|
+
/// // select.form-control option
|
|
573
|
+
/// checked: (
|
|
574
|
+
/// // select.form-control option:checked
|
|
575
|
+
/// ),
|
|
576
|
+
/// ),
|
|
577
|
+
/// firefox-only: (
|
|
578
|
+
/// // Same selectors as above scoped only for firefox browsers
|
|
579
|
+
/// ),
|
|
580
|
+
/// )
|
|
581
|
+
/// -=-=-=-=-=- Deprecated -=-=-=-=-=-
|
|
536
582
|
/// hover-bg: {Color | String | Null}, // deprecated after 3.7.0
|
|
537
583
|
/// hover-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
|
|
538
584
|
/// hover-box-shadow: {String | List | Null}, // deprecated after 3.7.0
|
|
539
585
|
/// hover-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
540
|
-
/// hover: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
541
586
|
/// focus-bg: {Color | String | Null}, // deprecated after 3.7.0
|
|
542
587
|
/// focus-bg-image: {String | List | Null}, // deprecated after 3.7.0
|
|
543
588
|
/// focus-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
|
|
544
589
|
/// focus-box-shadow: {String | List | Null}, // deprecated after 3.7.0
|
|
545
590
|
/// focus-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
546
|
-
/// focus: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
547
591
|
/// disabled-bg: {Color | String | Null}, // deprecated after 3.7.0
|
|
548
592
|
/// disabled-bg-image: {String | List | Null}, // deprecated after 3.7.0
|
|
549
593
|
/// disabled-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
|
|
@@ -551,7 +595,6 @@
|
|
|
551
595
|
/// disabled-color: {Color | String | Null}, // deprecated after 3.7.0
|
|
552
596
|
/// disabled-cursor: {String | Null}, // deprecated after 3.7.0
|
|
553
597
|
/// disabled-opacity: {Number | String | Null}, // deprecated after 3.7.0
|
|
554
|
-
/// disabled: {Map | Null}, // See Mixin `clay-css` for available keys
|
|
555
598
|
/// @todo
|
|
556
599
|
/// - Add @example
|
|
557
600
|
/// - Add @link to documentation
|
|
@@ -702,11 +745,27 @@
|
|
|
702
745
|
|
|
703
746
|
&:hover {
|
|
704
747
|
@include clay-css($hover);
|
|
748
|
+
|
|
749
|
+
> option {
|
|
750
|
+
@include clay-css(map-get($hover, option));
|
|
751
|
+
|
|
752
|
+
&:checked {
|
|
753
|
+
@include clay-css(map-deep-get($hover, option, checked));
|
|
754
|
+
}
|
|
755
|
+
}
|
|
705
756
|
}
|
|
706
757
|
|
|
707
758
|
&:focus,
|
|
708
759
|
&.focus {
|
|
709
760
|
@include clay-css($focus);
|
|
761
|
+
|
|
762
|
+
> option {
|
|
763
|
+
@include clay-css(map-get($focus, option));
|
|
764
|
+
|
|
765
|
+
&:checked {
|
|
766
|
+
@include clay-css(map-deep-get($focus, option, checked));
|
|
767
|
+
}
|
|
768
|
+
}
|
|
710
769
|
}
|
|
711
770
|
|
|
712
771
|
&:disabled,
|
|
@@ -715,11 +774,367 @@
|
|
|
715
774
|
|
|
716
775
|
> option {
|
|
717
776
|
@include clay-css($disabled-option);
|
|
777
|
+
|
|
778
|
+
&:checked {
|
|
779
|
+
@include clay-css(map-get($disabled-option, checked));
|
|
780
|
+
}
|
|
718
781
|
}
|
|
719
782
|
}
|
|
720
783
|
|
|
721
784
|
option {
|
|
722
785
|
@include clay-css($option);
|
|
786
|
+
|
|
787
|
+
&:checked {
|
|
788
|
+
@include clay-css(map-get($option, checked));
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
@if (map-get($map, firefox-only)) {
|
|
793
|
+
@-moz-document url-prefix() {
|
|
794
|
+
@include clay-css(map-get($map, firefox-only));
|
|
795
|
+
|
|
796
|
+
&:hover {
|
|
797
|
+
@include clay-css(map-deep-get($map, firefox-only, hover));
|
|
798
|
+
|
|
799
|
+
> option {
|
|
800
|
+
@include clay-css(
|
|
801
|
+
map-deep-get($map, firefox-only, hover, option)
|
|
802
|
+
);
|
|
803
|
+
|
|
804
|
+
&:checked {
|
|
805
|
+
@include clay-css(
|
|
806
|
+
map-deep-get(
|
|
807
|
+
$map,
|
|
808
|
+
firefox-only,
|
|
809
|
+
hover,
|
|
810
|
+
option,
|
|
811
|
+
checked
|
|
812
|
+
)
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
&:focus,
|
|
819
|
+
&.focus {
|
|
820
|
+
@include clay-css(map-deep-get($map, firefox-only, focus));
|
|
821
|
+
|
|
822
|
+
> option {
|
|
823
|
+
@include clay-css(
|
|
824
|
+
map-deep-get($map, firefox-only, focus, option)
|
|
825
|
+
);
|
|
826
|
+
|
|
827
|
+
&:checked {
|
|
828
|
+
@include clay-css(
|
|
829
|
+
map-deep-get(
|
|
830
|
+
$map,
|
|
831
|
+
firefox-only,
|
|
832
|
+
focus,
|
|
833
|
+
option,
|
|
834
|
+
checked
|
|
835
|
+
)
|
|
836
|
+
);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
&:disabled,
|
|
842
|
+
&.disabled {
|
|
843
|
+
@include clay-css(
|
|
844
|
+
map-deep-get($map, firefox-only, disabled)
|
|
845
|
+
);
|
|
846
|
+
|
|
847
|
+
> option {
|
|
848
|
+
@include clay-css(
|
|
849
|
+
map-deep-get($map, firefox-only, disabled, option)
|
|
850
|
+
);
|
|
851
|
+
|
|
852
|
+
&:checked {
|
|
853
|
+
@include clay-css(
|
|
854
|
+
map-deep-get(
|
|
855
|
+
$map,
|
|
856
|
+
firefox-only,
|
|
857
|
+
disabled,
|
|
858
|
+
option,
|
|
859
|
+
checked
|
|
860
|
+
)
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
option {
|
|
867
|
+
@include clay-css(map-deep-get($map, firefox-only, option));
|
|
868
|
+
|
|
869
|
+
&:checked {
|
|
870
|
+
@include clay-css(
|
|
871
|
+
map-deep-get($map, firefox-only, option, checked)
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/// A mixin to create Form Validation variants (e.g., `.has-error`).
|
|
881
|
+
/// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
|
|
882
|
+
/// @example
|
|
883
|
+
/// (
|
|
884
|
+
/// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
|
|
885
|
+
/// label: (
|
|
886
|
+
/// // .has-error label
|
|
887
|
+
/// ),
|
|
888
|
+
/// custom-control-label: (
|
|
889
|
+
/// // .has-error .custom-control-label, .has-error .form-check-label
|
|
890
|
+
/// ),
|
|
891
|
+
/// form-control: (
|
|
892
|
+
/// // .has-error .form-control
|
|
893
|
+
/// readonly: (
|
|
894
|
+
/// // .has-error .form-control[readonly]
|
|
895
|
+
/// ),
|
|
896
|
+
/// ),
|
|
897
|
+
/// form-feedback-group: (
|
|
898
|
+
/// // .has-error .form-feedback-group
|
|
899
|
+
/// ),
|
|
900
|
+
/// form-feedback-item: (
|
|
901
|
+
/// // .has-error .form-feedback-item
|
|
902
|
+
/// ),
|
|
903
|
+
/// form-feedback-indicator: (
|
|
904
|
+
/// // .has-error .form-feedback-indicator
|
|
905
|
+
/// ),
|
|
906
|
+
/// form-feedback-text: (
|
|
907
|
+
/// // .has-error .form-feedback-text
|
|
908
|
+
/// ),
|
|
909
|
+
/// select: (
|
|
910
|
+
/// // N/A
|
|
911
|
+
/// form-control: (
|
|
912
|
+
/// // .has-error select.form-control
|
|
913
|
+
/// multiple: (
|
|
914
|
+
/// // .has-error select.form-control[multiple]
|
|
915
|
+
/// ),
|
|
916
|
+
/// size: (
|
|
917
|
+
/// // .has-error select.form-control[size]
|
|
918
|
+
/// ),
|
|
919
|
+
/// ),
|
|
920
|
+
/// ),
|
|
921
|
+
/// input-group-item: (
|
|
922
|
+
/// // .has-error .input-group-item
|
|
923
|
+
/// hover: (
|
|
924
|
+
/// // .has-error .input-group-item:hover
|
|
925
|
+
/// input-group-inset: (
|
|
926
|
+
/// // .has-error .input-group-item:hover .input-group-inset
|
|
927
|
+
/// input-group-inset-item: (
|
|
928
|
+
/// // .has-error .input-group-item:hover .input-group-inset ~ .input-group-inset-item
|
|
929
|
+
/// ),
|
|
930
|
+
/// ),
|
|
931
|
+
/// ),
|
|
932
|
+
/// focus: (
|
|
933
|
+
/// // .has-error .input-group-item.focus
|
|
934
|
+
/// input-group-inset: (
|
|
935
|
+
/// // .has-error .input-group-item.focus .input-group-inset
|
|
936
|
+
/// input-group-inset-item: (
|
|
937
|
+
/// // .has-error .input-group-item.focus .input-group-inset ~ .input-group-inset-item
|
|
938
|
+
/// ),
|
|
939
|
+
/// ),
|
|
940
|
+
/// ),
|
|
941
|
+
/// input-group-inset: (
|
|
942
|
+
/// // .has-error .input-group-inset
|
|
943
|
+
/// input-group-inset-item: (
|
|
944
|
+
/// // .has-error .input-group-inset ~ .input-group-inset-item
|
|
945
|
+
/// ),
|
|
946
|
+
/// hover: (
|
|
947
|
+
/// // .has-error .input-group-inset:hover
|
|
948
|
+
/// input-group-inset-item: (
|
|
949
|
+
/// // .has-error .input-group-inset:hover ~ .input-group-inset-item
|
|
950
|
+
/// ),
|
|
951
|
+
/// ),
|
|
952
|
+
/// focus: (
|
|
953
|
+
/// // .has-error .input-group-inset:focus
|
|
954
|
+
/// input-group-inset-item: (
|
|
955
|
+
/// // .has-error .input-group-inset:focus ~ .input-group-inset-item
|
|
956
|
+
/// ),
|
|
957
|
+
/// ),
|
|
958
|
+
/// ),
|
|
959
|
+
/// ),
|
|
960
|
+
/// )
|
|
961
|
+
|
|
962
|
+
@mixin clay-form-validation-variant($map) {
|
|
963
|
+
$enabled: setter(map-get($map, enabled), true);
|
|
964
|
+
|
|
965
|
+
@if ($enabled) {
|
|
966
|
+
@include clay-css($map);
|
|
967
|
+
|
|
968
|
+
label {
|
|
969
|
+
@include clay-css(map-get($map, label));
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.custom-control-label,
|
|
973
|
+
.form-check-label {
|
|
974
|
+
@include clay-css(map-get($map, custom-control-label));
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.form-control {
|
|
978
|
+
@include clay-form-control-variant(map-get($map, form-control));
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.form-control[readonly] {
|
|
982
|
+
@include clay-form-control-variant(
|
|
983
|
+
map-deep-get($map, form-control, readonly)
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.form-feedback-group {
|
|
988
|
+
@include clay-css(map-get($map, form-feedback-group));
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.form-feedback-item {
|
|
992
|
+
@include clay-css(map-get($map, form-feedback-item));
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.form-feedback-indicator {
|
|
996
|
+
@include clay-css(map-get($map, form-feedback-indicator));
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.form-feedback-text {
|
|
1000
|
+
@include clay-css(map-get($map, form-feedback-text));
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
select.form-control {
|
|
1004
|
+
@include clay-select-variant(
|
|
1005
|
+
map-deep-get($map, select, form-control)
|
|
1006
|
+
);
|
|
1007
|
+
|
|
1008
|
+
&[size] {
|
|
1009
|
+
@include clay-select-variant(
|
|
1010
|
+
map-deep-get($map, select, form-control, size)
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
&[multiple] {
|
|
1015
|
+
@include clay-select-variant(
|
|
1016
|
+
map-deep-get($map, select, form-control, multiple)
|
|
1017
|
+
);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.input-group-item {
|
|
1022
|
+
@include clay-css(map-get($map, input-group-item));
|
|
1023
|
+
|
|
1024
|
+
&:hover {
|
|
1025
|
+
.input-group-inset {
|
|
1026
|
+
@include clay-css(
|
|
1027
|
+
map-deep-get(
|
|
1028
|
+
$map,
|
|
1029
|
+
input-group-item,
|
|
1030
|
+
hover,
|
|
1031
|
+
input-group-inset
|
|
1032
|
+
)
|
|
1033
|
+
);
|
|
1034
|
+
|
|
1035
|
+
~ .input-group-inset-item {
|
|
1036
|
+
@include clay-css(
|
|
1037
|
+
map-deep-get(
|
|
1038
|
+
$map,
|
|
1039
|
+
input-group-item,
|
|
1040
|
+
hover,
|
|
1041
|
+
input-group-inset,
|
|
1042
|
+
input-group-inset-item
|
|
1043
|
+
)
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
&.focus {
|
|
1050
|
+
@include clay-css(map-deep-get($map, input-group-item, focus));
|
|
1051
|
+
|
|
1052
|
+
.input-group-inset {
|
|
1053
|
+
@include clay-css(
|
|
1054
|
+
map-deep-get(
|
|
1055
|
+
$map,
|
|
1056
|
+
input-group-item,
|
|
1057
|
+
focus,
|
|
1058
|
+
input-group-inset
|
|
1059
|
+
)
|
|
1060
|
+
);
|
|
1061
|
+
|
|
1062
|
+
~ .input-group-inset-item {
|
|
1063
|
+
@include clay-css(
|
|
1064
|
+
map-deep-get(
|
|
1065
|
+
$map,
|
|
1066
|
+
input-group-item,
|
|
1067
|
+
focus,
|
|
1068
|
+
input-group-inset,
|
|
1069
|
+
input-group-inset-item
|
|
1070
|
+
)
|
|
1071
|
+
);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.input-group-inset {
|
|
1077
|
+
@include clay-css(
|
|
1078
|
+
map-deep-get($map, input-group-item, input-group-inset)
|
|
1079
|
+
);
|
|
1080
|
+
|
|
1081
|
+
~ .input-group-inset-item {
|
|
1082
|
+
@include clay-css(
|
|
1083
|
+
map-deep-get(
|
|
1084
|
+
$map,
|
|
1085
|
+
input-group-item,
|
|
1086
|
+
input-group-inset,
|
|
1087
|
+
input-group-inset-item
|
|
1088
|
+
)
|
|
1089
|
+
);
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
&:hover {
|
|
1093
|
+
@include clay-css(
|
|
1094
|
+
map-deep-get(
|
|
1095
|
+
$map,
|
|
1096
|
+
input-group-item,
|
|
1097
|
+
input-group-inset,
|
|
1098
|
+
hover
|
|
1099
|
+
)
|
|
1100
|
+
);
|
|
1101
|
+
|
|
1102
|
+
~ .input-group-inset-item {
|
|
1103
|
+
@include clay-css(
|
|
1104
|
+
map-deep-get(
|
|
1105
|
+
$map,
|
|
1106
|
+
input-group-item,
|
|
1107
|
+
input-group-inset,
|
|
1108
|
+
hover,
|
|
1109
|
+
input-group-inset-item
|
|
1110
|
+
)
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
&:focus {
|
|
1116
|
+
@include clay-css(
|
|
1117
|
+
map-deep-get(
|
|
1118
|
+
$map,
|
|
1119
|
+
input-group-item,
|
|
1120
|
+
input-group-inset,
|
|
1121
|
+
focus
|
|
1122
|
+
)
|
|
1123
|
+
);
|
|
1124
|
+
|
|
1125
|
+
~ .input-group-inset-item {
|
|
1126
|
+
@include clay-css(
|
|
1127
|
+
map-deep-get(
|
|
1128
|
+
$map,
|
|
1129
|
+
input-group-item,
|
|
1130
|
+
input-group-inset,
|
|
1131
|
+
focus,
|
|
1132
|
+
input-group-inset-item
|
|
1133
|
+
)
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
723
1138
|
}
|
|
724
1139
|
}
|
|
725
1140
|
}
|
|
@@ -184,6 +184,13 @@
|
|
|
184
184
|
'table-layout',
|
|
185
185
|
'text-align',
|
|
186
186
|
'text-decoration',
|
|
187
|
+
'text-decoration-color',
|
|
188
|
+
'text-decoration-line',
|
|
189
|
+
'text-decoration-skip-ink',
|
|
190
|
+
'text-decoration-style',
|
|
191
|
+
'text-decoration-thickness',
|
|
192
|
+
'text-underline-offset',
|
|
193
|
+
'text-underline-position',
|
|
187
194
|
'text-indent',
|
|
188
195
|
'text-justify',
|
|
189
196
|
'text-overflow',
|