mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
136 lines
2.4 KiB
CSS
136 lines
2.4 KiB
CSS
/**
|
|
* 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;
|
|
}
|
|
|
|
ol,
|
|
ul {
|
|
margin: 0;
|
|
}
|
|
|
|
/**
|
|
* Tailwind custom reset styles
|
|
*/
|
|
|
|
/**
|
|
* 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
|
|
*/
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
border-width: 0;
|
|
border-style: solid;
|
|
border-color: config('theme.borderColor.default', currentColor);
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: inherit;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
button,
|
|
[role="button"] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|