1 | input[type=text], |
---|
2 | input[type=color], |
---|
3 | input[type=email], |
---|
4 | input[type=url], |
---|
5 | input[type=datetime], |
---|
6 | input[type=date], |
---|
7 | input[type=time], |
---|
8 | input[type=file], |
---|
9 | input[type=number], |
---|
10 | input[type=password], |
---|
11 | input[type=submit], |
---|
12 | input[type=button], |
---|
13 | input[type=reset], |
---|
14 | a.button, button, textarea, select, legend { |
---|
15 | max-width: 100%; |
---|
16 | } |
---|
17 | input[type=text], |
---|
18 | input[type=color], |
---|
19 | input[type=email], |
---|
20 | input[type=url], |
---|
21 | input[type=datetime], |
---|
22 | input[type=date], |
---|
23 | input[type=time], |
---|
24 | input[type=file], |
---|
25 | input[type=number], |
---|
26 | input[type=password], |
---|
27 | input[type=submit], |
---|
28 | input[type=button], |
---|
29 | input[type=reset], |
---|
30 | a.button, button, textarea, legend { |
---|
31 | border-radius: 3px; |
---|
32 | } |
---|
33 | form { |
---|
34 | display: block; |
---|
35 | margin: 0; |
---|
36 | padding: 0; |
---|
37 | } |
---|
38 | fieldset { |
---|
39 | display: block; |
---|
40 | margin: 1em 0; |
---|
41 | padding: 1em 0.5em; |
---|
42 | border-width: 1px 0; |
---|
43 | border-style: solid; |
---|
44 | border-color: $fieldset-border; |
---|
45 | background: $fieldset-background; |
---|
46 | hr { |
---|
47 | background-color: $fieldset-border; |
---|
48 | border-width: 0; |
---|
49 | margin: 1em 0; |
---|
50 | } |
---|
51 | &:focus-within { |
---|
52 | background-color: $fieldset-focus-background; |
---|
53 | } |
---|
54 | } |
---|
55 | input[type=text], |
---|
56 | input[type=color], |
---|
57 | input[type=email], |
---|
58 | input[type=url], |
---|
59 | input[type=datetime], |
---|
60 | input[type=date], |
---|
61 | input[type=time], |
---|
62 | input[type=file], |
---|
63 | input[type=number], |
---|
64 | textarea { |
---|
65 | font-family: $sans-serif-input; |
---|
66 | font-size: 100%; |
---|
67 | } |
---|
68 | legend { |
---|
69 | padding: 0.2em 0.6em; |
---|
70 | border-width: 1px; |
---|
71 | border-style: solid; |
---|
72 | border-color: $legend-border; |
---|
73 | background: $legend-background; |
---|
74 | margin-bottom: 0.5em; |
---|
75 | } |
---|
76 | label .maximal, textarea.maximal, input.maximal, select.maximal { |
---|
77 | width: 99%; |
---|
78 | } |
---|
79 | input[type=text], |
---|
80 | input[type=password], |
---|
81 | input[type=color], |
---|
82 | input[type=email], |
---|
83 | input[type=url], |
---|
84 | input[type=datetime], |
---|
85 | input[type=date], |
---|
86 | input[type=time], |
---|
87 | input[type=file], |
---|
88 | input[type=number], |
---|
89 | textarea, select, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown { |
---|
90 | // color: $input-color; |
---|
91 | box-shadow: 1px 1px 2px $input-shadow inset; |
---|
92 | padding: 3px; |
---|
93 | vertical-align: top; |
---|
94 | } |
---|
95 | input[type=text], |
---|
96 | input[type=password], |
---|
97 | input[type=color], |
---|
98 | input[type=email], |
---|
99 | input[type=url], |
---|
100 | input[type=datetime], |
---|
101 | input[type=date], |
---|
102 | input[type=time], |
---|
103 | input[type=file], |
---|
104 | input[type=number], |
---|
105 | textarea, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown { |
---|
106 | // background: $input-background; |
---|
107 | border-width: 1px; |
---|
108 | border-style: solid; |
---|
109 | border-color: $input-border; |
---|
110 | } |
---|
111 | input[type=file] { |
---|
112 | // color: $input-file-color; |
---|
113 | // background: $input-file-background; |
---|
114 | } |
---|
115 | // Special for invalid but not required fields |
---|
116 | input:invalid:not(:required), textarea:invalid:not(:required), select:invalid:not(:required), input:not([type=file]):invalid:not(:focus):not(:required) { |
---|
117 | color: $invalid-input-color; |
---|
118 | box-shadow: 0 0 0 3px $invalid-input-shadow; |
---|
119 | } |
---|
120 | input:invalid:not(:required), textarea:invalid:not(:required), input:not([type=file]):invalid:not(:focus):not(:required) { |
---|
121 | border: 1px solid $invalid-input-border; |
---|
122 | background: $invalid-input-background; |
---|
123 | } |
---|
124 | // |
---|
125 | input:focus, textarea:focus { |
---|
126 | border-color: $input-focus; |
---|
127 | } |
---|
128 | textarea { |
---|
129 | padding: 2px 0; |
---|
130 | &.maximal { |
---|
131 | resize: vertical; |
---|
132 | } |
---|
133 | .area & { |
---|
134 | display: block; |
---|
135 | width: 100%; |
---|
136 | resize: vertical; |
---|
137 | } |
---|
138 | } |
---|
139 | select { |
---|
140 | padding: 2px 0; |
---|
141 | vertical-align: middle; |
---|
142 | } |
---|
143 | @media not all and (min-resolution:.001dpcm) { |
---|
144 | @supports (-webkit-appearance: none) { |
---|
145 | /* Safari 10.1+ only (https://browserstrangeness.bitbucket.io/css_hacks.html#webkit) */ |
---|
146 | select { |
---|
147 | font-size: initial; |
---|
148 | } |
---|
149 | } |
---|
150 | } |
---|
151 | select.l10n option { |
---|
152 | padding-left: 16px; |
---|
153 | } |
---|
154 | option.avail10n { |
---|
155 | background: transparent url(../images/check-on.png) no-repeat 0 50%; |
---|
156 | } |
---|
157 | input[type=text], |
---|
158 | input[type=color], |
---|
159 | input[type=email], |
---|
160 | input[type=url], |
---|
161 | input[type=datetime], |
---|
162 | input[type=date], |
---|
163 | input[type=time], |
---|
164 | input[type=number], |
---|
165 | input[type=password], |
---|
166 | textarea { |
---|
167 | margin-right: .3em; |
---|
168 | } |
---|
169 | input[type=checkbox], input[type=radio], input[type=file] { |
---|
170 | border: none; |
---|
171 | margin: 0 .33em 0 0; |
---|
172 | padding: 0; |
---|
173 | // background: transparent; |
---|
174 | } |
---|
175 | input+input[type=checkbox] { |
---|
176 | // Used for js expand/hide (lists, options, ...) |
---|
177 | margin-left: .33em; |
---|
178 | } |
---|
179 | a input { |
---|
180 | // Used for js expand/hide (lists, options, ...) |
---|
181 | margin-right: .33em; |
---|
182 | } |
---|
183 | input[type=file] { |
---|
184 | margin-top: .3em; |
---|
185 | margin-bottom: .3em; |
---|
186 | } |
---|
187 | input[type=color] { |
---|
188 | width: 4em; |
---|
189 | height: 3em; |
---|
190 | } |
---|
191 | optgroup { |
---|
192 | font-weight: bold; |
---|
193 | font-style: normal; |
---|
194 | } |
---|
195 | option { |
---|
196 | font-weight: normal; |
---|
197 | } |
---|
198 | label, label span { |
---|
199 | display: block; |
---|
200 | } |
---|
201 | label.ib, input.ib { |
---|
202 | display: inline-block; |
---|
203 | } |
---|
204 | label.classic { |
---|
205 | display: inline; |
---|
206 | } |
---|
207 | label.classic input, label span input, label.classic select, label span select { |
---|
208 | display: inline; |
---|
209 | } |
---|
210 | label.required { |
---|
211 | font-weight: bold; |
---|
212 | } |
---|
213 | label.required abbr { |
---|
214 | color: $required; |
---|
215 | font-size: 1.3em; |
---|
216 | text-decoration: none; |
---|
217 | } |
---|
218 | label.bold { |
---|
219 | text-transform: uppercase; |
---|
220 | font-weight: bold; |
---|
221 | margin-top: 2em; |
---|
222 | } |
---|
223 | label.area, p.area, div.area { |
---|
224 | width: inherit !important; |
---|
225 | } |
---|
226 | div.area { |
---|
227 | margin-bottom: 1em; |
---|
228 | } |
---|
229 | p.field { |
---|
230 | position: relative; |
---|
231 | label { |
---|
232 | display: inline-block; |
---|
233 | width: 14em; |
---|
234 | } |
---|
235 | &.wide label { |
---|
236 | width: 21em; |
---|
237 | } |
---|
238 | input, select { |
---|
239 | display: inline-block; |
---|
240 | } |
---|
241 | } |
---|
242 | .form-note, .form-stats { |
---|
243 | font-style: italic; |
---|
244 | font-weight: normal; |
---|
245 | color: $form-note-color; |
---|
246 | } |
---|
247 | p.form-note, p.form-stats { |
---|
248 | margin-top: -.7em; |
---|
249 | } |
---|
250 | span.form-note, span.form-stats { |
---|
251 | text-transform: none; |
---|
252 | } |
---|
253 | .missing { |
---|
254 | background-color: inherit; |
---|
255 | animation-name: kf-missing; |
---|
256 | animation-duration: 1s; |
---|
257 | } |
---|
258 | @keyframes kf-missing { |
---|
259 | 50% { |
---|
260 | background-color: $error-background; |
---|
261 | } |
---|
262 | } |
---|
263 | .focus { |
---|
264 | background-color: inherit; |
---|
265 | animation-name: kf-focus; |
---|
266 | animation-duration: 1s; |
---|
267 | } |
---|
268 | @keyframes kf-focus { |
---|
269 | 50% { |
---|
270 | background-color: $input-focus; |
---|
271 | } |
---|
272 | } |
---|
273 | // .more-info Additional information on fieldset, field, … (may be hide from user-prefs) |
---|
274 | .more-info {} |
---|
275 | .no-more-info { |
---|
276 | display: none; |
---|
277 | } |
---|