From 33832297bd10266295e4427cfff3a37ba46ad11f Mon Sep 17 00:00:00 2001 From: rainydaysavings Date: Thu, 20 Aug 2020 01:48:01 +0100 Subject: [PATCH] [UI] New reset CSS to deal with firefox's abysmal and evil defaults --- public/assets/css/reset.css | 67 +++++++++++++++---------------------- 1 file changed, 27 insertions(+), 40 deletions(-) diff --git a/public/assets/css/reset.css b/public/assets/css/reset.css index f5e7ab0f90..81e4979eb6 100644 --- a/public/assets/css/reset.css +++ b/public/assets/css/reset.css @@ -1,40 +1,27 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; -} -html, body { - width: 100%; - height: auto; -} -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} +/* link underlines tend to make hypertext less readable, + because underlines obscure the shapes of the lower halves of words */ +:link,:visited { text-decoration:none } + +/* no list-markers by default, since lists are used more often for semantics */ +ul,ol { list-style:none } + +/* avoid browser default inconsistent heading font-sizes */ +/* and pre/code too */ +h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; } + +/* remove the inconsistent (among browsers) default ul,ol padding or margin */ +/* the default spacing on headings does not match nor align with + normal interline spacing at all, so let's get rid of it. */ +/* zero out the spacing around pre, form, body, html, p, blockquote as well */ +/* form elements are oddly inconsistent, and not quite CSS emulatable. */ +/* nonetheless strip their margin and padding as well */ +ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input,textarea +{ margin:0; padding:0; border:none; } + +/* whoever thought blue linked image borders were a good idea? */ +a img,:link img,:visited img { border:none } + +/* de-italicize address */ +address { font-style:normal } + +/* more varnish stripping as necessary... */ \ No newline at end of file