-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract reset to separate file, inline SUIT CSS Base, rename `@tailwi…
…nd` at-rules
- Loading branch information
1 parent
57cb415
commit cd41069
Showing
17 changed files
with
170 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind reset; | ||
|
||
@tailwind utilities; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.