Skip to content

Instantly share code, notes, and snippets.

@danielbayley
Last active November 6, 2022 19:50
Show Gist options
  • Save danielbayley/a202db08c5e0b2f8b6ccfe800ca47e06 to your computer and use it in GitHub Desktop.
Save danielbayley/a202db08c5e0b2f8b6ccfe800ca47e06 to your computer and use it in GitHub Desktop.
Reset CSS
html:focus-within { scroll-behavior: smooth }
footer {
position: sticky;
top: 100vh
}
html:focus-within
scroll-behavior: smooth
footer
position: sticky
top: 100vh
head
title
meta
link
body
header
h1
nav
a
main
article
header
h1
section
header
h2
p
footer
section
address
a
script
* {
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 }
*
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