From 6b4cdacc303a60f5af74a3afd5cfa34230524843 Mon Sep 17 00:00:00 2001 From: pngwn Date: Mon, 20 Jan 2020 14:12:29 +0000 Subject: [PATCH] Implement basic layout for frontend view. --- packages/builder/src/PackageRoot.svelte | 2 ++ packages/builder/src/global.css | 2 +- .../userInterface/UserInterfaceRoot.svelte | 24 ++++++++++++------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/PackageRoot.svelte b/packages/builder/src/PackageRoot.svelte index dc208a7de3..218dfa5e44 100644 --- a/packages/builder/src/PackageRoot.svelte +++ b/packages/builder/src/PackageRoot.svelte @@ -48,6 +48,7 @@ import { fade } from "svelte/transition"; width:100%; display: flex; flex-direction: column; + } .top-nav { @@ -70,6 +71,7 @@ import { fade } from "svelte/transition"; .content > div { height:100%; width:100%; + } .topnavitem { diff --git a/packages/builder/src/global.css b/packages/builder/src/global.css index 08f4174ec8..b790c1f242 100644 --- a/packages/builder/src/global.css +++ b/packages/builder/src/global.css @@ -12,7 +12,7 @@ --secondary50: #162B4D80; --secondary25: #162B4D40; --secondary10: #162B4D1A; - --secondary5: rgba(22, 43, 77, 0.068); + --secondary5:#fff; --secondarydark: #3F448A; --tertiary: #F2F5F7; diff --git a/packages/builder/src/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/userInterface/UserInterfaceRoot.svelte index aa8d7304c4..c4a12a139a 100644 --- a/packages/builder/src/userInterface/UserInterfaceRoot.svelte +++ b/packages/builder/src/userInterface/UserInterfaceRoot.svelte @@ -13,7 +13,7 @@ import SettingsView from "./SettingsView.svelte"; import PageView from "./PageView.svelte"; import ComponentsPaneSwitcher from "./ComponentsPaneSwitcher.svelte"; -let newComponentPicker; +let newComponentPicker; const newComponent = () => { newComponentPicker.show(); } @@ -26,7 +26,7 @@ const settings = () => {
- +
@@ -34,10 +34,10 @@ const settings = () => {
{@html getIcon("sidebar","18")}
Screens
- -
@@ -63,7 +63,7 @@ const settings = () => { {:else if $store.currentFrontEndType === "page"} - {/if} + {/if}
{#if $store.currentFrontEndType === "screen"} @@ -83,19 +83,25 @@ const settings = () => { .root { display: grid; - grid-template-columns: 250px 1fr 300px; + grid-template-columns: 290px 1fr 300px; height: 100%; width: 100%; + background: #fafafa; } .ui-nav { grid-column: 1; background-color: var(--secondary5); height: 100%; + padding: 0 1.5rem 0rem 1.5rem } .preview-pane { grid-column: 2; + margin: 80px 60px; + background: #fff; + border-radius: 5px; + box-shadow: 0 0px 6px rgba(0,0,0,0.05) } .components-pane { @@ -125,7 +131,7 @@ const settings = () => { .nav-group-header { display:grid; grid-template-columns: [icon] auto [title] 1fr [button] auto; - padding: 2rem 1rem 0rem 1rem; + padding: 2rem 0 0 0; font-size: .9rem; font-weight: bold; } @@ -152,7 +158,7 @@ const settings = () => { } .nav-group-header>div:nth-child(3):hover { - color: var(--primary75); + color: var(--primary75); } - \ No newline at end of file +