source: trunk/css/reset.inc.css

Last change on this file was 720, checked in by anonymous, 4 years ago

Update CSS reset with inspiration from https://github.com/hankchizljaw/modern-css-reset

File size: 870 bytes
Line 
1/* https://github.com/hankchizljaw/modern-css-reset */
2*,*::before,*::after {
3    box-sizing: border-box
4}
5ul[class],ol[class] {
6    padding: 0
7}
8body,h1,h2,h3,h4,p,ul[class],ol[class],figure,blockquote,dl,dd {
9    margin: 0
10}
11body {
12    /* min-height: 100vh; */
13    scroll-behavior: smooth;
14    text-rendering: optimizeSpeed;
15    line-height: 1.4
16}
17ul[class],ol[class] {
18    list-style: none
19}
20a:not([class]) {
21    text-decoration-skip-ink: auto
22}
23img:not([class]) {
24    max-width: 100%;
25    display: block
26}
27article>*+* {
28    margin-top: 1em
29}
30table {
31    border-collapse: collapse;
32    border-spacing: 0;
33}
34input,button,textarea,select {
35    font: inherit
36}
37@media(prefers-reduced-motion:reduce) {
38* {
39    animation-duration: .01ms !important;
40    animation-iteration-count: 1 !important;
41    transition-duration: .01ms !important;
42    scroll-behavior: auto !important
43}
44}
Note: See TracBrowser for help on using the repository browser.