Permalink
normalize.css/normalize.css
Newer
100644
349 lines (275 sloc)
5.99 KB
3
/* Document
4
========================================================================== */
5
8
* 2. Prevent adjustments of font size after orientation changes in iOS.
12
line-height: 1.15; /* 1 */
13
-webkit-text-size-adjust: 100%; /* 2 */
16
/* Sections
17
========================================================================== */
18
27
/**
28
* Render the `main` element consistently in IE.
29
*/
30
31
main {
32
display: block;
33
}
34
35
/**
36
* Correct the font size and margin on `h1` elements within `section` and
37
* `article` contexts in Chrome, Firefox, and Safari.
38
*/
39
40
h1 {
41
font-size: 2em;
42
margin: 0.67em 0;
43
}
44
45
/* Grouping content
46
========================================================================== */
47
49
* 1. Add the correct box sizing in Firefox.
50
* 2. Show the overflow in Edge and IE.
53
hr {
54
box-sizing: content-box; /* 1 */
55
height: 0; /* 1 */
56
overflow: visible; /* 2 */
60
* 1. Correct the inheritance and scaling of font size in all browsers.
61
* 2. Correct the odd `em` font sizing in all browsers.
64
pre {
65
font-family: monospace, monospace; /* 1 */
66
font-size: 1em; /* 2 */
70
========================================================================== */
73
* Remove the gray background on active links in IE 10.
77
background-color: transparent;
82
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
86
border-bottom: none; /* 1 */
87
text-decoration: underline; /* 2 */
88
text-decoration: underline dotted; /* 2 */
91
/**
92
* Add the correct font weight in Chrome, Edge, and Safari.
93
*/
94
101
* 1. Correct the inheritance and scaling of font size in all browsers.
102
* 2. Correct the odd `em` font sizing in all browsers.
105
code,
106
kbd,
107
samp {
108
font-family: monospace, monospace; /* 1 */
109
font-size: 1em; /* 2 */
113
* Add the correct font size in all browsers.
121
* Prevent `sub` and `sup` elements from affecting the line height in
122
* all browsers.
127
font-size: 75%;
128
line-height: 0;
129
position: relative;
130
vertical-align: baseline;
142
========================================================================== */
143
152
/* Forms
153
========================================================================== */
154
157
* 2. Remove the margin in Firefox and Safari.
166
font-size: 100%; /* 1 */
167
line-height: 1.15; /* 1 */
168
margin: 0; /* 2 */
171
/**
172
* Show the overflow in IE.
173
* 1. Show the overflow in Edge.
174
*/
175
176
button,
182
* Remove the inheritance of text transform in Edge, Firefox, and IE.
183
* 1. Remove the inheritance of text transform in Firefox.
187
select { /* 1 */
188
text-transform: none;
192
* Correct the inability to style clickable types in iOS and Safari.
200
}
201
202
/**
203
* Remove the inner border and padding in Firefox.
207
[type="button"]::-moz-focus-inner,
208
[type="reset"]::-moz-focus-inner,
209
[type="submit"]::-moz-focus-inner {
210
border-style: none;
215
* Restore the focus styles unset by the previous rule.
219
[type="button"]:-moz-focusring,
220
[type="reset"]:-moz-focusring,
221
[type="submit"]:-moz-focusring {
225
/**
226
* Correct the padding in Firefox.
227
*/
228
229
fieldset {
230
padding: 0.35em 0.75em 0.625em;
231
}
232
234
* 1. Correct the text wrapping in Edge and IE.
235
* 2. Correct the color inheritance from `fieldset` elements in IE.
236
* 3. Remove the padding so developers are not caught out when they zero out
237
* `fieldset` elements in all browsers.
240
legend {
241
box-sizing: border-box; /* 1 */
242
color: inherit; /* 2 */
243
display: table; /* 1 */
244
max-width: 100%; /* 1 */
245
padding: 0; /* 3 */
246
white-space: normal; /* 1 */
250
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
266
* 1. Add the correct box sizing in IE 10.
267
* 2. Remove the padding in IE 10.
270
[type="checkbox"],
271
[type="radio"] {
272
box-sizing: border-box; /* 1 */
273
padding: 0; /* 2 */
277
* Correct the cursor style of increment and decrement buttons in Chrome.
280
[type="number"]::-webkit-inner-spin-button,
281
[type="number"]::-webkit-outer-spin-button {
282
height: auto;
286
* 1. Correct the odd appearance in Chrome and Safari.
287
* 2. Correct the outline style in Safari.
291
-webkit-appearance: textfield; /* 1 */
292
outline-offset: -2px; /* 2 */
296
* Remove the inner padding in Chrome and Safari on macOS.
299
[type="search"]::-webkit-search-decoration {
300
-webkit-appearance: none;
303
/**
304
* 1. Correct the inability to style clickable types in iOS and Safari.
306
*/
307
308
::-webkit-file-upload-button {
309
-webkit-appearance: button; /* 1 */
310
font: inherit; /* 2 */
311
}
312
313
/* Interactive
314
========================================================================== */
315
316
/*
324
/*
325
* Add the correct display in all browsers.
326
*/
327
328
summary {
329
display: list-item;
330
}
331
333
========================================================================== */
334
335
/**
337
*/
338
339
template {
340
display: none;
341
}
342
343
/**