UNPKG

10.5 kBCSSView Raw
1/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */
2
3/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
4
5/*
6Document
7========
8*/
9
10/**
11Use a better box model (opinionated).
12*/
13
14*,
15::before,
16::after {
17 box-sizing: border-box;
18}
19
20/**
21Use a more readable tab size (opinionated).
22*/
23
24html {
25 -moz-tab-size: 4;
26 tab-size: 4;
27}
28
29/**
301. Correct the line height in all browsers.
312. Prevent adjustments of font size after orientation changes in iOS.
32*/
33
34html {
35 line-height: 1.15; /* 1 */
36 -webkit-text-size-adjust: 100%; /* 2 */
37}
38
39/*
40Sections
41========
42*/
43
44/**
45Remove the margin in all browsers.
46*/
47
48body {
49 margin: 0;
50}
51
52/**
53Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
54*/
55
56body {
57 font-family:
58 system-ui,
59 -apple-system, /* Firefox supports this but not yet `system-ui` */
60 'Segoe UI',
61 Roboto,
62 Helvetica,
63 Arial,
64 sans-serif,
65 'Apple Color Emoji',
66 'Segoe UI Emoji';
67}
68
69/*
70Grouping content
71================
72*/
73
74/**
751. Add the correct height in Firefox.
762. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
77*/
78
79hr {
80 height: 0; /* 1 */
81 color: inherit; /* 2 */
82}
83
84/*
85Text-level semantics
86====================
87*/
88
89/**
90Add the correct text decoration in Chrome, Edge, and Safari.
91*/
92
93abbr[title] {
94 -webkit-text-decoration: underline dotted;
95 text-decoration: underline dotted;
96}
97
98/**
99Add the correct font weight in Edge and Safari.
100*/
101
102b,
103strong {
104 font-weight: bolder;
105}
106
107/**
1081. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
1092. Correct the odd 'em' font sizing in all browsers.
110*/
111
112code,
113kbd,
114samp,
115pre {
116 font-family:
117 ui-monospace,
118 SFMono-Regular,
119 Consolas,
120 'Liberation Mono',
121 Menlo,
122 monospace; /* 1 */
123 font-size: 1em; /* 2 */
124}
125
126/**
127Add the correct font size in all browsers.
128*/
129
130small {
131 font-size: 80%;
132}
133
134/**
135Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
136*/
137
138sub,
139sup {
140 font-size: 75%;
141 line-height: 0;
142 position: relative;
143 vertical-align: baseline;
144}
145
146sub {
147 bottom: -0.25em;
148}
149
150sup {
151 top: -0.5em;
152}
153
154/*
155Tabular data
156============
157*/
158
159/**
1601. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
1612. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
162*/
163
164table {
165 text-indent: 0; /* 1 */
166 border-color: inherit; /* 2 */
167}
168
169/*
170Forms
171=====
172*/
173
174/**
1751. Change the font styles in all browsers.
1762. Remove the margin in Firefox and Safari.
177*/
178
179button,
180input,
181optgroup,
182select,
183textarea {
184 font-family: inherit; /* 1 */
185 font-size: 100%; /* 1 */
186 line-height: 1.15; /* 1 */
187 margin: 0; /* 2 */
188}
189
190/**
191Remove the inheritance of text transform in Edge and Firefox.
1921. Remove the inheritance of text transform in Firefox.
193*/
194
195button,
196select { /* 1 */
197 text-transform: none;
198}
199
200/**
201Correct the inability to style clickable types in iOS and Safari.
202*/
203
204button,
205[type='button'],
206[type='reset'],
207[type='submit'] {
208 -webkit-appearance: button;
209}
210
211/**
212Remove the inner border and padding in Firefox.
213*/
214
215::-moz-focus-inner {
216 border-style: none;
217 padding: 0;
218}
219
220/**
221Restore the focus styles unset by the previous rule.
222*/
223
224:-moz-focusring {
225 outline: 1px dotted ButtonText;
226}
227
228/**
229Remove the additional ':invalid' styles in Firefox.
230See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
231*/
232
233:-moz-ui-invalid {
234 box-shadow: none;
235}
236
237/**
238Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
239*/
240
241legend {
242 padding: 0;
243}
244
245/**
246Add the correct vertical alignment in Chrome and Firefox.
247*/
248
249progress {
250 vertical-align: baseline;
251}
252
253/**
254Correct the cursor style of increment and decrement buttons in Safari.
255*/
256
257::-webkit-inner-spin-button,
258::-webkit-outer-spin-button {
259 height: auto;
260}
261
262/**
2631. Correct the odd appearance in Chrome and Safari.
2642. Correct the outline style in Safari.
265*/
266
267[type='search'] {
268 -webkit-appearance: textfield; /* 1 */
269 outline-offset: -2px; /* 2 */
270}
271
272/**
273Remove the inner padding in Chrome and Safari on macOS.
274*/
275
276::-webkit-search-decoration {
277 -webkit-appearance: none;
278}
279
280/**
2811. Correct the inability to style clickable types in iOS and Safari.
2822. Change font properties to 'inherit' in Safari.
283*/
284
285::-webkit-file-upload-button {
286 -webkit-appearance: button; /* 1 */
287 font: inherit; /* 2 */
288}
289
290/*
291Interactive
292===========
293*/
294
295/*
296Add the correct display in Chrome and Safari.
297*/
298
299summary {
300 display: list-item;
301}
302
303/**
304 * Manually forked from SUIT CSS Base: https://github.com/suitcss/base
305 * A thin layer on top of normalize.css that provides a starting point more
306 * suitable for web applications.
307 */
308
309/**
310 * Removes the default spacing and border for appropriate elements.
311 */
312
313blockquote,
314dl,
315dd,
316h1,
317h2,
318h3,
319h4,
320h5,
321h6,
322hr,
323figure,
324p,
325pre {
326 margin: 0;
327}
328
329button {
330 background-color: transparent;
331 background-image: none;
332}
333
334fieldset {
335 margin: 0;
336 padding: 0;
337}
338
339ol,
340ul {
341 list-style: none;
342 margin: 0;
343 padding: 0;
344}
345
346/**
347 * Tailwind custom reset styles
348 */
349
350/**
351 * 1. Use the user's configured `sans` font-family (with Tailwind's default
352 * sans-serif font stack as a fallback) as a sane default.
353 * 2. Use Tailwind's default "normal" line-height so the user isn't forced
354 * to override it to ensure consistency even when using the default theme.
355 */
356
357html {
358 font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
359 line-height: 1.5; /* 2 */
360}
361
362/**
363 * Inherit font-family and line-height from `html` so users can set them as
364 * a class directly on the `html` element.
365 */
366
367body {
368 font-family: inherit;
369 line-height: inherit;
370}
371
372/**
373 * 1. Prevent padding and border from affecting element width.
374 *
375 * We used to set this in the html element and inherit from
376 * the parent element for everything else. This caused issues
377 * in shadow-dom-enhanced elements like <details> where the content
378 * is wrapped by a div with box-sizing set to `content-box`.
379 *
380 * https://github.com/mozdevs/cssremedy/issues/4
381 *
382 *
383 * 2. Allow adding a border to an element by just adding a border-width.
384 *
385 * By default, the way the browser specifies that an element should have no
386 * border is by setting it's border-style to `none` in the user-agent
387 * stylesheet.
388 *
389 * In order to easily add borders to elements by just setting the `border-width`
390 * property, we change the default border-style for all elements to `solid`, and
391 * use border-width to hide them instead. This way our `border` utilities only
392 * need to set the `border-width` property instead of the entire `border`
393 * shorthand, making our border utilities much more straightforward to compose.
394 *
395 * https://github.com/tailwindcss/tailwindcss/pull/116
396 */
397
398*,
399::before,
400::after {
401 box-sizing: border-box; /* 1 */
402 border-width: 0; /* 2 */
403 border-style: solid; /* 2 */
404 border-color: currentColor; /* 2 */
405}
406
407/*
408 * Ensure horizontal rules are visible by default
409 */
410
411hr {
412 border-top-width: 1px;
413}
414
415/**
416 * Undo the `border-style: none` reset that Normalize applies to images so that
417 * our `border-{width}` utilities have the expected effect.
418 *
419 * The Normalize reset is unnecessary for us since we default the border-width
420 * to 0 on all elements.
421 *
422 * https://github.com/tailwindcss/tailwindcss/issues/362
423 */
424
425img {
426 border-style: solid;
427}
428
429textarea {
430 resize: vertical;
431}
432
433input::placeholder,
434textarea::placeholder {
435 opacity: 1;
436 color: #9ca3af;
437}
438
439button,
440[role="button"] {
441 cursor: pointer;
442}
443
444/**
445 * Override legacy focus reset from Normalize with modern Firefox focus styles.
446 *
447 * This is actually an improvement over the new defaults in Firefox in our testing,
448 * as it triggers the better focus styles even for links, which still use a dotted
449 * outline in Firefox by default.
450 */
451
452:-moz-focusring {
453 outline: auto;
454}
455
456table {
457 border-collapse: collapse;
458}
459
460h1,
461h2,
462h3,
463h4,
464h5,
465h6 {
466 font-size: inherit;
467 font-weight: inherit;
468}
469
470/**
471 * Reset links to optimize for opt-in styling instead of
472 * opt-out.
473 */
474
475a {
476 color: inherit;
477 text-decoration: inherit;
478}
479
480/**
481 * Reset form element properties that are easy to forget to
482 * style explicitly so you don't inadvertently introduce
483 * styles that deviate from your design system. These styles
484 * supplement a partial reset that is already applied by
485 * normalize.css.
486 */
487
488button,
489input,
490optgroup,
491select,
492textarea {
493 padding: 0;
494 line-height: inherit;
495 color: inherit;
496}
497
498/**
499 * Use the configured 'mono' font family for elements that
500 * are expected to be rendered with a monospace font, falling
501 * back to the system monospace stack if there is no configured
502 * 'mono' font family.
503 */
504
505pre,
506code,
507kbd,
508samp {
509 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
510}
511
512/**
513 * 1. Make replaced elements `display: block` by default as that's
514 * the behavior you want almost all of the time. Inspired by
515 * CSS Remedy, with `svg` added as well.
516 *
517 * https://github.com/mozdevs/cssremedy/issues/14
518 *
519 * 2. Add `vertical-align: middle` to align replaced elements more
520 * sensibly by default when overriding `display` by adding a
521 * utility like `inline`.
522 *
523 * This can trigger a poorly considered linting error in some
524 * tools but is included by design.
525 *
526 * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
527 */
528
529img,
530svg,
531video,
532canvas,
533audio,
534iframe,
535embed,
536object {
537 display: block; /* 1 */
538 vertical-align: middle; /* 2 */
539}
540
541/**
542 * Constrain images and videos to the parent width and preserve
543 * their intrinsic aspect ratio.
544 *
545 * https://github.com/mozdevs/cssremedy/issues/14
546 */
547
548img,
549video {
550 max-width: 100%;
551 height: auto;
552}
553
554/**
555 * Ensure the default browser behavior of the `hidden` attribute.
556 */
557
558[hidden] {
559 display: none;
560}
561
562*, ::before, ::after {
563 --tw-border-opacity: 1;
564 border-color: rgba(229, 231, 235, var(--tw-border-opacity));
565}