From f931d6cbc372267e5b81192b907ec5da262f532e Mon Sep 17 00:00:00 2001 From: Jude Date: Sat, 9 Mar 2019 10:29:32 -0500 Subject: add button is now a drawer ish --- src/client/views/Main.scss | 67 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 5 deletions(-) (limited to 'src/client/views/Main.scss') diff --git a/src/client/views/Main.scss b/src/client/views/Main.scss index 9e7047208..66b5000d7 100644 --- a/src/client/views/Main.scss +++ b/src/client/views/Main.scss @@ -1,10 +1,11 @@ @import "global_variables"; +@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,700'); html, body { width: 100%; height: 100%; overflow: hidden; - font-family: 'Hind Siliguri', sans-serif; + font-family: 'Work Sans', sans-serif; margin: 0; } @@ -17,7 +18,8 @@ h1 { color: $dark-color; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; z-index: 9999; - font-family: 'Fjalla One', sans-serif; + font-family: 'Work Sans', sans-serif; + font-weight: 700; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; @@ -52,10 +54,12 @@ button { letter-spacing: 2px; font-size: 75%; padding: 10px; + transition: transform 0.2s; } button:hover { background: $dark-accent; + transform: scale(1.05); } .clear-db-button { @@ -66,13 +70,12 @@ button:hover { } .add-button { - position: absolute; - left: 1em; - bottom: 1em; + position: relative; width: 2em; height: 2em; border-radius: 1em; font-size: 24px; + margin-right: 0.4em; } .main-undoButtons { @@ -81,6 +84,60 @@ button:hover { right: 0px; } +// add nodes menu +#add-nodes-menu { + position: absolute; + left: 1em; + bottom: 1em; + label { + background: $dark-color; + color: $light-color; + padding: 10px; + display: inline-block; + border-radius: 1em; + font-size: 24px; + width: 1.09em; + margin-right: 0.4em; + text-align: center; + cursor: pointer; + transition: transform 0.5s; + } + label:hover { + background: $dark-accent; + } + input { + display: none; + } + input:not(:checked)~#add-options-content { + display: none; + } + input:checked~label { + transform: rotate(45deg); + transition: transform 0.5s; + cursor: pointer; + } +} + +#add-options-content { + display: table; + opacity: 1; + margin: 0; + padding: 0; + position: relative; + float: right; + bottom: 0.3em; + margin-bottom: -1.68em; +} + +ul#add-options-list { + list-style: none; + padding: 0; + li { + display: inline-block; + padding: 0; + } +} + // goldenlayout stuff div .lm_header { background: $dark-color; -- cgit v1.2.3-70-g09d2