Extract reset to separate file, inline SUIT CSS Base, rename @tailwind at-rules
This commit is contained in:
parent
57cb4159a4
commit
cd41069cba
17 changed files with 170 additions and 114 deletions
107
css/preflight.css
Normal file
107
css/preflight.css
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
@import "normalize.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;
|
||||
border: 0;
|
||||
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 {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Suppress the focus outline on elements that cannot be accessed via keyboard.
|
||||
* This prevents an unwanted focus outline from appearing around elements that
|
||||
* might still respond to pointer events.
|
||||
*/
|
||||
|
||||
[tabindex="-1"]:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tailwind custom reset styles
|
||||
*/
|
||||
textarea { resize: vertical; }
|
||||
|
||||
img { max-width: 100%; }
|
||||
|
||||
svg { fill: currentColor; }
|
||||
|
||||
input { font-family: inherit; }
|
||||
|
||||
input::placeholder {
|
||||
color: inherit;
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
button, [role=button] {
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
3
css/tailwind.css
Normal file
3
css/tailwind.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@tailwind reset;
|
||||
|
||||
@tailwind utilities;
|
||||
Loading…
Add table
Add a link
Reference in a new issue