Formatting update

This commit is contained in:
Joe 2020-05-29 18:32:52 +01:00
parent cee06067a8
commit 1c541c684e
8 changed files with 41 additions and 96 deletions

View File

@ -71,7 +71,7 @@
margin-left: 20px; margin-left: 20px;
} }
:global(.refresh-page-button):hover{ :global(.refresh-page-button):hover {
background: var(--grey-light); background: var(--grey-light);
} }
</style> </style>

View File

@ -9,9 +9,6 @@
let selectedIndex = 0 let selectedIndex = 0
const isSelected = tab => selected === tab const isSelected = tab => selected === tab
</script> </script>
<div class="root"> <div class="root">
@ -19,9 +16,7 @@
<div class="switcher"> <div class="switcher">
{#each tabs as tab} {#each tabs as tab}
<button <button class:selected={selected === tab} on:click={() => selectTab(tab)}>
class:selected={selected === tab}
on:click={() => selectTab(tab)}>
{tab} {tab}
</button> </button>
{/each} {/each}
@ -30,13 +25,13 @@
<div class="panel"> <div class="panel">
{#if selectedIndex === 0} {#if selectedIndex === 0}
<slot name="0"></slot> <slot name="0" />
{:else if selectedIndex === 1} {:else if selectedIndex === 1}
<slot name="1"></slot> <slot name="1" />
{:else if selectedIndex === 2} {:else if selectedIndex === 2}
<slot name="2"></slot> <slot name="2" />
{:else if selectedIndex === 3} {:else if selectedIndex === 3}
<slot name="3"></slot> <slot name="3" />
{/if} {/if}
</div> </div>

View File

@ -41,7 +41,6 @@
// Go to correct URL // Go to correct URL
$goto(`./:page/:screen/${path}`) $goto(`./:page/:screen/${path}`)
} }
</script> </script>

View File

@ -61,7 +61,7 @@
{/if} {/if}
</span> </span>
<i class="ri-artboard-2-fill icon"></i> <i class="ri-artboard-2-fill icon" />
<span class="title">{screen.title}</span> <span class="title">{screen.title}</span>
</div> </div>

View File

@ -14,15 +14,10 @@
<PagesList /> <PagesList />
<button <button class="newscreen" on:click={newScreen}>Create New Screen</button>
class="newscreen"
on:click={newScreen}>
Create New Screen
</button>
<PageLayout layout={$store.pages[$store.currentPageName]} /> <PageLayout layout={$store.pages[$store.currentPageName]} />
<div class="nav-items-container"> <div class="nav-items-container">
<ComponentsHierarchy screens={$store.screens} /> <ComponentsHierarchy screens={$store.screens} />
</div> </div>
@ -30,59 +25,25 @@
<NewScreen bind:this={newScreenPicker} /> <NewScreen bind:this={newScreenPicker} />
<style> <style>
.newscreen {
cursor: pointer;
border: 1px solid var(--grey-dark);
border-radius: 3px;
width: 100%;
padding: 8px 16px;
margin: 12px 0px;
display: flex;
justify-content: center;
align-items: center;
background: white;
color: var(--ink);
font-size: 14px;
font-weight: 500;
transition: all 2ms;
}
.newscreen { .newscreen:hover {
cursor: pointer; background: var(--grey-light);
border: 1px solid var(--grey-dark); }
border-radius: 3px;
width: 100%;
padding: 8px 16px;
margin: 12px 0px;
display: flex;
justify-content: center;
align-items: center;
background: white;
color: var(--ink);
font-size: 14px;
font-weight: 500;
transition: all 2ms;
}
.newscreen:hover {
background: var(--grey-light);
}
.components-nav-header {
font-size: 13px;
color: var(--ink);
margin-top: 20px;
font-weight: 600;
opacity: 0.4;
letter-spacing: 1px;
}
.nav-group-header {
display: flex;
font-size: 0.9rem;
font-weight: bold;
justify-content: space-between;
align-items: center;
}
.nav-group-header > span:nth-child(3) {
margin-left: 5px;
vertical-align: bottom;
grid-column-start: title;
margin-top: auto;
}
.border-line {
border-bottom: 1px solid #d8d8d8;
}
.components-list-container {
padding: 20px 0px 0 0;
}
</style> </style>

View File

@ -55,8 +55,8 @@
class:rotate={$store.currentPreviewItem.name !== _layout.title}> class:rotate={$store.currentPreviewItem.name !== _layout.title}>
<ArrowDownIcon /> <ArrowDownIcon />
</span> </span>
<i class="ri-layout-3-fill icon-big"></i> <i class="ri-layout-3-fill icon-big" />
<span class="title">Master Screen</span> <span class="title">Master Screen</span>
</div> </div>
{#if $store.currentPreviewItem.name === _layout.title && _layout.component.props._children} {#if $store.currentPreviewItem.name === _layout.title && _layout.component.props._children}
@ -79,7 +79,6 @@
onOk={() => store.deleteComponent(componentToDelete)} /> onOk={() => store.deleteComponent(componentToDelete)} />
<style> <style>
.pagelayoutSection { .pagelayoutSection {
margin: 20px 0px 0px 0px; margin: 20px 0px 0px 0px;
} }

View File

@ -28,13 +28,11 @@
</script> </script>
<div class="root"> <div class="root">
{#each pages as { title, id }} {#each pages as { title, id }}
<button <button class:active={id === $params.page} on:click={() => changePage(id)}>
class:active={id === $params.page} {title}
on:click={() => changePage(id)}> </button>
{title} {/each}
</button>
{/each}
</div> </div>
<style> <style>
@ -63,5 +61,4 @@
background: var(--ink-light); background: var(--ink-light);
color: var(--white); color: var(--white);
} }
</style> </style>

View File

@ -26,11 +26,9 @@
} }
}) })
let confirmDeleteDialog let confirmDeleteDialog
let componentToDelete = "" let componentToDelete = ""
let settingsView let settingsView
const settings = () => { const settings = () => {
settingsView.show() settingsView.show()
@ -50,7 +48,7 @@
<div class="ui-nav"> <div class="ui-nav">
<Switcher bind:this={leftNavSwitcher} tabs={["Navigate", "Add"]}> <Switcher bind:this={leftNavSwitcher} tabs={['Navigate', 'Add']}>
<div slot="0"> <div slot="0">
<FrontendNavigatePane /> <FrontendNavigatePane />
</div> </div>
@ -59,12 +57,11 @@
</div> </div>
</Switcher> </Switcher>
</div> </div>
<div class="preview-pane"> <div class="preview-pane">
{#if $store.currentPageName && $store.currentPageName.length > 0} {#if $store.currentPageName && $store.currentPageName.length > 0}
<CurrentItemPreview /> <CurrentItemPreview />
{/if} {/if}
</div> </div>
@ -76,8 +73,6 @@
</div> </div>
<ConfirmDialog <ConfirmDialog
bind:this={confirmDeleteDialog} bind:this={confirmDeleteDialog}
title="Confirm Delete" title="Confirm Delete"
@ -133,5 +128,4 @@
.nav-group-header > div:nth-child(3):hover { .nav-group-header > div:nth-child(3):hover {
color: var(--primary75); color: var(--primary75);
} }
</style> </style>