1 | /* ==========================================================================
|
2 | HTML5 display definitions
|
3 |
|
4 | Slightly modified version of:
|
5 | normalize.css v1.1.3 | MIT License | git.io/normalize
|
6 | ========================================================================== */
|
7 |
|
8 | /**
|
9 | * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
|
10 | */
|
11 | article,
|
12 | aside,
|
13 | details,
|
14 | figcaption,
|
15 | figure,
|
16 | footer,
|
17 | header,
|
18 | hgroup,
|
19 | main,
|
20 | nav,
|
21 | section,
|
22 | summary {
|
23 | display: block;
|
24 | }
|
25 |
|
26 | /**
|
27 | * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
|
28 | */
|
29 | audio,
|
30 | canvas,
|
31 | video {
|
32 | display: inline-block;
|
33 | *display: inline;
|
34 | *zoom: 1;
|
35 | }
|
36 |
|
37 | /**
|
38 | * Prevent modern browsers from displaying `audio` without controls.
|
39 | * Remove excess height in iOS 5 devices.
|
40 | */
|
41 | audio:not([controls]) {
|
42 | display: none;
|
43 | height: 0;
|
44 | }
|
45 |
|
46 | /**
|
47 | * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
|
48 | * Known issue: no IE 6 support.
|
49 | */
|
50 | [hidden] {
|
51 | display: none;
|
52 | }
|
53 |
|
54 | /* ==========================================================================
|
55 | Base
|
56 | ========================================================================== */
|
57 |
|
58 | /**
|
59 | * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
60 | * `em` units.
|
61 | * 2. Prevent iOS text size adjust after orientation change, without disabling
|
62 | * user zoom.
|
63 | */
|
64 | html {
|
65 | font-size: 100%; /* 1 */
|
66 | -ms-text-size-adjust: 100%; /* 2 */
|
67 | -webkit-text-size-adjust: 100%; /* 2 */
|
68 | }
|
69 |
|
70 | /**
|
71 | * Set the default box-sizing to border-box.
|
72 | */
|
73 | html {
|
74 | box-sizing: border-box;
|
75 |
|
76 | * {
|
77 | box-sizing: inherit;
|
78 | }
|
79 | }
|
80 |
|
81 | /**
|
82 | * Address margins handled incorrectly in IE 6/7.
|
83 | */
|
84 | body {
|
85 | margin: 0;
|
86 | }
|
87 |
|
88 | /* ==========================================================================
|
89 | Links
|
90 | ========================================================================== */
|
91 |
|
92 | /**
|
93 | * Address `outline` inconsistency between Chrome and other browsers.
|
94 | */
|
95 | a:focus {
|
96 | outline: thin dotted;
|
97 | }
|
98 |
|
99 | /**
|
100 | * Improve readability when focused and also mouse hovered in all browsers.
|
101 | */
|
102 | a:active,
|
103 | a:hover {
|
104 | outline: 0;
|
105 | }
|
106 |
|
107 | /* ==========================================================================
|
108 | Typography
|
109 | ========================================================================== */
|
110 |
|
111 | /**
|
112 | * Address styling not present in IE 7/8/9, Safari 5, and Chrome.
|
113 | */
|
114 | abbr[title] {
|
115 | border-bottom: 1px dotted;
|
116 | }
|
117 |
|
118 | /**
|
119 | * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
|
120 | */
|
121 | b,
|
122 | strong {
|
123 | font-weight: bold;
|
124 | }
|
125 |
|
126 | blockquote {
|
127 | margin: @spacing;
|
128 | }
|
129 |
|
130 | /**
|
131 | * Address styling not present in Safari 5 and Chrome.
|
132 | */
|
133 | dfn {
|
134 | font-style: italic;
|
135 | }
|
136 |
|
137 | /**
|
138 | * Address differences between Firefox and other browsers.
|
139 | * Known issue: no IE 6/7 normalization.
|
140 | */
|
141 | hr {
|
142 | -moz-box-sizing: content-box;
|
143 | box-sizing: content-box;
|
144 | height: 0;
|
145 | }
|
146 |
|
147 | /**
|
148 | * Address styling not present in IE 6/7/8/9.
|
149 | */
|
150 | mark {
|
151 | background: #ff0;
|
152 | color: #000;
|
153 | }
|
154 |
|
155 | /**
|
156 | * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
|
157 | */
|
158 | code,
|
159 | kbd,
|
160 | pre,
|
161 | samp {
|
162 | font-family: "monaco", "courier new", courier, monospace, serif;
|
163 | font-size: @font-size-sm;
|
164 | }
|
165 |
|
166 | /**
|
167 | * Improve readability of pre-formatted text in all browsers.
|
168 | */
|
169 | pre {
|
170 | white-space: pre;
|
171 | white-space: pre-wrap;
|
172 | word-wrap: break-word;
|
173 | }
|
174 |
|
175 | /**
|
176 | * Address CSS quotes not supported in IE 6/7.
|
177 | */
|
178 | q {
|
179 | quotes: none;
|
180 | }
|
181 |
|
182 | /**
|
183 | * Address `quotes` property not supported in Safari 4.
|
184 | */
|
185 | q:before,
|
186 | q:after {
|
187 | content: '';
|
188 | content: none;
|
189 | }
|
190 |
|
191 | /**
|
192 | * Address inconsistent and variable font size in all browsers.
|
193 | */
|
194 | small {
|
195 | font-size: 80%;
|
196 | }
|
197 |
|
198 | /**
|
199 | * Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
200 | */
|
201 | sub,
|
202 | sup {
|
203 | font-size: 75%;
|
204 | line-height: 0;
|
205 | position: relative;
|
206 | vertical-align: baseline;
|
207 | }
|
208 |
|
209 | sup {
|
210 | top: -0.5em;
|
211 | }
|
212 |
|
213 | sub {
|
214 | bottom: -0.25em;
|
215 | }
|
216 |
|
217 | /* ==========================================================================
|
218 | Lists
|
219 | ========================================================================== */
|
220 |
|
221 | /**
|
222 | * Address margins set differently in IE 6/7.
|
223 | */
|
224 | dl,
|
225 | menu,
|
226 | ol,
|
227 | ul {
|
228 | margin: @spacing 0;
|
229 | }
|
230 |
|
231 | dd {
|
232 | margin: 0 0 0 @spacing;
|
233 | }
|
234 |
|
235 | /**
|
236 | * Address paddings set differently in IE 6/7.
|
237 | */
|
238 | menu,
|
239 | ol,
|
240 | ul {
|
241 | padding: 0 0 0 @spacing;
|
242 | }
|
243 |
|
244 | /**
|
245 | * Correct list images handled incorrectly in IE 7.
|
246 | */
|
247 | nav ul,
|
248 | nav ol {
|
249 | list-style: none;
|
250 | list-style-image: none;
|
251 | }
|
252 |
|
253 | /* ==========================================================================
|
254 | Embedded content
|
255 | ========================================================================== */
|
256 |
|
257 | /**
|
258 | * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
259 | * 2. Improve image quality when scaled in IE 7.
|
260 | */
|
261 | img {
|
262 | border: 0; /* 1 */
|
263 | -ms-interpolation-mode: bicubic; /* 2 */
|
264 | }
|
265 |
|
266 | /**
|
267 | * Correct overflow displayed oddly in IE 9.
|
268 | */
|
269 | svg:not(:root) {
|
270 | overflow: hidden;
|
271 | }
|
272 |
|
273 | /* ==========================================================================
|
274 | Figures
|
275 | ========================================================================== */
|
276 |
|
277 | /**
|
278 | * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
|
279 | */
|
280 | figure {
|
281 | margin: 0;
|
282 | }
|
283 |
|
284 | /* ==========================================================================
|
285 | Forms
|
286 | ========================================================================== */
|
287 |
|
288 | /**
|
289 | * Correct margin displayed oddly in IE 6/7.
|
290 | */
|
291 | form {
|
292 | margin: 0;
|
293 | }
|
294 |
|
295 | /**
|
296 | * 1. Correct color not being inherited in IE 6/7/8/9.
|
297 | * 2. Correct text not wrapping in Firefox 3.
|
298 | * 3. Correct alignment displayed oddly in IE 6/7.
|
299 | */
|
300 | legend {
|
301 | border: 0; /* 1 */
|
302 | padding: 0;
|
303 | white-space: normal; /* 2 */
|
304 | *margin-left: -7px; /* 3 */
|
305 | }
|
306 |
|
307 | /**
|
308 | * 1. Correct font size not being inherited in all browsers.
|
309 | * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
|
310 | * and Chrome.
|
311 | * 3. Improve appearance and consistency in all browsers.
|
312 | */
|
313 | button,
|
314 | input,
|
315 | select,
|
316 | textarea {
|
317 | font-size: 100%; /* 1 */
|
318 | margin: 0; /* 2 */
|
319 | vertical-align: baseline; /* 3 */
|
320 | *vertical-align: middle; /* 3 */
|
321 | }
|
322 |
|
323 | /**
|
324 | * Address Firefox 3+ setting `line-height` on `input` using `!important` in
|
325 | * the UA stylesheet.
|
326 | */
|
327 | button,
|
328 | input {
|
329 | line-height: normal;
|
330 | }
|
331 |
|
332 | /**
|
333 | * Address inconsistent `text-transform` inheritance for `button` and `select`.
|
334 | * All other form control elements do not inherit `text-transform` values.
|
335 | * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
|
336 | * Correct `select` style inheritance in Firefox 4+ and Opera.
|
337 | */
|
338 | button,
|
339 | select {
|
340 | text-transform: none;
|
341 | }
|
342 |
|
343 | /**
|
344 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
345 | * and `video` controls.
|
346 | * 2. Correct inability to style clickable `input` types in iOS.
|
347 | * 3. Improve usability and consistency of cursor style between image-type
|
348 | * `input` and others.
|
349 | * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
350 | * Known issue: inner spacing remains in IE 6.
|
351 | */
|
352 | button,
|
353 | html input[type="button"], /* 1 */
|
354 | input[type="reset"],
|
355 | input[type="submit"] {
|
356 | -webkit-appearance: button; /* 2 */
|
357 | cursor: pointer; /* 3 */
|
358 | *overflow: visible; /* 4 */
|
359 | }
|
360 |
|
361 | /**
|
362 | * Re-set default cursor for disabled elements.
|
363 | */
|
364 | button[disabled],
|
365 | html input[disabled] {
|
366 | cursor: default;
|
367 | }
|
368 |
|
369 | /**
|
370 | * 1. Address box sizing set to content-box in IE 8/9.
|
371 | * 2. Remove excess padding in IE 8/9.
|
372 | * 3. Remove excess padding in IE 7.
|
373 | * Known issue: excess padding remains in IE 6.
|
374 | */
|
375 | input[type="checkbox"],
|
376 | input[type="radio"] {
|
377 | box-sizing: border-box; /* 1 */
|
378 | padding: 0; /* 2 */
|
379 | *height: 13px; /* 3 */
|
380 | *width: 13px; /* 3 */
|
381 | }
|
382 |
|
383 | /**
|
384 | * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
385 | */
|
386 | input[type="search"] {
|
387 | -webkit-appearance: textfield; /* 1 */
|
388 | }
|
389 |
|
390 | /**
|
391 | * Remove inner padding and search cancel button in Safari 5 and Chrome
|
392 | * on OS X.
|
393 | */
|
394 | input[type="search"]::-webkit-search-cancel-button,
|
395 | input[type="search"]::-webkit-search-decoration {
|
396 | -webkit-appearance: none;
|
397 | }
|
398 |
|
399 | /**
|
400 | * Remove inner padding and border in Firefox 3+.
|
401 | */
|
402 | button::-moz-focus-inner,
|
403 | input::-moz-focus-inner {
|
404 | border: 0;
|
405 | padding: 0;
|
406 | }
|
407 |
|
408 | /**
|
409 | * 1. Remove default vertical scrollbar in IE 6/7/8/9.
|
410 | * 2. Improve readability and alignment in all browsers.
|
411 | */
|
412 | textarea {
|
413 | overflow: auto; /* 1 */
|
414 | vertical-align: top; /* 2 */
|
415 | }
|
416 |
|
417 | /* ==========================================================================
|
418 | Tables
|
419 | ========================================================================== */
|
420 |
|
421 | /**
|
422 | * Remove most spacing between table cells.
|
423 | */
|
424 | table {
|
425 | border-collapse: collapse;
|
426 | border-spacing: 0;
|
427 | }
|