Frontend navigation panel tidy up

- Additional margin around button
- icon added to 'create screen' button
- screen font weight reduced
This commit is contained in:
Joe 2020-06-01 22:16:12 +01:00
parent d89e1dcf80
commit e7b05cfd01
4 changed files with 12 additions and 9 deletions

View File

@ -61,6 +61,7 @@
font-weight: 700; font-weight: 700;
color: var(--ink-lighter); color: var(--ink-lighter);
margin-right: 20px; margin-right: 20px;
background: none;
} }
.switcher > .selected { .switcher > .selected {

View File

@ -80,7 +80,7 @@
margin-left: 10px; margin-left: 10px;
margin-top: 2px; margin-top: 2px;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 400;
} }
.icon { .icon {

View File

@ -14,7 +14,7 @@
<PagesList /> <PagesList />
<button class="newscreen" on:click={newScreen}>Create New Screen</button> <button class="newscreen" on:click={newScreen}><i class="icon ri-add-circle-fill"></i>Create New Screen</button>
<PageLayout layout={$store.pages[$store.currentPageName]} /> <PageLayout layout={$store.pages[$store.currentPageName]} />
@ -31,7 +31,7 @@
border-radius: 3px; border-radius: 3px;
width: 100%; width: 100%;
padding: 8px 16px; padding: 8px 16px;
margin: 12px 0px; margin: 20px 0px 12px 0px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -45,4 +45,10 @@
.newscreen:hover { .newscreen:hover {
background: var(--grey-light); background: var(--grey-light);
} }
.icon {
color: var(--ink);
font-size: 16px;
margin-right: 4px;
}
</style> </style>

View File

@ -40,7 +40,7 @@
} }
</script> </script>
<div class="pagelayoutSection">
<div <div
class="budibase__nav-item root" class="budibase__nav-item root"
class:selected={$store.currentComponentInfo._id === _layout.component.props._id} class:selected={$store.currentComponentInfo._id === _layout.component.props._id}
@ -60,17 +60,13 @@
components={_layout.component.props._children} components={_layout.component.props._children}
currentComponent={$store.currentComponentInfo} /> currentComponent={$store.currentComponentInfo} />
{/if} {/if}
</div>
<style> <style>
.pagelayoutSection {
margin: 20px 0px 0px 0px;
}
.title { .title {
margin-left: 10px; margin-left: 10px;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 400;
color: var(--ink); color: var(--ink);
} }