Skip to content

Instantly share code, notes, and snippets.

@FrantisekSilhan
Last active January 27, 2024 13:10
Show Gist options
  • Save FrantisekSilhan/52340fce5830250922f3dc6c54f095c7 to your computer and use it in GitHub Desktop.
Save FrantisekSilhan/52340fce5830250922f3dc6c54f095c7 to your computer and use it in GitHub Desktop.
edit of Modern CSS Reset by Andy Bell
blockquote,body,dd,dl,fieldset,figure,form,h1,h2,h3,h4,h5,h6,hr,menu,ol,p,pre,ul {
margin: 0;
}
fieldset,legend,menu,ol,ul {
padding: 0;
}
address,b,cite,code,dfn,em,h1,h2,h3,h4,h5,h6,i,kbd,pre,samp,small,strong,sub,sup,th,var {
font: inherit;
}
* {
min-width: 0;
}
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
html:focus-within {
scroll-behavior: smooth;
}
a:not([class]) {
text-decoration-skip-ink: auto;
}
img,picture {
max-width: 100%;
display: block;
}
table {
border-collapse: collapse;
}
ul[role="list"],ol[role="list"] {
list-style: none;
}
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,*::before,*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment