UNPKG

8.85 kBCSSView Raw
1/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
3/* Document
4 ========================================================================== */
5
6/**
7 * 1. Correct the line height in all browsers.
8 * 2. Prevent adjustments of font size after orientation changes in iOS.
9 */
10
11html {
12 line-height: 1.15; /* 1 */
13 -webkit-text-size-adjust: 100%; /* 2 */
14}
15
16/* Sections
17 ========================================================================== */
18
19/**
20 * Remove the margin in all browsers.
21 */
22
23body {
24 margin: 0;
25}
26
27/**
28 * Render the `main` element consistently in IE.
29 */
30
31main {
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
40h1 {
41 font-size: 2em;
42 margin: .67em 0;
43}
44
45/* Grouping content
46 ========================================================================== */
47
48/**
49 * 1. Add the correct box sizing in Firefox.
50 * 2. Show the overflow in Edge and IE.
51 */
52
53hr {
54 box-sizing: content-box; /* 1 */
55 height: 0; /* 1 */
56 overflow: visible; /* 2 */
57}
58
59/**
60 * 1. Correct the inheritance and scaling of font size in all browsers.
61 * 2. Correct the odd `em` font sizing in all browsers.
62 */
63
64pre {
65 font-family: monospace, monospace; /* 1 */
66 font-size: 1em; /* 2 */
67}
68
69/* Text-level semantics
70 ========================================================================== */
71
72/**
73 * Remove the gray background on active links in IE 10.
74 */
75
76a {
77 background-color: transparent;
78}
79
80/**
81 * 1. Remove the bottom border in Chrome 57-
82 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83 */
84
85abbr[title] {
86 border-bottom: none; /* 1 */
87 text-decoration: underline; /* 2 */
88 -webkit-text-decoration: underline dotted;
89 text-decoration: underline dotted; /* 2 */
90}
91
92/**
93 * Add the correct font weight in Chrome, Edge, and Safari.
94 */
95
96b,
97strong {
98 font-weight: bolder;
99}
100
101/**
102 * 1. Correct the inheritance and scaling of font size in all browsers.
103 * 2. Correct the odd `em` font sizing in all browsers.
104 */
105
106code,
107kbd,
108samp {
109 font-family: monospace, monospace; /* 1 */
110 font-size: 1em; /* 2 */
111}
112
113/**
114 * Add the correct font size in all browsers.
115 */
116
117small {
118 font-size: 80%;
119}
120
121/**
122 * Prevent `sub` and `sup` elements from affecting the line height in
123 * all browsers.
124 */
125
126sub,
127sup {
128 font-size: 75%;
129 line-height: 0;
130 position: relative;
131 vertical-align: baseline;
132}
133
134sub {
135 bottom: -0.25em;
136}
137
138sup {
139 top: -0.5em;
140}
141
142/* Embedded content
143 ========================================================================== */
144
145/**
146 * Remove the border on images inside links in IE 10.
147 */
148
149img {
150 border-style: none;
151}
152
153/* Forms
154 ========================================================================== */
155
156/**
157 * 1. Change the font styles in all browsers.
158 * 2. Remove the margin in Firefox and Safari.
159 */
160
161button,
162input,
163optgroup,
164select,
165textarea {
166 font-family: inherit; /* 1 */
167 font-size: 100%; /* 1 */
168 line-height: 1.15; /* 1 */
169 margin: 0; /* 2 */
170}
171
172/**
173 * Show the overflow in IE.
174 * 1. Show the overflow in Edge.
175 */
176
177button,
178input {
179 /* 1 */
180 overflow: visible;
181}
182
183/**
184 * Remove the inheritance of text transform in Edge, Firefox, and IE.
185 * 1. Remove the inheritance of text transform in Firefox.
186 */
187
188button,
189select {
190 /* 1 */
191 text-transform: none;
192}
193
194/**
195 * Correct the inability to style clickable types in iOS and Safari.
196 */
197
198button,
199[type="button"],
200[type="reset"],
201[type="submit"] {
202 -webkit-appearance: button;
203}
204
205/**
206 * Remove the inner border and padding in Firefox.
207 */
208
209button::-moz-focus-inner,
210[type="button"]::-moz-focus-inner,
211[type="reset"]::-moz-focus-inner,
212[type="submit"]::-moz-focus-inner {
213 border-style: none;
214 padding: 0;
215}
216
217/**
218 * Restore the focus styles unset by the previous rule.
219 */
220
221button:-moz-focusring,
222[type="button"]:-moz-focusring,
223[type="reset"]:-moz-focusring,
224[type="submit"]:-moz-focusring {
225 outline: 1px dotted ButtonText;
226}
227
228/**
229 * Correct the padding in Firefox.
230 */
231
232fieldset {
233 padding: .35em .75em .625em;
234}
235
236/**
237 * 1. Correct the text wrapping in Edge and IE.
238 * 2. Correct the color inheritance from `fieldset` elements in IE.
239 * 3. Remove the padding so developers are not caught out when they zero out
240 * `fieldset` elements in all browsers.
241 */
242
243legend {
244 box-sizing: border-box; /* 1 */
245 color: inherit; /* 2 */
246 display: table; /* 1 */
247 max-width: 100%; /* 1 */
248 padding: 0; /* 3 */
249 white-space: normal; /* 1 */
250}
251
252/**
253 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
254 */
255
256progress {
257 vertical-align: baseline;
258}
259
260/**
261 * Remove the default vertical scrollbar in IE 10+.
262 */
263
264textarea {
265 overflow: auto;
266}
267
268/**
269 * 1. Add the correct box sizing in IE 10.
270 * 2. Remove the padding in IE 10.
271 */
272
273[type="checkbox"],
274[type="radio"] {
275 box-sizing: border-box; /* 1 */
276 padding: 0; /* 2 */
277}
278
279/**
280 * Correct the cursor style of increment and decrement buttons in Chrome.
281 */
282
283[type="number"]::-webkit-inner-spin-button,
284[type="number"]::-webkit-outer-spin-button {
285 height: auto;
286}
287
288/**
289 * 1. Correct the odd appearance in Chrome and Safari.
290 * 2. Correct the outline style in Safari.
291 */
292
293[type="search"] {
294 -webkit-appearance: textfield; /* 1 */
295 outline-offset: -2px; /* 2 */
296}
297
298/**
299 * Remove the inner padding in Chrome and Safari on macOS.
300 */
301
302[type="search"]::-webkit-search-decoration {
303 -webkit-appearance: none;
304}
305
306/**
307 * 1. Correct the inability to style clickable types in iOS and Safari.
308 * 2. Change font properties to `inherit` in Safari.
309 */
310
311::-webkit-file-upload-button {
312 -webkit-appearance: button; /* 1 */
313 font: inherit; /* 2 */
314}
315
316/* Interactive
317 ========================================================================== */
318
319/*
320 * Add the correct display in Edge, IE 10+, and Firefox.
321 */
322
323details {
324 display: block;
325}
326
327/*
328 * Add the correct display in all browsers.
329 */
330
331summary {
332 display: list-item;
333}
334
335/* Misc
336 ========================================================================== */
337
338/**
339 * Add the correct display in IE 10+.
340 */
341
342template {
343 display: none;
344}
345
346/**
347 * Add the correct display in IE 10.
348 */
349
350[hidden] {
351 display: none;
352}
353
354/**
355 * Manually forked from SUIT CSS Base: https://github.com/suitcss/base
356 * A thin layer on top of normalize.css that provides a starting point more
357 * suitable for web applications.
358 */
359
360/**
361 * 1. Prevent padding and border from affecting element width
362 * https://goo.gl/pYtbK7
363 * 2. Change the default font family in all browsers (opinionated)
364 */
365
366html {
367 box-sizing: border-box; /* 1 */
368 font-family: sans-serif; /* 2 */
369}
370
371*,
372*::before,
373*::after {
374 box-sizing: inherit;
375}
376
377/**
378 * Removes the default spacing and border for appropriate elements.
379 */
380
381blockquote,
382dl,
383dd,
384h1,
385h2,
386h3,
387h4,
388h5,
389h6,
390figure,
391p,
392pre {
393 margin: 0;
394}
395
396button {
397 background: transparent;
398 padding: 0;
399}
400
401/**
402 * Work around a Firefox/IE bug where the transparent `button` background
403 * results in a loss of the default `button` focus styles.
404 */
405
406button:focus {
407 outline: 1px dotted;
408 outline: 5px auto -webkit-focus-ring-color;
409}
410
411fieldset {
412 margin: 0;
413 padding: 0;
414}
415
416ol,
417ul {
418 margin: 0;
419}
420
421/**
422 * Tailwind custom reset styles
423 */
424
425/**
426 * Allow adding a border to an element by just adding a border-width.
427 *
428 * By default, the way the browser specifies that an element should have no
429 * border is by setting it's border-style to `none` in the user-agent
430 * stylesheet.
431 *
432 * In order to easily add borders to elements by just setting the `border-width`
433 * property, we change the default border-style for all elements to `solid`, and
434 * use border-width to hide them instead. This way our `border` utilities only
435 * need to set the `border-width` property instead of the entire `border`
436 * shorthand, making our border utilities much more straightforward to compose.
437 *
438 * https://github.com/tailwindcss/tailwindcss/pull/116
439 */
440
441*,
442*::before,
443*::after {
444 border-width: 0;
445 border-style: solid;
446 border-color: #dae1e7;
447}
448
449/**
450 * Undo the `border-style: none` reset that Normalize applies to images so that
451 * our `border-{width}` utilities have the expected effect.
452 *
453 * The Normalize reset is unnecessary for us since we default the border-width
454 * to 0 on all elements.
455 *
456 * https://github.com/tailwindcss/tailwindcss/issues/362
457 */
458
459img {
460 border-style: solid;
461}
462
463textarea {
464 resize: vertical;
465}
466
467img {
468 max-width: 100%;
469 height: auto;
470}
471
472input:-ms-input-placeholder,
473textarea:-ms-input-placeholder {
474 color: inherit;
475 opacity: .5;
476}
477
478input::-ms-input-placeholder,
479textarea::-ms-input-placeholder {
480 color: inherit;
481 opacity: .5;
482}
483
484input::placeholder,
485textarea::placeholder {
486 color: inherit;
487 opacity: .5;
488}
489
490button,
491[role="button"] {
492 cursor: pointer;
493}
494
495table {
496 border-collapse: collapse;
497}
498
499/*# sourceMappingURL=preflight.css.map */
\No newline at end of file