From 3124b9574df9419951bb21ab740e14d15233c206 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Tue, 13 Nov 2018 17:30:33 +0000 Subject: [PATCH] Create global.css --- assets/global.css | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 assets/global.css diff --git a/assets/global.css b/assets/global.css new file mode 100644 index 0000000..5a3918a --- /dev/null +++ b/assets/global.css @@ -0,0 +1,52 @@ +/* implement colour theme on elements that don't have it applied by default */ +.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label, .mdc-list-item--activated .mdc-list-item__text, .mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic { + color: var(--mdc-theme-primary); +} +.mdc-fab { + background-color: var(--mdc-theme-secondary); +} + +/* hide unwanted overflow from mdc-text-field :before & :after */ +.mdc-text-field-container { + overflow: hidden; +} +/* give space for mdc-text-field label to show properly when field is selected */ +.mdc-text-field { + margin-top: 5px; +} + +body { + font-family: 'Roboto', sans-serif; + text-align: center; +} +.mdc-text-field-helper-text { + margin-bottom: 10px; +} +.source-code-link { + position: fixed; + bottom: 15px; + right: 25px; +} + +/* for MDC navbar */ +body { + display: flex; + height: 100vh; + margin: 0; +} + +.mdc-drawer-app-content { + flex: auto; + overflow: auto; +} + +.main-content { + overflow: auto; +} + +.app-bar { + position: absolute; +} +.main-content { + margin-top: 20px; +}