Update search menu

This commit is contained in:
Korbs 2024-10-25 14:53:39 -04:00
parent 05511d7400
commit 1e66c7cd9a

View file

@ -16,9 +16,9 @@ const {Type} = Astro.props
<style lang="scss">
.search-menu {
a {
color: black;
color: var(--text);
text-decoration: none;
background: rgba(255, 255, 255, 0.25);
background: var(--box-background);
border-width: 2px;
border-style: solid;
border-color: transparent;
@ -37,15 +37,15 @@ const {Type} = Astro.props
{
()=> {
if (Type === "Web") {
return <style>#search-type-item-web {background: white; border-color: #ddd;} </style>
return <style>#search-type-item-web {background: var(--box-background); border-color: #ddd;} </style>
} else if (Type === "Images") {
return <style>#search-type-item-images {background: white; border-color: #ddd;} </style>
return <style>#search-type-item-images {background: var(--box-background); border-color: #ddd;} </style>
} else if (Type === "Videos") {
return <style>#search-type-item-videos {background: white; border-color: #ddd;} </style>
return <style>#search-type-item-videos {background: var(--box-background); border-color: #ddd;} </style>
} else if (Type === "News") {
return <style>#search-type-item-news {background: white; border-color: #ddd;} </style>
return <style>#search-type-item-news {background: var(--box-background); border-color: #ddd;} </style>
} else if (Type === "Map") {
return <style>#search-type-item-map {background: white; border-color: #ddd;} </style>
return <style>#search-type-item-map {background: var(--box-background); border-color: #ddd;} </style>
}
}
}