modern-css-reset/dist/reset.min.css
Matthew Passmore 52c4af07cd Fix viewport smooth scroll-behavior
The 'scroll-behavior' property of the HTML `body` element is not
propagated to the viewport. When applied to the root element, it applies
to the viewport.

@link https://drafts.csswg.org/cssom-view/#smooth-scrolling
2020-04-02 17:03:38 +01:00

1 line
642 B
CSS

*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],figure,blockquote,dl,dd{margin:0}html{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%;display:block}article>*+*{margin-top:1em}input,button,textarea,select{font:inherit}img:not([alt]){filter:blur(10px)}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}