@@ -32,10 +32,7 @@ textarea,
3232.ui .form input [type = "text" ],
3333.ui .form input [type = "time" ],
3434.ui .form input [type = "url" ],
35- .ui .selection .dropdown ,
36- .ui .checkbox label ::before ,
37- .ui .checkbox input : checked ~ label ::before ,
38- .ui .checkbox input : not ([type = "radio" ]): indeterminate ~ label ::before {
35+ .ui .selection .dropdown {
3936 background : var (--color-input-background );
4037 border-color : var (--color-input-border );
4138 color : var (--color-input-text );
@@ -63,12 +60,7 @@ textarea:hover,
6360.ui .form input [type = "text" ]: hover ,
6461.ui .form input [type = "time" ]: hover ,
6562.ui .form input [type = "url" ]: hover ,
66- .ui .selection .dropdown : hover ,
67- .ui .checkbox label : hover ::before ,
68- .ui .checkbox label : active ::before ,
69- .ui .radio .checkbox label ::after ,
70- .ui .radio .checkbox input : focus ~ label ::before ,
71- .ui .radio .checkbox input : checked ~ label ::before {
63+ .ui .selection .dropdown : hover {
7264 background : var (--color-input-background );
7365 border-color : var (--color-input-border-hover );
7466 color : var (--color-input-text );
@@ -91,11 +83,7 @@ textarea:focus,
9183.ui .form input [type = "text" ]: focus ,
9284.ui .form input [type = "time" ]: focus ,
9385.ui .form input [type = "url" ]: focus ,
94- .ui .selection .dropdown : focus ,
95- .ui .checkbox input : focus ~ label ::before ,
96- .ui .checkbox input : not ([type = "radio" ]): indeterminate : focus ~ label ::before ,
97- .ui .checkbox input : checked : focus ~ label ::before ,
98- .ui .radio .checkbox input : focus : checked ~ label ::before {
86+ .ui .selection .dropdown : focus {
9987 background : var (--color-input-background );
10088 border-color : var (--color-primary );
10189 color : var (--color-input-text );
@@ -106,58 +94,21 @@ textarea:focus,
10694.ui .form .inline .fields .field > label ,
10795.ui .form .inline .fields .field > p ,
10896.ui .form .inline .field > label ,
109- .ui .form .inline .field > p ,
110- .ui .checkbox label ,
111- .ui .checkbox + label ,
112- .ui .checkbox label : hover ,
113- .ui .checkbox + label : hover ,
114- .ui .checkbox input : focus ~ label ,
115- .ui .checkbox input : active ~ label {
97+ .ui .form .inline .field > p {
11698 color : var (--color-text );
11799}
118100
119101.ui .form .required .fields : not (.grouped ) > .field > label ::after ,
120102.ui .form .required .fields .grouped > label ::after ,
121103.ui .form .required .field > label ::after ,
122- .ui .form .required .fields : not (.grouped ) > .field > .checkbox ::after ,
123- .ui .form .required .field > .checkbox ::after ,
124104.ui .form label .required ::after {
125105 color : var (--color-red );
126106}
127107
128- .ui .input ,
129- .ui .checkbox input : focus ~ label ::after ,
130- .ui .checkbox input : checked ~ label ::after ,
131- .ui .checkbox label : active ::after ,
132- .ui .checkbox input : not ([type = "radio" ]): indeterminate ~ label ::after ,
133- .ui .checkbox input : not ([type = "radio" ]): indeterminate : focus ~ label ::after ,
134- .ui .checkbox input : checked : focus ~ label ::after ,
135- .ui .disabled .checkbox label ,
136- .ui .checkbox input [disabled ] ~ label {
108+ .ui .input {
137109 color : var (--color-input-text );
138110}
139111
140- .ui .radio .checkbox input : focus ~ label ::after ,
141- .ui .radio .checkbox input : checked ~ label ::after ,
142- .ui .radio .checkbox input : focus : checked ~ label ::after {
143- background : var (--color-input-text );
144- }
145-
146- .ui .toggle .checkbox label ::before {
147- background : var (--color-input-toggle-background );
148- }
149-
150- .ui .toggle .checkbox label ,
151- .ui .toggle .checkbox input : checked ~ label ,
152- .ui .toggle .checkbox input : focus : checked ~ label {
153- color : var (--color-text ) !important ;
154- }
155-
156- .ui .toggle .checkbox input : checked ~ label ::before ,
157- .ui .toggle .checkbox input : focus : checked ~ label ::before {
158- background : var (--color-primary ) !important ;
159- }
160-
161112/* match <select> padding to <input> */
162113.ui .form select {
163114 padding : 0.67857143em 1em ;
0 commit comments