feat(client): add slot for a searchbar

pull/105/head
Eduardo San Martin Morote 4 years ago committed by Eduardo San Martin Morote
parent 750fd7e177
commit 68d9b18f39

@ -1,7 +1,11 @@
<template>
<div class="theme">
<header>
<NavBar />
<NavBar>
<template #search>
<slot name="navbar-search" />
</template>
</NavBar>
<ToggleSideBarButton @toggle="toggleSidebar" />
</header>
<aside :class="{ open }">

@ -12,7 +12,9 @@
/>
<span>{{ $site.title }}</span>
</a>
<div class="flex-grow"></div>
<NavBarLinks class="hide-mobile" />
<slot name="search" />
</template>
<script src="./NavBar"></script>
@ -24,6 +26,10 @@
color: var(--text-color);
}
.flex-grow {
flex-grow: 1;
}
.logo {
margin-right: 0.75rem;
height: 1.3rem;

@ -2,6 +2,10 @@ body {
padding: 0;
margin: 0;
background-color: #fff;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
@ -9,10 +13,6 @@ body {
}
.theme {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px;
color: var(--text-color);
}

Loading…
Cancel
Save