Last active
November 6, 2022 19:50
-
-
Save danielbayley/a202db08c5e0b2f8b6ccfe800ca47e06 to your computer and use it in GitHub Desktop.
Reset CSS
This file contains hidden or 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
html:focus-within { scroll-behavior: smooth } | |
footer { | |
position: sticky; | |
top: 100vh | |
} |
This file contains hidden or 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
html:focus-within | |
scroll-behavior: smooth | |
footer | |
position: sticky | |
top: 100vh |
This file contains hidden or 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
head | |
title | |
meta | |
link | |
body | |
header | |
h1 | |
nav | |
a | |
main | |
article | |
header | |
h1 | |
section | |
header | |
h2 | |
p | |
footer | |
section | |
address | |
a | |
script |
This file contains hidden or 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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box | |
} | |
body { min-height: 100vh } | |
a { | |
text-decoration: inherit; | |
color: inherit | |
} | |
svg { | |
overflow: visible !important; | |
width: 100%; | |
height: 100% | |
} | |
svg:has(defs) { display: none } | |
svg#defs { display: none } |
This file contains hidden or 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
* | |
margin: 0 | |
padding: 0 | |
box-sizing: border-box | |
body | |
min-height: 100vh | |
a | |
text-decoration: inherit | |
color: inherit | |
svg | |
overflow visible: !important | |
width: 100% | |
height: 100% | |
&:has(defs) | |
display none | |
&#defs | |
display none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment