@@ -79,10 +79,9 @@ form .notice {
7979 padding : var (--spacing-regular );
8080}
8181
82- /* Shared form definition for UserInput fields and annotation fields */
83- : is (.form-element , .form-controls ) input : not ([type = checkbox ]): not ([type = hidden ]),
84- : is (.form-element , .form-controls ) textarea ,
85- : is (.form-element , .form-controls ) select {
82+ input : not ([type = checkbox ]): not ([type = hidden ]),
83+ textarea ,
84+ select {
8685 width : 100% ;
8786 box-sizing : border-box;
8887 font : inherit;
@@ -94,7 +93,7 @@ form .notice {
9493 padding : var (--spacing-small );
9594}
9695
97- : is (. form-element , . form-controls ) select {
96+ select {
9897 -moz-appearance : none;
9998 -webkit-appearance : none;
10099 appearance : none;
@@ -105,24 +104,24 @@ form .notice {
105104 padding-right : calc (var (--spacing-small ) + 16px );
106105}
107106
108- : is (. form-element , . form-controls ) select : open {
107+ select : open {
109108 background-image : url ('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="%23333333" stroke-width="2.5" stroke-linecap="butt" stroke-linejoin="miter" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" transform="matrix(1,0,0,-1,0,0)"><polyline points="2,5 8,11 14,5"></polyline></svg>' );
110109}
111110
112- : is (. form-element , . form-controls ) select : focus {
111+ select : focus {
113112 outline : none;
114113 border-bottom : var (--stroke-heavy ) solid var (--fourcat-accent );
115114}
116115
117- : is (. form-element , . form-controls ) input : not ([type = checkbox ]): focus ,
118- : is (. form-element , . form-controls ) textarea : focus ,
119- : is (. form-element , . form-controls ) select : focus {
116+ input : not ([type = checkbox ]): focus ,
117+ textarea : focus ,
118+ select : focus {
120119 outline : var (--stroke ) solid var (--fourcat-accent );
121120 border-bottom : var (--stroke-heavy ) solid var (--fourcat-accent );
122121 outline-offset : calc (-1 * var (--stroke-light ));
123122}
124123
125- : is (. form-element , . form-controls ) input [type = checkbox ] {
124+ input [type = checkbox ] {
126125 box-sizing : border-box;
127126 width : 1.2rem ;
128127 height : 1.2rem ;
@@ -136,36 +135,35 @@ form .notice {
136135 transition : outline 0.1s ;
137136}
138137
139- : is (. form-element , . form-controls ) input [type = checkbox ]: checked {
138+ input [type = checkbox ]: checked {
140139 background-color : var (--button-bg-regular );
141140 background-image : url ('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="butt" stroke-linejoin="miter" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"><polyline points="2,7 7,12 14,3"></polyline></svg>' );
142141 background-repeat : no-repeat;
143142 background-position : center;
144143}
145144
146- : is (. form-element , . form-controls ) option ,
147- : is (. form-element , . form-controls ) optgroup {
145+ option ,
146+ optgroup {
148147 font-family : Chivo, sans-serif;
149148 font-size : var (--font-body );
150149}
151150
152- : is (. form-element , . form-controls ) textarea {
151+ textarea {
153152 min-height : 8em ;
154153 resize : vertical;
155154}
156155
157- : is (. form-element , . form-controls ) input .invalid ,
158- : is (. form-element , . form-controls ) input : user-invalid ,
159- : is (. form-element , . form-controls ) input .invalid : not ([type = checkbox ]): not ([type = hidden ]),
160- : is (. form-element , . form-controls ) textarea .invalid ,
161- : is (. form-element , . form-controls ) textarea : user-invalid {
156+ input .invalid ,
157+ input : user-invalid ,
158+ input .invalid : not ([type = checkbox ]): not ([type = hidden ]),
159+ textarea .invalid ,
160+ textarea : user-invalid {
162161 background : var (--red-light );
163162 border-color : var (--red );
164163 color : var (--red );
165164}
166165
167166/* UserInput form widgets */
168-
169167.form-element .daterange-wrapper {
170168 display : flex;
171169 align-items : center;
0 commit comments