From 695a91d86df0aa7d3e6a4a63414286fbdaf86d80 Mon Sep 17 00:00:00 2001 From: Jude Date: Sat, 9 Mar 2019 13:39:38 -0500 Subject: added tooltips to menu and fixed spacing --- src/client/views/Main.scss | 35 +++++++++++++++++++---------------- src/client/views/Main.tsx | 20 ++++++++++---------- 2 files changed, 29 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/client/views/Main.scss b/src/client/views/Main.scss index 9bc5c551f..89a9e1bd1 100644 --- a/src/client/views/Main.scss +++ b/src/client/views/Main.scss @@ -71,10 +71,10 @@ button:hover { } .round-button { - width: 2em; - height: 2em; - border-radius: 1em; - font-size: 24px; + width: 36px; + height: 36px; + border-radius: 18px; + font-size: 15px; } .round-button:hover { @@ -83,7 +83,7 @@ button:hover { .add-button { position: relative; - margin-right: 0.4em; + margin-right: 10px; } .main-undoButtons { @@ -95,33 +95,36 @@ button:hover { //toolbar stuff #toolbar { position: absolute; - bottom: 3.95em; - left: 1em; + bottom: 62px; + left: 24px; .toolbar-button { display: block; - margin-bottom: 0.4em; + margin-bottom: 10px; } } // add nodes menu. Note that the + button is actually an input label, not an actual button. #add-nodes-menu { position: absolute; - bottom: 1em; - left: 1em; + bottom: 24px; + left: 24px; 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; + border-radius: 18px; + font-size: 25px; + width: 36px; + height: 36px; + margin-right: 10px; cursor: pointer; transition: transform 0.5s; } + label p { + padding-left: 10.5px; + padding-top: 3px; + } label:hover { background: $main-accent; } diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index f9a54678a..38a3d4b69 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -115,35 +115,35 @@ Documents.initProtos(mainDocId, (res?: Document) => { {/* @TODO this should really be moved into a moveable toolbar component, but for now let's put it here to meet the deadline */}
- - + + {/* @TODO do the ink thing */} - +
{/* for the expandable add nodes menu. Not included with the above because once it expands it expands the whole div with it, making canvas interactions limited. */}
- +
    -
  • -
  • -
  • -
  • -
  • -
-- cgit v1.2.3-70-g09d2