From 25c6cbd29aff90f694d72afe28ab56b0113fb16a Mon Sep 17 00:00:00 2001 From: Guille Cura Date: Thu, 5 Jul 2018 02:37:43 -0300 Subject: Update stylesheets and added darkMode variable and toggle. --- src/styles/reset.scss | 67 ++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 38 deletions(-) (limited to 'src/styles/reset.scss') diff --git a/src/styles/reset.scss b/src/styles/reset.scss index 21763f44f..80328dcef 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -16,63 +16,62 @@ 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; - font-size: 100%; font: inherit; + font-size: 100%; + margin: 0; + padding: 0; } -/* HTML5 display-role reset for older browsers */ + article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { +footer, header, hgroup, menu, nav, section { display: block; } + +ol, +ul { list-style: none; } + +blockquote, +q { quotes: none; + + &::before, + &::after { + content: ''; + content: none; + } } -blockquote:before, blockquote:after, q:before, q:after { - content: ''; - content: none; -} + table { border-collapse: collapse; border-spacing: 0; } -/* Buttons should not have any special style applied by default */ button { background: none; border: none; padding: 0; -} -button:focus { - outline: 0; + &:focus { outline: 0; } + .theme__dark & { color: $dark-theme-gray-smoke; } } html { - /* base for rem / 1rem = 10px */ font-size: 62.5%; font-family: 'Open Sans'; } body { - /* default font size = 14px */ - font-size: 1.4rem; color: $theme-gray-dark; + font-size: 1.4rem; + line-height: 1; + + .theme__dark { color: $dark-theme-gray-smoke; } } * { - -webkit-font-smoothing: antialiased; box-sizing: border-box; - font-size: 1.4rem; font-family: 'Open Sans'; + font-size: 1.4rem; + -webkit-font-smoothing: antialiased; -webkit-user-select: none; } @@ -82,14 +81,6 @@ html, body, div { box-sizing: border-box; } -*:focus { - outline: none; -} - -img { - pointer-events: none; -} - -a { - cursor: default; -} +*:focus { outline: none; } +img { pointer-events: none; } +a { cursor: default; } -- cgit v1.2.3-70-g09d2