Update reset.css to my version
This commit is contained in:
parent
e7500a6c7f
commit
b4a0c5831d
1 changed files with 52 additions and 65 deletions
|
@ -1,3 +1,4 @@
|
|||
@layer reset {
|
||||
/* Box sizing rules */
|
||||
*,
|
||||
*::before,
|
||||
|
@ -32,7 +33,7 @@ html:focus-within {
|
|||
|
||||
/* Set core body defaults */
|
||||
body {
|
||||
min-height: 100vh;
|
||||
min-block-size: 100vb;
|
||||
text-rendering: optimizeSpeed;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
@ -45,7 +46,7 @@ a:not([class]) {
|
|||
/* Make images easier to work with */
|
||||
img,
|
||||
picture {
|
||||
max-width: 100%;
|
||||
max-inline-size: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
@ -56,18 +57,4 @@ textarea,
|
|||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* Remove all animations and transitions for people that prefer not to see them */
|
||||
@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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue