From 9093b32529c456e70e65585b00c26d07d0fcc37f Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 10 Feb 2021 15:54:30 +0100 Subject: [PATCH] Refined editor main buttons --- ghost/admin/app/components/gh-publishmenu.hbs | 2 +- .../app/styles/components/notifications.css | 4 +-- .../app/styles/components/publishmenu.css | 12 ++------- ghost/admin/app/styles/layouts/editor.css | 26 +++++++++++++++++++ ghost/admin/app/styles/layouts/main.css | 10 +++++-- ghost/admin/app/styles/patterns/buttons.css | 1 + ghost/admin/app/styles/patterns/global.css | 10 +++++++ ghost/admin/app/templates/editor.hbs | 4 +-- 8 files changed, 52 insertions(+), 17 deletions(-) diff --git a/ghost/admin/app/components/gh-publishmenu.hbs b/ghost/admin/app/components/gh-publishmenu.hbs index 3e6a221d5c..00de071a61 100644 --- a/ghost/admin/app/components/gh-publishmenu.hbs +++ b/ghost/admin/app/components/gh-publishmenu.hbs @@ -1,5 +1,5 @@ - + {{this.triggerText}} {{svg-jar "arrow-down"}} diff --git a/ghost/admin/app/styles/components/notifications.css b/ghost/admin/app/styles/components/notifications.css index 993ca477af..b0c8dbf324 100644 --- a/ghost/admin/app/styles/components/notifications.css +++ b/ghost/admin/app/styles/components/notifications.css @@ -4,8 +4,8 @@ /* Base notification style */ .gh-notifications { position: absolute; - bottom: 28px; - left: 20px; + bottom: 30px; + left: 30px; z-index: 7000; display: flex; flex-direction: column; diff --git a/ghost/admin/app/styles/components/publishmenu.css b/ghost/admin/app/styles/components/publishmenu.css index a44900bcbd..ef3a5732e0 100644 --- a/ghost/admin/app/styles/components/publishmenu.css +++ b/ghost/admin/app/styles/components/publishmenu.css @@ -11,7 +11,7 @@ } .gh-publishmenu-trigger svg path { - stroke: var(--white); + stroke: var(--darkgrey); stroke-width: 4px; } @@ -43,15 +43,7 @@ will-change: transform, opacity; z-index: 99999; /* needs to sit on top of preview modal */ /* box-shadow: 0 0 0 1px rgba(99,114,130,0.06), 0 8px 16px rgba(27,39,51,0.08); */ - box-shadow: - 0 0 7px rgba(0, 0, 0, 0.08), - 0 2.1px 2.2px -5px rgba(0, 0, 0, 0.011), - 0 5.1px 5.3px -5px rgba(0, 0, 0, 0.016), - 0 9.5px 10px -5px rgba(0, 0, 0, 0.02), - 0 17px 17.9px -5px rgba(0, 0, 0, 0.024), - 0 31.8px 33.4px -5px rgba(0, 0, 0, 0.029), - 0 76px 80px -5px rgba(0, 0, 0, 0.04) - ; + box-shadow: var(--box-shadow-m); } .gh-publishmenu-dropdown.ember-basic-dropdown--transitioning-in { diff --git a/ghost/admin/app/styles/layouts/editor.css b/ghost/admin/app/styles/layouts/editor.css index d13848fe65..446fcc1fa4 100644 --- a/ghost/admin/app/styles/layouts/editor.css +++ b/ghost/admin/app/styles/layouts/editor.css @@ -298,6 +298,32 @@ z-index: 799; } +.gh-btn-editor { + background: var(--white) !important; +} + +.gh-btn-editor span { + color: var(--darkgrey); +} + +.gh-btn-editor:hover { + background: var(--whitegrey) !important; +} + +.gh-btn-editor.green span { + color: var(--green); +} + +.gh-editor-wordcount-container { + position: absolute; + right: 30px; + bottom: 30px; + display: flex; + align-items: center; + border-radius: 3px; + background: transparent; +} + @media (max-width: 750px) { .gh-editor-header { padding: 0 4vw; diff --git a/ghost/admin/app/styles/layouts/main.css b/ghost/admin/app/styles/layouts/main.css index e1a12b4889..0cb59c5963 100644 --- a/ghost/admin/app/styles/layouts/main.css +++ b/ghost/admin/app/styles/layouts/main.css @@ -134,7 +134,7 @@ top: -344px; left: 20px; margin: 10px 0 0; - box-shadow: 0 0 1px rgba(0, 0, 0, 0.1), 0 0 3px rgba(0, 0, 0, 0.08), 0 18px 45px -5px rgba(0, 0, 0, 0.15); + box-shadow: var(--box-shadow-m); min-width: 280px; padding: 6px 0; } @@ -413,12 +413,18 @@ height: 16px; position: absolute; left: 8px; - top: 11px; + top: 9px; z-index: 99999; + opacity: 1; } .gh-nav-button-expand.expanded { padding-left: 9px; + opacity: 0; +} + +.gh-nav:hover .gh-nav-button-expand { + opacity: 1; } .gh-nav-button-expand svg { diff --git a/ghost/admin/app/styles/patterns/buttons.css b/ghost/admin/app/styles/patterns/buttons.css index 4b2ec67ba9..c0ef45eff3 100644 --- a/ghost/admin/app/styles/patterns/buttons.css +++ b/ghost/admin/app/styles/patterns/buttons.css @@ -396,6 +396,7 @@ Usage: CTA buttons grouped together horizontally. box-shadow: none; margin: 2px; border-radius: 2px; + color: var(--midgrey); } .gh-btn-group .gh-btn span { diff --git a/ghost/admin/app/styles/patterns/global.css b/ghost/admin/app/styles/patterns/global.css index fe99eb080f..cddf0542b6 100644 --- a/ghost/admin/app/styles/patterns/global.css +++ b/ghost/admin/app/styles/patterns/global.css @@ -155,6 +155,16 @@ --shadow-2: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08); --shadow-3: 0 0 1px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.12); + --box-shadow-m: + 0 0 7px rgba(0, 0, 0, 0.08), + 0 2.1px 2.2px -5px rgba(0, 0, 0, 0.011), + 0 5.1px 5.3px -5px rgba(0, 0, 0, 0.016), + 0 9.5px 10px -5px rgba(0, 0, 0, 0.02), + 0 17px 17.9px -5px rgba(0, 0, 0, 0.024), + 0 31.8px 33.4px -5px rgba(0, 0, 0, 0.029), + 0 76px 80px -5px rgba(0, 0, 0, 0.04) + ; + /* Inputs */ --input-bg-color: var(--white); --input-border-color: var(--whitegrey-d2); diff --git a/ghost/admin/app/templates/editor.hbs b/ghost/admin/app/templates/editor.hbs index 55ac7d3e67..bc338c360f 100644 --- a/ghost/admin/app/templates/editor.hbs +++ b/ghost/admin/app/templates/editor.hbs @@ -69,7 +69,7 @@ {{/unless}}
-
@@ -100,7 +100,7 @@ @deleteSnippet={{if this.canManageSnippets this.toggleDeleteSnippetModal}} /> -
+
{{gh-pluralize this.wordCount.wordCount "word"}}