2017-10-11 09:35:04 -04:00
|
|
|
/**
|
|
|
|
|
* Manually forked from SUIT CSS Base: https://github.com/suitcss/base
|
|
|
|
|
* A thin layer on top of normalize.css that provides a starting point more
|
|
|
|
|
* suitable for web applications.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 1. Prevent padding and border from affecting element width
|
|
|
|
|
* https://goo.gl/pYtbK7
|
|
|
|
|
* 2. Change the default font family in all browsers (opinionated)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
html {
|
|
|
|
|
box-sizing: border-box; /* 1 */
|
|
|
|
|
font-family: sans-serif; /* 2 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*,
|
|
|
|
|
*::before,
|
|
|
|
|
*::after {
|
|
|
|
|
box-sizing: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Removes the default spacing and border for appropriate elements.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
blockquote,
|
|
|
|
|
dl,
|
|
|
|
|
dd,
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6,
|
|
|
|
|
figure,
|
|
|
|
|
p,
|
|
|
|
|
pre {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
background: transparent;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Work around a Firefox/IE bug where the transparent `button` background
|
|
|
|
|
* results in a loss of the default `button` focus styles.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
button:focus {
|
|
|
|
|
outline: 1px dotted;
|
|
|
|
|
outline: 5px auto -webkit-focus-ring-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fieldset {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-27 15:56:00 -05:00
|
|
|
ol,
|
|
|
|
|
ul {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-11 09:35:04 -04:00
|
|
|
/**
|
|
|
|
|
* Tailwind custom reset styles
|
|
|
|
|
*/
|
2017-10-30 14:06:27 -04:00
|
|
|
|
2019-03-12 20:22:12 -04:00
|
|
|
/**
|
2019-03-12 20:35:27 -04:00
|
|
|
* 1. Use the system font stack as a sane default.
|
|
|
|
|
* 2. Use Tailwind's default "normal" line-height so the user isn't forced
|
|
|
|
|
* to override it to ensure consistency even when using the default theme.
|
2019-03-12 20:22:12 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
html {
|
2019-03-12 20:35:27 -04:00
|
|
|
font-family: -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 */
|
|
|
|
|
line-height: 1.5; /* 2 */
|
2019-03-12 20:22:12 -04:00
|
|
|
}
|
|
|
|
|
|
2018-01-25 07:33:35 -05:00
|
|
|
/**
|
|
|
|
|
* Allow adding a border to an element by just adding a border-width.
|
|
|
|
|
*
|
|
|
|
|
* By default, the way the browser specifies that an element should have no
|
|
|
|
|
* border is by setting it's border-style to `none` in the user-agent
|
|
|
|
|
* stylesheet.
|
|
|
|
|
*
|
|
|
|
|
* In order to easily add borders to elements by just setting the `border-width`
|
|
|
|
|
* property, we change the default border-style for all elements to `solid`, and
|
|
|
|
|
* use border-width to hide them instead. This way our `border` utilities only
|
|
|
|
|
* need to set the `border-width` property instead of the entire `border`
|
|
|
|
|
* shorthand, making our border utilities much more straightforward to compose.
|
|
|
|
|
*
|
|
|
|
|
* https://github.com/tailwindcss/tailwindcss/pull/116
|
|
|
|
|
*/
|
2017-11-06 11:10:14 -05:00
|
|
|
*,
|
|
|
|
|
*::before,
|
|
|
|
|
*::after {
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
2019-03-01 08:35:24 -05:00
|
|
|
border-color: theme('borderColor.default', currentColor);
|
2017-11-15 10:22:42 -05:00
|
|
|
}
|
|
|
|
|
|
2018-01-25 07:33:35 -05:00
|
|
|
/**
|
|
|
|
|
* Undo the `border-style: none` reset that Normalize applies to images so that
|
|
|
|
|
* our `border-{width}` utilities have the expected effect.
|
|
|
|
|
*
|
|
|
|
|
* The Normalize reset is unnecessary for us since we default the border-width
|
|
|
|
|
* to 0 on all elements.
|
|
|
|
|
*
|
|
|
|
|
* https://github.com/tailwindcss/tailwindcss/issues/362
|
|
|
|
|
*/
|
|
|
|
|
img {
|
|
|
|
|
border-style: solid;
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-19 15:45:18 -07:00
|
|
|
textarea {
|
|
|
|
|
resize: vertical;
|
|
|
|
|
}
|
2017-10-11 09:35:04 -04:00
|
|
|
|
2018-08-19 15:45:18 -07:00
|
|
|
input::placeholder,
|
|
|
|
|
textarea::placeholder {
|
2018-06-15 09:16:01 -04:00
|
|
|
color: inherit;
|
2018-08-19 15:45:18 -07:00
|
|
|
opacity: 0.5;
|
2017-10-11 09:35:04 -04:00
|
|
|
}
|
|
|
|
|
|
2018-08-19 15:45:18 -07:00
|
|
|
button,
|
2018-08-21 14:24:15 -07:00
|
|
|
[role="button"] {
|
2018-06-15 09:16:01 -04:00
|
|
|
cursor: pointer;
|
2017-10-11 09:35:04 -04:00
|
|
|
}
|
2018-06-14 11:45:08 -04:00
|
|
|
|
|
|
|
|
table {
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
2019-03-01 20:53:01 -05:00
|
|
|
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
2019-03-02 13:05:39 -05:00
|
|
|
font-size: inherit;
|
|
|
|
|
font-weight: inherit;
|
2019-03-01 20:53:01 -05:00
|
|
|
}
|
2019-03-11 08:41:16 -04:00
|
|
|
|
|
|
|
|
/**
|
2019-03-12 16:59:25 -04:00
|
|
|
* Reset form element properties that are easy to forget to
|
|
|
|
|
* style explicitly so you don't inadvertently introduce
|
|
|
|
|
* styles that deviate from your design system. These styles
|
2019-03-12 11:17:35 -04:00
|
|
|
* supplement a partial reset that is already applied by
|
|
|
|
|
* normalize.css.
|
2019-03-11 08:41:16 -04:00
|
|
|
*/
|
2019-03-12 11:17:35 -04:00
|
|
|
|
2019-03-11 08:41:16 -04:00
|
|
|
button,
|
|
|
|
|
input,
|
|
|
|
|
optgroup,
|
|
|
|
|
select,
|
|
|
|
|
textarea {
|
2019-03-12 11:17:35 -04:00
|
|
|
padding: 0;
|
2019-03-11 08:41:16 -04:00
|
|
|
line-height: inherit;
|
2019-03-12 16:59:25 -04:00
|
|
|
color: inherit;
|
2019-03-11 08:41:16 -04:00
|
|
|
}
|
2019-03-12 17:13:02 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Use the configured 'bold' weight for `strong` elements
|
|
|
|
|
* by default, falling back to 'bolder' (as per normalize.css)
|
|
|
|
|
* if there is no configured 'bold' weight.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
strong {
|
|
|
|
|
font-weight: theme('fontWeight.bold', bolder);
|
|
|
|
|
}
|
2019-03-12 21:28:27 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Use the configured 'mono' font family for elements that
|
|
|
|
|
* are expected to be rendered with a monospace font, falling
|
|
|
|
|
* back to the system monospace stack if there is no configured
|
|
|
|
|
* 'mono' font family.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
pre,
|
|
|
|
|
code,
|
|
|
|
|
kbd,
|
|
|
|
|
samp {
|
|
|
|
|
font-family: theme('fontFamily.mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
|
|
|
}
|