Changeset 720 for trunk/css


Ignore:
Timestamp:
Mar 9, 2020 3:14:25 AM (4 years ago)
Author:
anonymous
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/css/reset.inc.css

    r635 r720  
    1 /* http://meyerweb.com/eric/tools/css/reset/
    2    v2.0 | 20110126
    3    License: none (public domain)
    4 */
    5 
    6 html, body, div, span, applet, object, iframe,
    7 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    8 a, abbr, acronym, address, big, cite, code,
    9 del, dfn, em, img, ins, kbd, q, s, samp,
    10 small, strike, strong, sub, sup, tt, var,
    11 b, u, i, center,
    12 dl, dt, dd, ol, ul, li,
    13 fieldset, form, label, legend,
    14 table, caption, tbody, tfoot, thead, tr, th, td,
    15 article, aside, canvas, details, embed,
    16 figure, figcaption, footer, header, hgroup,
    17 menu, nav, output, ruby, section, summary,
    18 time, mark, audio, video {
    19     margin: 0;
    20     padding: 0;
    21     border: 0;
    22     font-size: 100%;
    23     font: inherit;
    24     vertical-align: baseline;
     1/* https://github.com/hankchizljaw/modern-css-reset */
     2*,*::before,*::after {
     3    box-sizing: border-box
    254}
    26 /* HTML5 display-role reset for older browsers */
    27 article, aside, details, figcaption, figure,
    28 footer, header, hgroup, menu, nav, section {
    29     display: block;
     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
    3010}
    3111body {
    32     line-height: 1;
     12    /* min-height: 100vh; */
     13    scroll-behavior: smooth;
     14    text-rendering: optimizeSpeed;
     15    line-height: 1.4
    3316}
    34 ol, ul {
    35     list-style: none;
     17ul[class],ol[class] {
     18    list-style: none
    3619}
    37 blockquote, q {
    38     quotes: none;
     20a:not([class]) {
     21    text-decoration-skip-ink: auto
    3922}
    40 blockquote:before, blockquote:after,
    41 q:before, q:after {
    42     content: '';
    43     content: none;
     23img:not([class]) {
     24    max-width: 100%;
     25    display: block
     26}
     27article>*+* {
     28    margin-top: 1em
    4429}
    4530table {
     
    4732    border-spacing: 0;
    4833}
     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 TracChangeset for help on using the changeset viewer.