hide searchbar when not in home

This commit is contained in:
lesion 2022-11-24 17:27:15 +01:00
parent 9ad0277d11
commit e37f7cd9d1
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -5,11 +5,11 @@
<!-- title -->
<div class='text-center'>
<nuxt-link class='text-h3 text-decoration-none' v-text='settings.title' to='/' />
<nuxt-link id='title' v-text='settings.title' to='/' />
<div class='text-body-1 font-weight-light' v-text='settings.description' />
</div>
<NavSearch/>
<NavSearch :class='{ hide: $route.name !== "index" }'/>
<NavBar />
@ -40,4 +40,15 @@ nav {
.theme--light nav {
background-image: linear-gradient(to bottom, rgba(255,230,230,.95), rgba(250,250,250,.95)), url(/headerimage.png);
}
#title {
font-size: 2rem;
font-weight: 600;
text-decoration: none;
}
.hide {
max-height: 0px !important;
visibility: hidden;
}
</style>