diff options
| author | Jude <julie_wang1@brown.edu> | 2019-03-09 10:29:32 -0500 |
|---|---|---|
| committer | Jude <julie_wang1@brown.edu> | 2019-03-09 10:29:32 -0500 |
| commit | f931d6cbc372267e5b81192b907ec5da262f532e (patch) | |
| tree | 96e0bf879f6c1b45441af8e0299812ed34d0b731 /src/client/views/Main.scss | |
| parent | 22d6600eb5c005eb4132d5ca1defad56d01fd95c (diff) | |
add button is now a drawer ish
Diffstat (limited to 'src/client/views/Main.scss')
| -rw-r--r-- | src/client/views/Main.scss | 67 |
1 files changed, 62 insertions, 5 deletions
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; |
