Browse Source

Update top nav border style

pull/4023/head
Andrew Kingston 6 years ago
parent
commit
d3714ea9ee
  1. 58
      packages/builder/src/pages/[application]/_reset.svelte

58
packages/builder/src/pages/[application]/_reset.svelte

@ -30,10 +30,10 @@
// e.g. if one of your screens is selected on front end, then // e.g. if one of your screens is selected on front end, then
// you browse to backend, when you click frontend, you will be // you browse to backend, when you click frontend, you will be
// brought back to the same screen // brought back to the same screen
const topItemNavigate = path => () => { const topItemNavigate = (path) => () => {
const activeTopNav = $layout.children.find(c => $isActive(c.path)) const activeTopNav = $layout.children.find((c) => $isActive(c.path))
if (!activeTopNav) return if (!activeTopNav) return
store.update(state => { store.update((state) => {
if (!state.previousTopNavPath) state.previousTopNavPath = {} if (!state.previousTopNavPath) state.previousTopNavPath = {}
state.previousTopNavPath[ state.previousTopNavPath[
activeTopNav.path activeTopNav.path
@ -66,22 +66,26 @@
</div> </div>
<div class="toprightnav"> <div class="toprightnav">
<SettingsLink /> <SettingsLink />
<span <div class="topnavitemright">
class:active={false} <a target="_blank" href="https://docs.budibase.com">
class="topnavitemright" <i class="ri-question-line" />
on:click={() => { </a>
document.cookie = 'budibase:token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;' </div>
window.open(`/${application}`) <div class="topnavitemright">
}}>
<PreviewIcon />
</span>
<span class="topnavitemright">
<a <a
target="_blank" target="_blank"
href="https://github.com/Budibase/budibase/discussions"> href="https://github.com/Budibase/budibase/discussions">
<i class="ri-question-fill help" /> <i class="ri-discuss-line" />
</a> </a>
</span> </div>
<Button
secondary
on:click={() => {
document.cookie = 'budibase:token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'
window.open(`/${application}`)
}}>
Preview
</Button>
</div> </div>
</div> </div>
<div class="beta"> <div class="beta">
@ -120,7 +124,7 @@
flex: 0 0 auto; flex: 0 0 auto;
height: 60px; height: 60px;
background: #fff; background: #fff;
padding: 0px 20px 0 20px; padding: 0 20px;
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
justify-content: space-between; justify-content: space-between;
@ -166,20 +170,19 @@
font-weight: 500; font-weight: 500;
} }
.topnavitemright { .topnavitemright a {
cursor: pointer; cursor: pointer;
color: var(--grey-7); color: var(--grey-7);
margin: 0 20px 0 0; margin: 0 12px 0 0;
font-weight: 500;
font-size: 1rem;
height: 100%;
display: flex; display: flex;
flex: 1; flex-direction: row;
justify-content: center;
align-items: center; align-items: center;
box-sizing: border-box; height: 24px;
width: 24px;
} }
.topnavitemright:hover { .topnavitemright a:hover {
color: var(--ink); color: var(--ink);
font-weight: 500; font-weight: 500;
} }
@ -205,10 +208,13 @@
text-transform: capitalize; text-transform: capitalize;
} }
.help { i {
font-size: 24px; font-size: 18px;
color: var(--grey-7); color: var(--grey-7);
} }
i:hover {
color: var(--ink);
}
.beta { .beta {
position: absolute; position: absolute;

Loading…
Cancel
Save