mixed-reset
Version:
A combined CSS reset based on Andy Bell's CSS reset, Josh Comeau's CSS reset and TailwindCSS' preflight
104 lines (89 loc) • 1.12 kB
CSS
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
font: inherit;
}
html {
-ms-text-size-adjust: none;
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
body {
min-height: 100vh;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
audio,
iframe,
embed,
object {
display: block;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
a {
overflow-wrap: break-word;
}
p {
text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}
h1,
h2,
h3,
h4,
button,
input,
label {
line-height: 1.2;
}
a:not([class]) {
text-decoration-skip-ink: auto;
color: currentColor;
}
:target {
scroll-margin-block: 5ex;
}
#root,
#__next {
isolation: isolate;
}
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms ;
animation-iteration-count: 1 ;
transition-duration: 0.01ms ;
scroll-behavior: auto ;
}
}