UNPKG

8.44 kBtext/lessView Raw
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 */
11article,
12aside,
13details,
14figcaption,
15figure,
16footer,
17header,
18hgroup,
19main,
20nav,
21section,
22summary {
23 display: block;
24}
25
26/**
27 * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
28 */
29audio,
30canvas,
31video {
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 */
41audio: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 */
64html {
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 */
73html {
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 */
84body {
85 margin: 0;
86}
87
88/* ==========================================================================
89 Links
90 ========================================================================== */
91
92/**
93 * Address `outline` inconsistency between Chrome and other browsers.
94 */
95a:focus {
96 outline: thin dotted;
97}
98
99/**
100 * Improve readability when focused and also mouse hovered in all browsers.
101 */
102a:active,
103a: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 */
114abbr[title] {
115 border-bottom: 1px dotted;
116}
117
118/**
119 * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
120 */
121b,
122strong {
123 font-weight: bold;
124}
125
126blockquote {
127 margin: @spacing;
128}
129
130/**
131 * Address styling not present in Safari 5 and Chrome.
132 */
133dfn {
134 font-style: italic;
135}
136
137/**
138 * Address differences between Firefox and other browsers.
139 * Known issue: no IE 6/7 normalization.
140 */
141hr {
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 */
150mark {
151 background: #ff0;
152 color: #000;
153}
154
155/**
156 * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
157 */
158code,
159kbd,
160pre,
161samp {
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 */
169pre {
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 */
178q {
179 quotes: none;
180}
181
182/**
183 * Address `quotes` property not supported in Safari 4.
184 */
185q:before,
186q:after {
187 content: '';
188 content: none;
189}
190
191/**
192 * Address inconsistent and variable font size in all browsers.
193 */
194small {
195 font-size: 80%;
196}
197
198/**
199 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
200 */
201sub,
202sup {
203 font-size: 75%;
204 line-height: 0;
205 position: relative;
206 vertical-align: baseline;
207}
208
209sup {
210 top: -0.5em;
211}
212
213sub {
214 bottom: -0.25em;
215}
216
217/* ==========================================================================
218 Lists
219 ========================================================================== */
220
221/**
222 * Address margins set differently in IE 6/7.
223 */
224dl,
225menu,
226ol,
227ul {
228 margin: @spacing 0;
229}
230
231dd {
232 margin: 0 0 0 @spacing;
233}
234
235/**
236 * Address paddings set differently in IE 6/7.
237 */
238menu,
239ol,
240ul {
241 padding: 0 0 0 @spacing;
242}
243
244/**
245 * Correct list images handled incorrectly in IE 7.
246 */
247nav ul,
248nav 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 */
261img {
262 border: 0; /* 1 */
263 -ms-interpolation-mode: bicubic; /* 2 */
264}
265
266/**
267 * Correct overflow displayed oddly in IE 9.
268 */
269svg: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 */
280figure {
281 margin: 0;
282}
283
284/* ==========================================================================
285 Forms
286 ========================================================================== */
287
288/**
289 * Correct margin displayed oddly in IE 6/7.
290 */
291form {
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 */
300legend {
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 */
313button,
314input,
315select,
316textarea {
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 */
327button,
328input {
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 */
338button,
339select {
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 */
352button,
353html input[type="button"], /* 1 */
354input[type="reset"],
355input[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 */
364button[disabled],
365html 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 */
375input[type="checkbox"],
376input[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 */
386input[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 */
394input[type="search"]::-webkit-search-cancel-button,
395input[type="search"]::-webkit-search-decoration {
396 -webkit-appearance: none;
397}
398
399/**
400 * Remove inner padding and border in Firefox 3+.
401 */
402button::-moz-focus-inner,
403input::-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 */
412textarea {
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 */
424table {
425 border-collapse: collapse;
426 border-spacing: 0;
427}