From 3bae85c50380be469ebb0805008548fd14938ff6 Mon Sep 17 00:00:00 2001 From: pngwn Date: Mon, 20 Jan 2020 15:41:40 +0000 Subject: [PATCH] Implement new pages dropdown design in sidebar --- .../src/userInterface/PagesList.svelte | 76 +++++++++++-------- .../userInterface/UserInterfaceRoot.svelte | 32 ++++---- 2 files changed, 63 insertions(+), 45 deletions(-) diff --git a/packages/builder/src/userInterface/PagesList.svelte b/packages/builder/src/userInterface/PagesList.svelte index 4944f750f3..9fb9148f86 100644 --- a/packages/builder/src/userInterface/PagesList.svelte +++ b/packages/builder/src/userInterface/PagesList.svelte @@ -7,54 +7,70 @@ const getPage = (s, name) => { return ({name, props}); } +const pages = [{ + title: 'Main', + id: 'main' +}, { + title: 'Login', + id: 'unauthenticated' +}] + +store.setCurrentPage('main') +
-
store.setCurrentPage("main")}> - {@html getIcon("circle", "7")} - Main -
+ + {@html getIcon("chevron-down","24")}
\ No newline at end of file + diff --git a/packages/builder/src/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/userInterface/UserInterfaceRoot.svelte index c4a12a139a..3c9896a022 100644 --- a/packages/builder/src/userInterface/UserInterfaceRoot.svelte +++ b/packages/builder/src/userInterface/UserInterfaceRoot.svelte @@ -29,6 +29,16 @@ const settings = () => {
+
+ + +
+
-
- - -
-
@@ -111,10 +111,6 @@ const settings = () => { overflow-y: hidden; } -.pages-list-container { - padding-top: 2rem; -} - .components-nav-header { font-size: .9rem; } @@ -125,7 +121,7 @@ const settings = () => { } .nav-items-container { - padding: 1rem 1rem 0rem 1rem; + padding: 1rem 0rem 0rem 0rem; } .nav-group-header { @@ -161,4 +157,10 @@ const settings = () => { color: var(--primary75); } +.navigator-title { + text-transform: uppercase; + font-weight: 400; + color: #999; +} +