From 0f29316ada49713957b27117c8083cd66d3d17c5 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 20 Jan 2018 21:42:46 -0800 Subject: [PATCH] refactor toolbar, tweak colors, add pressed states for toolbar --- routes/_components/Status.html | 54 ++------------------------- routes/_components/Toolbar.html | 66 +++++++++++++++++++++++++++++++++ scss/themes/_base.scss | 7 +++- scss/themes/scarlet.scss | 2 +- templates/2xx.html | 4 +- 5 files changed, 78 insertions(+), 55 deletions(-) create mode 100644 routes/_components/Toolbar.html diff --git a/routes/_components/Status.html b/routes/_components/Status.html index ff63059..f82fb4c 100644 --- a/routes/_components/Status.html +++ b/routes/_components/Status.html @@ -24,28 +24,7 @@
{{{status.content}}}
-
- - - - -
+ @@ -155,37 +134,11 @@ height: 18px; fill: var(--deemphasized-text-color) } - - .status-toolbar { - grid-area: status-toolbar; - display: flex; - justify-content: space-between; - } - - .status-toolbar button { - padding: 6px 10px; - background: none; - border: none; - } - - .status-toolbar button svg { - width: 24px; - height: 24px; - fill: var(--action-button-fill-color); - } - - .status-toolbar button:hover svg { - fill: var(--action-button-fill-color-hover); - } - - .status-toolbar button:active svg { - fill: var(--action-button-fill-color-active); - } - \ No newline at end of file diff --git a/scss/themes/_base.scss b/scss/themes/_base.scss index 5288ae9..dd26c3e 100644 --- a/scss/themes/_base.scss +++ b/scss/themes/_base.scss @@ -37,9 +37,12 @@ --nav-svg-fill-hover: $secondary-text-color; --nav-text-color-hover: $secondary-text-color; - --action-button-fill-color: lighten($main-theme-color, 15%); - --action-button-fill-color-hover: lighten($main-theme-color, 20%); + --action-button-fill-color: lighten($main-theme-color, 18%); + --action-button-fill-color-hover: lighten($main-theme-color, 22%); --action-button-fill-color-active: lighten($main-theme-color, 5%); + --action-button-fill-color-pressed: darken($main-theme-color, 7%); + --action-button-fill-color-pressed-hover: darken($main-theme-color, 2%); + --action-button-fill-color-pressed-active: $main-theme-color; --settings-list-item-bg: $main-bg-color; --settings-list-item-text: $main-theme-color; diff --git a/scss/themes/scarlet.scss b/scss/themes/scarlet.scss index b70e7f5..6e482a2 100644 --- a/scss/themes/scarlet.scss +++ b/scss/themes/scarlet.scss @@ -1,4 +1,4 @@ -$main-theme-color: crimson; +$main-theme-color: darken(crimson, 5%); $body-bg-color: lighten($main-theme-color, 38%); $anchor-color: $main-theme-color; $main-text-color: #333; diff --git a/templates/2xx.html b/templates/2xx.html index 0048107..497011b 100644 --- a/templates/2xx.html +++ b/templates/2xx.html @@ -10,9 +10,9 @@