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
RevLine 
[720]1/* https://github.com/hankchizljaw/modern-css-reset */
2*,*::before,*::after {
3    box-sizing: border-box
[635]4}
[720]5ul[class],ol[class] {
6    padding: 0
[635]7}
[720]8body,h1,h2,h3,h4,p,ul[class],ol[class],figure,blockquote,dl,dd {
9    margin: 0
10}
[635]11body {
[720]12    /* min-height: 100vh; */
13    scroll-behavior: smooth;
14    text-rendering: optimizeSpeed;
15    line-height: 1.4
[635]16}
[720]17ul[class],ol[class] {
18    list-style: none
[635]19}
[720]20a:not([class]) {
21    text-decoration-skip-ink: auto
[635]22}
[720]23img:not([class]) {
24    max-width: 100%;
25    display: block
[635]26}
[720]27article>*+* {
28    margin-top: 1em
29}
[635]30table {
31    border-collapse: collapse;
32    border-spacing: 0;
[720]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.