modern-css-reset/dist/reset.css

85 lines
1.4 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 */
html {
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;
}
/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
list-style: none;
}
/* 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;
}
/* Natural flow and rhythm in articles by default */
article > * + * {
margin-top: 1em;
}
2019-10-01 06:19:02 -07:00
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
2020-02-03 13:30:44 -08:00
/* Blur images when they have no alt attribute */
img:not([alt]) {
filter: blur(10px);
}
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) {
* {
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;
}
}