modern-css-reset/dist/reset.css

82 lines
1.3 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 padding */
2019-10-01 06:41:57 -07:00
ul[class],
ol[class] {
2019-10-01 06:08:06 -07:00
padding: 0;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
2019-10-01 06:41:57 -07:00
ul[class],
ol[class],
2019-10-01 06:08:06 -07:00
figure,
2019-10-01 06:27:32 -07:00
blockquote,
2019-10-01 06:08:06 -07:00
dl,
dd {
margin: 0;
}
/* Set core body defaults */
body {
min-height: 100vh;
scroll-behavior: smooth;
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 */
img {
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;
}
}