@@ -148,7 +148,7 @@ label:not(:only-child):not(:last-child) {
148148 padding-bottom : 0.5em ;
149149}
150150
151- label [ disabled ] {
151+ label . disabled {
152152 color : rgb ( var ( --form-label-disabled ) ) ;
153153}
154154
@@ -168,7 +168,7 @@ input[type="radio"] {
168168 pointer-events : none;
169169 box-sizing : border-box;
170170 -webkit-tap-highlight-color : rgba ( 0 , 0 , 0 , 0 ) ;
171- /* transition: all var(--layout-transition-speed-fast) ease-in-out; */
171+ transition : color var ( --layout-transition-speed-fast ) ease-in-out;
172172}
173173
174174input [type = "checkbox" ]+ label ,
@@ -181,7 +181,7 @@ input[type="radio"]+label {
181181 flex-direction : row;
182182 justify-content : flex-start;
183183 align-items : flex-start;
184- transition : all var ( --layout-transition-speed-fast ) ease-in-out;
184+ transition : transform var ( --layout-transition-speed-fast ) ease-in-out , color var ( --layout-transition-speed-fast ) ease-in-out;
185185}
186186
187187input [type = "checkbox" ]+ label : before ,
@@ -194,7 +194,29 @@ input[type="radio"]+label:before {
194194 height : 1em ;
195195 display : block;
196196 transform : scale ( 1 ) ;
197- transition : transform 0.05s ease-in-out;
197+ font-family : "Icons" !important ;
198+ speak : none;
199+ font-style : normal;
200+ font-weight : normal;
201+ font-variant : normal;
202+ text-transform : none;
203+ transition : transform var ( --layout-transition-speed-fast ) ease-in-out, color var ( --layout-transition-speed-fast ) ease-in-out;
204+ }
205+
206+ input [type = "checkbox" ]+ label : before {
207+ content : "\e835" ;
208+ }
209+
210+ input [type = "checkbox" ]: checked + label : before {
211+ content : "\e834" ;
212+ }
213+
214+ input [type = "radio" ]+ label : before {
215+ content : "\e836" ;
216+ }
217+
218+ input [type = "radio" ]: checked + label : before {
219+ content : "\e837" ;
198220}
199221
200222input [type = "checkbox" ]: focus + label ,
@@ -261,32 +283,6 @@ input[type="radio"][disabled]:active+label:before {
261283 transform : none;
262284}
263285
264- input [type = "checkbox" ]+ label : before ,
265- input [type = "radio" ]+ label : before {
266- font-family : "Icons" !important ;
267- speak : none;
268- font-style : normal;
269- font-weight : normal;
270- font-variant : normal;
271- text-transform : none;
272- }
273-
274- input [type = "checkbox" ]+ label : before {
275- content : "\e835" ;
276- }
277-
278- input [type = "checkbox" ]: checked + label : before {
279- content : "\e834" ;
280- }
281-
282- input [type = "radio" ]+ label : before {
283- content : "\e836" ;
284- }
285-
286- input [type = "radio" ]: checked + label : before {
287- content : "\e837" ;
288- }
289-
290286/* color */
291287input [type = "color" ] {
292288 background-color : transparent;
@@ -537,26 +533,19 @@ input[type="range"][disabled]::-moz-range-progress {
537533 background-color : rgb ( var ( --theme-gray-04 ) ) ;
538534}
539535
540- /* input helper */
541- . input-helper {
542- margin-bottom : 0
536+ /* form helper */
537+ . form-helper {
538+ padding : 0.5em 0 ;
539+ color : rgb ( var ( --form-helper ) ) ;
540+ transition : color var ( --layout-transition-speed-fast ) ease-in-out;
543541}
544542
545- . input -helper: not ( : only-child ) : not ( : last-child ) {
546- margin-bottom : 0.5 em ;
543+ . form -helper. disabled {
544+ color : rgb ( var ( --form-helper-disabled ) ) ;
547545}
548546
549- . input-helper [disabled ],
550- input [type = "checkbox" ][disabled ]~ . input-helper ,
551- input [type = "radio" ][disabled ]~ . input-helper ,
552- input [type = "email" ][disabled ]~ . input-helper ,
553- input [type = "number" ][disabled ]~ . input-helper ,
554- input [type = "password" ][disabled ]~ . input-helper ,
555- input [type = "search" ][disabled ]~ . input-helper ,
556- input [type = "tel" ][disabled ]~ . input-helper ,
557- input [type = "text" ][disabled ]~ . input-helper ,
558- input [type = "range" ][disabled ]~ . input-helper {
559- color : rgb ( var ( --form-input-text-disabled-helper-text ) ) ;
547+ . form-helper : not ( : last-child ) {
548+ margin-bottom : 0 ;
560549}
561550
562551/* input variants */
@@ -772,18 +761,14 @@ input[type="range"][disabled]~.input-helper {
772761 width : 100% ;
773762}
774763
775- . form-grid-wrap . input-helper : not ( : only-child ) {
776- padding-top : 0.5em ;
777- }
778-
779764. form-grid {
780765 padding : calc ( var ( --layout-line-width ) * 2 ) ;
781766 display : grid;
782767 border-radius : calc ( var ( --layout-line-width ) * 6 ) ;
783768 border-width : var ( --layout-line-width ) ;
784769 border-style : solid;
785770 border-color : rgb ( var ( --form-checkbox-radio-label ) ) ;
786- transition : all var ( --layout-transition-speed-fast ) ease-in-out;
771+ transition : border-color var ( --layout-transition-speed-fast ) ease-in-out;
787772}
788773
789774. form-grid : focus ,
@@ -792,16 +777,12 @@ input[type="range"][disabled]~.input-helper {
792777 border-color : rgb ( var ( --theme-style-text ) ) ;
793778}
794779
795- . form-grid [ disabled ] {
780+ . form-grid . disabled {
796781 border-color : rgb ( var ( --form-checkbox-radio-disabled-label ) ) ;
797782}
798783
799- . form-grid [disabled ]+ . input-helper {
800- color : rgb ( var ( --form-input-text-disabled-helper-text ) ) ;
801- }
802-
803- . form-grid [disabled ]: focus ,
804- . form-grid [disabled ]: focus-within {
784+ . form-grid . disabled : focus ,
785+ . form-grid . disabled : focus-within {
805786 border-color : rgb ( var ( --form-checkbox-radio-disabled-label ) ) ;
806787}
807788
@@ -845,6 +826,7 @@ input[type="range"][disabled]~.input-helper {
845826 border-color : transparent;
846827 position : relative;
847828 transition : none;
829+ transition : border-color var ( --layout-transition-speed-fast ) ease-in-out;
848830}
849831
850832. form-grid input [type = "checkbox" ]: focus + label ,
@@ -893,7 +875,7 @@ input[type="range"][disabled]~.input-helper {
893875 content : "" ;
894876 margin-right : 0 ;
895877 font-size : 1em ;
896- /* margin: var(--layout-line-width); */
878+ background-color : transparent ;
897879 width : inherit;
898880 height : inherit;
899881 width : calc ( 100% - calc ( var ( --layout-line-width ) * 4 ) ) ;
@@ -903,7 +885,7 @@ input[type="range"][disabled]~.input-helper {
903885 left : calc ( var ( --layout-line-width ) * 2 ) ;
904886 display : block;
905887 transform : scale ( 1 ) ;
906- transition : transform 0.05 s ease-in-out;
888+ transition : transform var ( --layout-transition-speed-fast ) ease-in-out , background-color var ( --layout-transition-speed-fast ) ease-in-out;
907889}
908890
909891. form-grid input [type = "checkbox" ]: focus + label : before ,
@@ -1004,7 +986,7 @@ input[type="range"][disabled]~.input-helper {
1004986
1005987. form-inline {
1006988 display : inline-block;
1007- margin-right : 1 .5em ;
989+ margin-right : 0 .5em ;
1008990 width : initial;
1009991}
1010992
@@ -1164,13 +1146,36 @@ input[type="range"][disabled]~.input-helper {
11641146 border-radius : 0 var ( --theme-radius ) var ( --theme-radius ) 0 ;
11651147}
11661148
1149+ . feedback-wrap {
1150+ padding : 0.5em 0 ;
1151+ position : relative;
1152+ width : 100% ;
1153+ }
1154+
11671155. form-feedback {
1168- padding : 1 em 1.5em ;
1156+ padding : 0.5 em 1.5em 0.5 em 1 em ;
11691157 background-color : rgb ( var ( --theme-gray-02 ) ) ;
1170- /* border-bottom: var(--layout-line-width) solid rgb(var(--theme-gray-04)); */
1171- border-radius : var ( --theme-radius ) ;
1158+ border-width : 0 ;
1159+ border-left-width : calc ( var ( --layout-line-width ) * 2 ) ;
1160+ border-style : solid;
1161+ border-color : rgb ( var ( --theme-gray-04 ) ) ;
1162+ border-top-right-radius : var ( --theme-radius ) ;
1163+ border-bottom-right-radius : var ( --theme-radius ) ;
1164+ }
1165+
1166+ . form-feedback p {
1167+ color : rgb ( var ( --form-feedback-text ) ) ;
1168+ }
1169+
1170+ . form-feedback p . muted {
1171+ color : rgb ( var ( --form-feedback-text-muted ) ) ;
1172+ }
1173+
1174+ . form-feedback . disabled {
1175+ background-color : transparent;
1176+ border-color : rgb ( var ( --theme-gray-02 ) ) ;
11721177}
11731178
1174- . form-feedback : not ( : last-child ) {
1175- margin-bottom : 1 em ;
1179+ . form-feedback . disabled p {
1180+ color : rgb ( var ( --form-feedback-text-disabled ) ) ;
11761181}
0 commit comments