Wrap CSS reset in a cascade layer

This commit is contained in:
Helen Chong 2024-11-04 13:39:42 +08:00
parent 1f103f35ca
commit 5f45470875
1 changed files with 42 additions and 40 deletions

View File

@ -54,6 +54,7 @@
/* CSS Reset */
/* ------------------- */
@layer reset {
/* Box sizing rules */
*,
*::before,
@ -105,3 +106,4 @@ textarea:not([rows]) { min-height: 10em; }
/* Anything that has been anchored to should have extra scroll margin */
:target { scroll-margin-block: 5ex; }
}