@@ -615,22 +615,22 @@ h6 {
615
615
616
616
h1 ,
617
617
.h1 {
618
- font-size : clamp (2.6837343406 rem , 2vw + 1rem , 3.1573345183 rem );
618
+ font-size : clamp (2.0751953125 rem , 2vw + 1rem , 2.44140625 rem );
619
619
}
620
620
621
621
h2 ,
622
622
.h2 {
623
- font-size : clamp (2.0133040815 rem , 2vw + 1rem , 2.368593037 rem );
623
+ font-size : clamp (1.66015625 rem , 2vw + 1rem , 1.953125 rem );
624
624
}
625
625
626
626
h3 ,
627
627
.h3 {
628
- font-size : clamp (1.51035565 rem , 2vw + 1rem , 1.776889 rem );
628
+ font-size : clamp (1.328125 rem , 2vw + 1rem , 1.5625 rem );
629
629
}
630
630
631
631
h4 ,
632
632
.h4 {
633
- font-size : clamp (1.13305 rem , 2vw + 1rem , 1.333 rem );
633
+ font-size : clamp (1.0625 rem , 2vw + 1rem , 1.25 rem );
634
634
}
635
635
636
636
h5 ,
@@ -726,7 +726,7 @@ samp {
726
726
}
727
727
728
728
.lead {
729
- font-size : 1.333 rem ;
729
+ font-size : 1.25 rem ;
730
730
}
731
731
732
732
.btn {
@@ -815,79 +815,17 @@ samp {
815
815
outline : 2px solid transparent;
816
816
}
817
817
818
- .form-check {
819
- align-items : center ;
820
- display : inline-flex ;
818
+ .form-label {
819
+ color : var ( --spruce-form-color-label ) ;
820
+ line-height : 1.5 ;
821
821
}
822
-
823
- .form-check--sm .form-check__control {
822
+ .form-label--sm {
824
823
font-size : 0.9rem ;
825
824
}
826
-
827
- .form-check--lg .form-check__control {
825
+ .form-label--lg {
828
826
font-size : 1.1rem ;
829
827
}
830
828
831
- .form-check__control {
832
- -webkit-appearance : none;
833
- -moz-appearance : none;
834
- appearance : none;
835
- background-color : var (--spruce-form-color-background );
836
- background-position : center;
837
- background-repeat : no-repeat;
838
- background-size : contain;
839
- border : 1px solid var (--spruce-form-color-border );
840
- flex-shrink : 0 ;
841
- font-size : 1rem ;
842
- height : 1em ;
843
- line-height : 1 ;
844
- margin-bottom : -0.1em ;
845
- -webkit-margin-end : 0.5rem ;
846
- margin-inline-end : 0.5rem ;
847
- transition-duration : var (--spruce-transition-duration );
848
- transition-property : border, box-shadow;
849
- transition-timing-function : var (--spruce-transition-timing-function );
850
- width : 1em ;
851
- }
852
- .form-check__control [type = radio ] {
853
- border-radius : 50% ;
854
- }
855
- .form-check__control [type = checkbox ] {
856
- border-radius : 0.25rem ;
857
- }
858
- .form-check__control : focus {
859
- border-color : var (--spruce-form-color-border-focus );
860
- box-shadow : 0 0 0 0.25rem var (--spruce-form-color-shadow-focus );
861
- outline : 2px solid transparent;
862
- }
863
- .form-check__control : checked {
864
- background-color : var (--spruce-form-color-check-background );
865
- border-color : var (--spruce-form-color-check-background );
866
- }
867
- .form-check__control : checked [type = radio ] {
868
- background-image : url ('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3ccircle cx="12" cy="12" r="6" style="fill:hsl%280deg, 0%, 100%%29;"/%3e%3c/svg%3e' );
869
- }
870
- .form-check__control : checked [type = checkbox ] {
871
- background-image : url ('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M9.525,13.777l-2.411,-2.412c-0.234,-0.233 -0.613,-0.233 -0.846,0l-1.27,1.27c-0.233,0.233 -0.233,0.612 0,0.846l4.104,4.103c0.116,0.117 0.269,0.175 0.422,0.175l0.003,0c0.152,0 0.305,-0.058 0.421,-0.175l9.054,-9.053c0.233,-0.234 0.233,-0.613 -0,-0.846l-1.27,-1.269c-0.233,-0.234 -0.612,-0.234 -0.846,-0l-7.361,7.361Z" style="fill:hsl%280deg, 0%, 100%%29;"/%3e%3c/svg%3e' );
872
- }
873
- .form-check__control : indeterminate [type = checkbox ] {
874
- background-image : url ('data:image/svg+xml,%3csvg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M19.5,11.1c-0,-0.331 -0.269,-0.6 -0.6,-0.6l-13.8,0c-0.331,0 -0.6,0.269 -0.6,0.6l0,1.8c0,0.331 0.269,0.6 0.6,0.6l13.8,0c0.331,0 0.6,-0.269 0.6,-0.6l-0,-1.8Z" style="fill:hsl%280deg, 0%, 100%%29;"/%3e%3c/svg%3e' );
875
- background-color : var (--spruce-form-color-check-background );
876
- border-color : var (--spruce-form-color-check-background );
877
- }
878
- .form-check__control : disabled {
879
- background-color : var (--spruce-form-color-background-disabled );
880
- border-color : var (--spruce-form-color-border-disabled );
881
- cursor : not-allowed;
882
- }
883
- .form-check__control : disabled + .form-check__label {
884
- opacity : 0.5 ;
885
- }
886
-
887
- .form-check__label {
888
- line-height : calc (2px + 2ex + 2px );
889
- }
890
-
891
829
.form-control {
892
830
-webkit-appearance : none;
893
831
-moz-appearance : none;
@@ -974,6 +912,79 @@ html[dir=rtl] select.form-control:not([multiple]):not([size]) {
974
912
background-position : center left 0.5em ;
975
913
}
976
914
915
+ .form-check {
916
+ align-items : center;
917
+ display : inline-flex;
918
+ }
919
+
920
+ .form-check--sm .form-check__control {
921
+ font-size : 0.9rem ;
922
+ }
923
+
924
+ .form-check--lg .form-check__control {
925
+ font-size : 1.1rem ;
926
+ }
927
+
928
+ .form-check__control {
929
+ -webkit-appearance : none;
930
+ -moz-appearance : none;
931
+ appearance : none;
932
+ background-color : var (--spruce-form-color-background );
933
+ background-position : center;
934
+ background-repeat : no-repeat;
935
+ background-size : contain;
936
+ border : 1px solid var (--spruce-form-color-border );
937
+ flex-shrink : 0 ;
938
+ font-size : 1rem ;
939
+ height : 1em ;
940
+ line-height : 1 ;
941
+ margin-bottom : -0.1em ;
942
+ -webkit-margin-end : 0.5rem ;
943
+ margin-inline-end : 0.5rem ;
944
+ transition-duration : var (--spruce-transition-duration );
945
+ transition-property : border, box-shadow;
946
+ transition-timing-function : var (--spruce-transition-timing-function );
947
+ width : 1em ;
948
+ }
949
+ .form-check__control [type = radio ] {
950
+ border-radius : 50% ;
951
+ }
952
+ .form-check__control [type = checkbox ] {
953
+ border-radius : 0.25rem ;
954
+ }
955
+ .form-check__control : focus {
956
+ border-color : var (--spruce-form-color-border-focus );
957
+ box-shadow : 0 0 0 0.25rem var (--spruce-form-color-shadow-focus );
958
+ outline : 2px solid transparent;
959
+ }
960
+ .form-check__control : checked {
961
+ background-color : var (--spruce-form-color-check-background );
962
+ border-color : var (--spruce-form-color-check-background );
963
+ }
964
+ .form-check__control : checked [type = radio ] {
965
+ background-image : url ('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3ccircle cx="12" cy="12" r="6" style="fill:hsl%280deg, 0%, 100%%29;"/%3e%3c/svg%3e' );
966
+ }
967
+ .form-check__control : checked [type = checkbox ] {
968
+ background-image : url ('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M9.525,13.777l-2.411,-2.412c-0.234,-0.233 -0.613,-0.233 -0.846,0l-1.27,1.27c-0.233,0.233 -0.233,0.612 0,0.846l4.104,4.103c0.116,0.117 0.269,0.175 0.422,0.175l0.003,0c0.152,0 0.305,-0.058 0.421,-0.175l9.054,-9.053c0.233,-0.234 0.233,-0.613 -0,-0.846l-1.27,-1.269c-0.233,-0.234 -0.612,-0.234 -0.846,-0l-7.361,7.361Z" style="fill:hsl%280deg, 0%, 100%%29;"/%3e%3c/svg%3e' );
969
+ }
970
+ .form-check__control : indeterminate [type = checkbox ] {
971
+ background-image : url ('data:image/svg+xml,%3csvg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M19.5,11.1c-0,-0.331 -0.269,-0.6 -0.6,-0.6l-13.8,0c-0.331,0 -0.6,0.269 -0.6,0.6l0,1.8c0,0.331 0.269,0.6 0.6,0.6l13.8,0c0.331,0 0.6,-0.269 0.6,-0.6l-0,-1.8Z" style="fill:hsl%280deg, 0%, 100%%29;"/%3e%3c/svg%3e' );
972
+ background-color : var (--spruce-form-color-check-background );
973
+ border-color : var (--spruce-form-color-check-background );
974
+ }
975
+ .form-check__control : disabled {
976
+ background-color : var (--spruce-form-color-background-disabled );
977
+ border-color : var (--spruce-form-color-border-disabled );
978
+ cursor : not-allowed;
979
+ }
980
+ .form-check__control : disabled + .form-check__label {
981
+ opacity : 0.5 ;
982
+ }
983
+
984
+ .form-check__label {
985
+ line-height : calc (2px + 2ex + 2px );
986
+ }
987
+
977
988
.form-description {
978
989
color : var (--spruce-form-color-text );
979
990
display : block;
@@ -1002,7 +1013,7 @@ fieldset + fieldset {
1002
1013
1003
1014
legend {
1004
1015
color : var (--spruce-form-color-legend );
1005
- font-size : clamp (1rem , 5vw , 1.333 rem );
1016
+ font-size : clamp (1rem , 5vw , 1.25 rem );
1006
1017
font-weight : 700 ;
1007
1018
}
1008
1019
@@ -1028,8 +1039,8 @@ legend {
1028
1039
margin-block-start : 0 ;
1029
1040
}
1030
1041
.form-group--vertical-check > * + * {
1031
- -webkit-margin-before : 0.5 rem ;
1032
- margin-block-start : 0.5 rem ;
1042
+ -webkit-margin-before : 1 rem ;
1043
+ margin-block-start : 1 rem ;
1033
1044
}
1034
1045
.form-group--grid {
1035
1046
align-items : flex-start;
@@ -1038,17 +1049,6 @@ legend {
1038
1049
gap : 0.5rem ;
1039
1050
}
1040
1051
1041
- .form-label {
1042
- color : var (--spruce-form-color-label );
1043
- line-height : 1.5 ;
1044
- }
1045
- .form-label--sm {
1046
- font-size : 0.9rem ;
1047
- }
1048
- .form-label--lg {
1049
- font-size : 1.1rem ;
1050
- }
1051
-
1052
1052
.form-row--mixed {
1053
1053
--col-width : 20ch ;
1054
1054
display : flex;
0 commit comments