From db0b6bf64b1e329a0e920efb7312c01b0a16d3aa Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 22 Oct 2020 15:11:46 +0100 Subject: [PATCH] Update top nav border style --- .../src/pages/[application]/_reset.svelte | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/packages/builder/src/pages/[application]/_reset.svelte b/packages/builder/src/pages/[application]/_reset.svelte index 87759aef97..a39fd0ce62 100644 --- a/packages/builder/src/pages/[application]/_reset.svelte +++ b/packages/builder/src/pages/[application]/_reset.svelte @@ -30,10 +30,10 @@ // e.g. if one of your screens is selected on front end, then // you browse to backend, when you click frontend, you will be // brought back to the same screen - const topItemNavigate = path => () => { - const activeTopNav = $layout.children.find(c => $isActive(c.path)) + const topItemNavigate = (path) => () => { + const activeTopNav = $layout.children.find((c) => $isActive(c.path)) if (!activeTopNav) return - store.update(state => { + store.update((state) => { if (!state.previousTopNavPath) state.previousTopNavPath = {} state.previousTopNavPath[ activeTopNav.path @@ -66,22 +66,26 @@
- + + + +
+
+ + + +
+
@@ -120,7 +124,7 @@ flex: 0 0 auto; height: 60px; background: #fff; - padding: 0px 20px 0 20px; + padding: 0 20px; display: flex; box-sizing: border-box; justify-content: space-between; @@ -166,20 +170,19 @@ font-weight: 500; } - .topnavitemright { + .topnavitemright a { cursor: pointer; color: var(--grey-7); - margin: 0 20px 0 0; - font-weight: 500; - font-size: 1rem; - height: 100%; + margin: 0 12px 0 0; display: flex; - flex: 1; + flex-direction: row; + justify-content: center; align-items: center; - box-sizing: border-box; + height: 24px; + width: 24px; } - .topnavitemright:hover { + .topnavitemright a:hover { color: var(--ink); font-weight: 500; } @@ -205,10 +208,13 @@ text-transform: capitalize; } - .help { - font-size: 24px; + i { + font-size: 18px; color: var(--grey-7); } + i:hover { + color: var(--ink); + } .beta { position: absolute;