Implement refreshed design for the top nav.
This commit is contained in:
parent
d31745fb02
commit
caf5ff6787
|
@ -11,9 +11,10 @@ import { fade } from "svelte/transition";
|
||||||
<div class="root">
|
<div class="root">
|
||||||
|
|
||||||
<div class="top-nav">
|
<div class="top-nav">
|
||||||
<IconButton icon="home"
|
<button class="home-logo"><img src="/assets/budibase-logo-only.png"/></button>
|
||||||
|
<!-- <IconButton icon="home"
|
||||||
color="var(--slate)"
|
color="var(--slate)"
|
||||||
hoverColor="var(--secondary75)"/>
|
hoverColor="var(--secondary75)"/> -->
|
||||||
<span class:active={$store.isBackend}
|
<span class:active={$store.isBackend}
|
||||||
class="topnavitem"
|
class="topnavitem"
|
||||||
on:click={store.showBackend}>
|
on:click={store.showBackend}>
|
||||||
|
@ -51,10 +52,13 @@ import { fade } from "svelte/transition";
|
||||||
|
|
||||||
.top-nav {
|
.top-nav {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
height: 25px;
|
height: 48px;
|
||||||
background: white;
|
background: white;
|
||||||
padding: 5px;
|
padding: 0px 15px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
@ -71,9 +75,14 @@ import { fade } from "svelte/transition";
|
||||||
.topnavitem {
|
.topnavitem {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--secondary50);
|
color: var(--secondary50);
|
||||||
padding: 0px 15px;
|
margin: 0px 15px;
|
||||||
|
padding-top: 4px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: .9rem;
|
font-size: 1rem;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topnavitem:hover {
|
.topnavitem:hover {
|
||||||
|
@ -84,8 +93,31 @@ import { fade } from "svelte/transition";
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
color: var(--primary100);
|
color: var(--primary100);
|
||||||
font-weight: 900;
|
font-weight: 600;
|
||||||
|
border-bottom: 2px solid var(--primary100);
|
||||||
|
border-top: 2px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-logo {
|
||||||
|
border-style: none;
|
||||||
|
background-color: rgba(0,0,0,0);
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
|
height: 40px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-logo:hover {
|
||||||
|
color: var(--hovercolor);
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-logo:active {
|
||||||
|
outline:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.home-logo img {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,5 +1,5 @@
|
||||||
:root {
|
:root {
|
||||||
--primary100: #454CA0FF;
|
--primary100: #173157FF;
|
||||||
--primary75: #454CA0BF;
|
--primary75: #454CA0BF;
|
||||||
--primary50: #454CA080;
|
--primary50: #454CA080;
|
||||||
--primary25: #454CA040;
|
--primary25: #454CA040;
|
||||||
|
|
Loading…
Reference in New Issue