|
3 | 3 | # ================================================================= */ |
4 | 4 |
|
5 | 5 | html { |
6 | | - box-sizing: border-box; |
7 | | - overflow-y: scroll; |
8 | | - /* Prevent adjustments of font size after orientation changes in iOS */ |
9 | | - word-break: normal; |
10 | | - -moz-tab-size: 4; |
11 | | - tab-size: 4; |
| 6 | + box-sizing: border-box; |
| 7 | + overflow-y: scroll; |
| 8 | + /* Prevent adjustments of font size after orientation changes in iOS */ |
| 9 | + word-break: normal; |
| 10 | + -moz-tab-size: 4; |
| 11 | + tab-size: 4; |
12 | 12 | } |
13 | 13 |
|
14 | 14 | *, |
15 | 15 | ::before, |
16 | 16 | ::after { |
17 | | - background-repeat: no-repeat; |
18 | | - /* Set `background-repeat: no-repeat` to all elements and pseudo elements */ |
19 | | - box-sizing: inherit; |
| 17 | + background-repeat: no-repeat; |
| 18 | + /* Set `background-repeat: no-repeat` to all elements and pseudo elements */ |
| 19 | + box-sizing: inherit; |
20 | 20 | } |
21 | 21 |
|
22 | 22 | ::before, |
23 | 23 | ::after { |
24 | | - text-decoration: inherit; |
25 | | - /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */ |
26 | | - vertical-align: inherit; |
| 24 | + text-decoration: inherit; |
| 25 | + /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */ |
| 26 | + vertical-align: inherit; |
27 | 27 | } |
28 | 28 |
|
29 | 29 | html, |
@@ -107,292 +107,11 @@ time, |
107 | 107 | mark, |
108 | 108 | audio, |
109 | 109 | video { |
110 | | - /* Reset `padding` and `margin` of all elements */ |
111 | | - padding: 0; |
112 | | - margin: 0; |
| 110 | + /* Reset `padding` and `margin` of all elements */ |
| 111 | + padding: 0; |
| 112 | + margin: 0; |
113 | 113 | } |
114 | 114 | dialog { |
115 | | - padding: initial; |
116 | | - margin: auto; |
117 | | -} |
118 | | - |
119 | | -/* # ================================================================= |
120 | | - # General elements |
121 | | - # ================================================================= */ |
122 | | - |
123 | | -hr { |
124 | | - overflow: visible; |
125 | | - /* Show the overflow in Edge and IE */ |
126 | | - height: 0; |
127 | | - /* Add the correct box sizing in Firefox */ |
128 | | -} |
129 | | - |
130 | | -details, |
131 | | -main { |
132 | | - display: block; |
133 | | - /* Render the `main` element consistently in IE. */ |
134 | | -} |
135 | | - |
136 | | -summary { |
137 | | - display: list-item; |
138 | | - /* Add the correct display in all browsers */ |
139 | | -} |
140 | | - |
141 | | -small { |
142 | | - font-size: 80%; |
143 | | - /* Set font-size to 80% in `small` elements */ |
144 | | -} |
145 | | - |
146 | | -[hidden] { |
147 | | - display: none; |
148 | | - /* Add the correct display in IE */ |
149 | | -} |
150 | | - |
151 | | -abbr[title] { |
152 | | - border-bottom: none; |
153 | | - /* Remove the bottom border in Chrome 57 */ |
154 | | - /* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari */ |
155 | | - text-decoration: underline; |
156 | | - text-decoration: underline dotted; |
157 | | -} |
158 | | - |
159 | | -a { |
160 | | - background-color: transparent; |
161 | | - /* Remove the gray background on active links in IE 10 */ |
162 | | -} |
163 | | - |
164 | | -a:active, |
165 | | -a:hover { |
166 | | - outline-width: 0; |
167 | | - /* Remove the outline when hovering in all browsers */ |
168 | | -} |
169 | | - |
170 | | -code, |
171 | | -kbd, |
172 | | -pre, |
173 | | -samp { |
174 | | - font-family: monospace, monospace; |
175 | | - /* Specify the font family of code elements */ |
176 | | -} |
177 | | - |
178 | | -pre { |
179 | | - font-size: 1em; |
180 | | - /* Correct the odd `em` font sizing in all browsers */ |
181 | | -} |
182 | | - |
183 | | -b, |
184 | | -strong { |
185 | | - font-weight: bolder; |
186 | | - /* Add the correct font weight in Chrome, Edge, and Safari */ |
187 | | -} |
188 | | - |
189 | | -/* https://gist.github.com/unruthless/413930 */ |
190 | | -sub, |
191 | | -sup { |
192 | | - font-size: 75%; |
193 | | - line-height: 0; |
194 | | - position: relative; |
195 | | - vertical-align: baseline; |
196 | | -} |
197 | | - |
198 | | -sub { |
199 | | - bottom: -0.25em; |
200 | | -} |
201 | | - |
202 | | -sup { |
203 | | - top: -0.5em; |
204 | | -} |
205 | | - |
206 | | -/* # ================================================================= |
207 | | - # Forms |
208 | | - # ================================================================= */ |
209 | | - |
210 | | -input { |
211 | | - border-radius: 0; |
212 | | -} |
213 | | - |
214 | | -/* Replace pointer cursor in disabled elements */ |
215 | | -[disabled] { |
216 | | - cursor: default; |
217 | | -} |
218 | | - |
219 | | -[type="number"]::-webkit-inner-spin-button, |
220 | | -[type="number"]::-webkit-outer-spin-button { |
221 | | - height: auto; |
222 | | - /* Correct the cursor style of increment and decrement buttons in Chrome */ |
223 | | -} |
224 | | - |
225 | | -[type="search"] { |
226 | | - -webkit-appearance: textfield; |
227 | | - /* Correct the odd appearance in Chrome and Safari */ |
228 | | - outline-offset: -2px; |
229 | | - /* Correct the outline style in Safari */ |
230 | | -} |
231 | | - |
232 | | -[type="search"]::-webkit-search-cancel-button, |
233 | | -[type="search"]::-webkit-search-decoration { |
234 | | - -webkit-appearance: none; |
235 | | - /* Remove the inner padding in Chrome and Safari on macOS */ |
236 | | -} |
237 | | - |
238 | | -button, |
239 | | -input, |
240 | | -optgroup, |
241 | | -select, |
242 | | -textarea { |
243 | | - font: inherit; |
244 | | - /* Specify font inheritance of form elements */ |
245 | | -} |
246 | | - |
247 | | -optgroup { |
248 | | - font-weight: bold; |
249 | | - /* Restore the font weight unset by the previous rule */ |
250 | | -} |
251 | | - |
252 | | -button { |
253 | | - overflow: visible; |
254 | | - /* Address `overflow` set to `hidden` in IE 8/9/10/11 */ |
255 | | -} |
256 | | - |
257 | | -button, |
258 | | -select { |
259 | | - text-transform: none; |
260 | | - /* Firefox 40+, Internet Explorer 11- */ |
261 | | -} |
262 | | - |
263 | | -/* Apply cursor pointer to button elements */ |
264 | | -button, |
265 | | -[type="button"], |
266 | | -[type="reset"], |
267 | | -[type="submit"], |
268 | | -[role="button"] { |
269 | | - cursor: pointer; |
270 | | - color: inherit; |
271 | | -} |
272 | | - |
273 | | -/* Remove inner padding and border in Firefox 4+ */ |
274 | | -button::-moz-focus-inner, |
275 | | -[type="button"]::-moz-focus-inner, |
276 | | -[type="reset"]::-moz-focus-inner, |
277 | | -[type="submit"]::-moz-focus-inner { |
278 | | - border-style: none; |
279 | | - padding: 0; |
280 | | -} |
281 | | - |
282 | | -/* Replace focus style removed in the border reset above */ |
283 | | -button:-moz-focusring, |
284 | | -[type="button"]::-moz-focus-inner, |
285 | | -[type="reset"]::-moz-focus-inner, |
286 | | -[type="submit"]::-moz-focus-inner { |
287 | | - outline: 1px dotted ButtonText; |
288 | | -} |
289 | | - |
290 | | -button, |
291 | | - html [type="button"], |
292 | | - /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */ |
293 | | - [type="reset"], |
294 | | - [type="submit"] { |
295 | | - -webkit-appearance: button; |
296 | | - /* Correct the inability to style clickable types in iOS */ |
297 | | -} |
298 | | - |
299 | | -/* Remove the default button styling in all browsers */ |
300 | | -button, |
301 | | -input, |
302 | | -select, |
303 | | -textarea { |
304 | | - background-color: transparent; |
305 | | - border-style: none; |
306 | | -} |
307 | | - |
308 | | -/* Style select like a standard input */ |
309 | | -select { |
310 | | - -moz-appearance: none; |
311 | | - /* Firefox 36+ */ |
312 | | - -webkit-appearance: none; |
313 | | - /* Chrome 41+ */ |
314 | | -} |
315 | | - |
316 | | -select::-ms-expand { |
317 | | - display: none; |
318 | | - /* Internet Explorer 11+ */ |
319 | | -} |
320 | | - |
321 | | -select::-ms-value { |
322 | | - color: currentColor; |
323 | | - /* Internet Explorer 11+ */ |
324 | | -} |
325 | | - |
326 | | -legend { |
327 | | - border: 0; |
328 | | - /* Correct `color` not being inherited in IE 8/9/10/11 */ |
329 | | - color: inherit; |
330 | | - /* Correct the color inheritance from `fieldset` elements in IE */ |
331 | | - display: table; |
332 | | - /* Correct the text wrapping in Edge and IE */ |
333 | | - max-width: 100%; |
334 | | - /* Correct the text wrapping in Edge and IE */ |
335 | | - white-space: normal; |
336 | | - /* Correct the text wrapping in Edge and IE */ |
337 | | - max-width: 100%; |
338 | | - /* Correct the text wrapping in Edge 18- and IE */ |
339 | | -} |
340 | | - |
341 | | -::-webkit-file-upload-button { |
342 | | - /* Correct the inability to style clickable types in iOS and Safari */ |
343 | | - -webkit-appearance: button; |
344 | | - color: inherit; |
345 | | - font: inherit; |
346 | | - /* Change font properties to `inherit` in Chrome and Safari */ |
347 | | -} |
348 | | - |
349 | | -/* Remove default password icon in EdgeHTML (#537) */ |
350 | | -::-ms-clear, |
351 | | -::-ms-reveal { |
352 | | - display: none; |
353 | | -} |
354 | | - |
355 | | -/* # ================================================================= |
356 | | - # Specify media element style |
357 | | - # ================================================================= */ |
358 | | - |
359 | | -img { |
360 | | - border-style: none; |
361 | | - /* Remove border when inside `a` element in IE 8/9/10 */ |
362 | | -} |
363 | | - |
364 | | -/* Add the correct vertical alignment in Chrome, Firefox, and Opera */ |
365 | | -progress { |
366 | | - vertical-align: baseline; |
367 | | -} |
368 | | - |
369 | | -/* # ================================================================= |
370 | | - # Accessibility |
371 | | - # ================================================================= */ |
372 | | - |
373 | | -/* Hide content from screens but not screenreaders */ |
374 | | -@media screen { |
375 | | - [hidden~="screen"] { |
376 | | - display: inherit; |
377 | | - } |
378 | | - |
379 | | - [hidden~="screen"]:not(:active):not(:focus):not(:target) { |
380 | | - position: absolute !important; |
381 | | - clip: rect(0 0 0 0) !important; |
382 | | - } |
383 | | -} |
384 | | - |
385 | | -/* Specify the progress cursor of updating elements */ |
386 | | -[aria-busy="true"] { |
387 | | - cursor: progress; |
388 | | -} |
389 | | - |
390 | | -/* Specify the pointer cursor of trigger elements */ |
391 | | -[aria-controls] { |
392 | | - cursor: pointer; |
393 | | -} |
394 | | - |
395 | | -/* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */ |
396 | | -[aria-disabled="true"] { |
397 | | - cursor: default; |
| 115 | + padding: initial; |
| 116 | + margin: auto; |
398 | 117 | } |
0 commit comments