Created
March 9, 2022 10:37
-
-
Save tannerhodges/4c2b727edea02cae9b16a4ebf15d5fe3 to your computer and use it in GitHub Desktop.
🧠Reset CSS for Web Components
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
/** | |
* Reset all inheritable properties. | |
* | |
* Excluded uncommon properties: azimuth, elevation, pitch-range, pitch, richness, speech-rate, stress, voice-family, volume. | |
* | |
* @see https://open-wc.org/guides/knowledge/styling/styles-piercing-shadow-dom/ | |
* @see https://gist.github.com/dcneiner/1137601 | |
* | |
*/ | |
:host { | |
border-collapse: separate; | |
border-spacing: 0; | |
caption-side: top; | |
color: canvastext; | |
cursor: auto; | |
direction: ltr; | |
empty-cells: show; | |
font: normal normal normal normal medium normal sans-serif; | |
letter-spacing: normal; | |
line-height: normal; | |
list-style: disc outside none; | |
orphans: 2; | |
quotes: auto; | |
speak: auto; | |
text-align: start; | |
text-indent: 0; | |
text-transform: none; | |
visibility: visible; | |
white-space: normal; | |
widows: 2; | |
word-spacing: normal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo: https://codepen.io/tannerhodges/pen/VwrJpwq