modern-css-reset/dist/reset.css

74 lines
1.2 KiB
CSS
Raw Normal View History

2019-10-01 06:08:06 -07:00
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
2019-10-01 06:27:32 -07:00
blockquote,
2019-10-01 06:08:06 -07:00
dl,
dd {
margin: 0;
}
2020-11-06 09:08:31 -08:00
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
list-style: none;
}
/* Set core root defaults */
2021-01-18 02:46:25 -08:00
html:focus-within {
scroll-behavior: smooth;
}
2019-10-01 06:08:06 -07:00
/* Set core body defaults */
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
2020-07-21 07:55:10 -07:00
img,
picture {
2019-10-01 06:08:06 -07:00
max-width: 100%;
display: block;
}
2019-10-01 06:19:02 -07:00
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
2019-10-03 12:58:08 -07:00
/* Remove all animations and transitions for people that prefer not to see them */
2019-10-01 06:08:06 -07:00
@media (prefers-reduced-motion: reduce) {
2021-01-18 02:46:25 -08:00
html:focus-within {
scroll-behavior: auto;
}
2020-11-06 11:36:02 -08:00
*,
*::before,
*::after {
2019-10-03 12:58:08 -07:00
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
2019-10-01 06:08:06 -07:00
scroll-behavior: auto !important;
}
}