From 646d7eeb991bf5f75138b44a9fb93b569fe3bbdc Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 14 Oct 2017 15:59:16 -0600 Subject: add CSS for UI shell - add CSS for all UI elements outside of article content - add additional CSS classes to be activated by JavaScript - add Roboto and Roboto Mono font packages as dev dependencies - change navigation button in toolbar to a toggle --- src/css/base.css | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/css/base.css (limited to 'src/css/base.css') diff --git a/src/css/base.css b/src/css/base.css new file mode 100644 index 0000000..14ad1fc --- /dev/null +++ b/src/css/base.css @@ -0,0 +1,58 @@ +:root { + --color-text: #222; + --color-navbar-bg: #0a0a0a; + --color-navbar-bg-focus: #000; + --color-navbar-text: #fff; +} + +html, +body { + height: 100%; +} + +*, +*::before, +*::after { + box-sizing: inherit; +} + +html { + box-sizing: border-box; + font-family: 'Roboto', sans-serif; + font-size: 1.1em; + text-size-adjust: 100%; +} + +@media (min-width: 1024px) { + html { + font-size: 1.2em; + } +} + +body { + color: var(--color-text); + line-height: 1.6; + margin: 0; +} + +code, +pre { + font-family: 'Roboto Mono', monospace; +} + +::-webkit-scrollbar { + width: 0.3333rem; + height: 0.3333rem; +} + +::-webkit-scrollbar-track { + background-color: #f0f0f0; +} + +::-webkit-scrollbar-thumb { + background-color: #c1c1c1; +} + +::-webkit-scrollbar-thumb:window-inactive { + background: transparent; +} -- cgit v1.2.3