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