Layout is looking pretty slick now!

This commit is contained in:
Eclypsed
2024-01-20 16:41:53 -05:00
parent 215ff9a8d8
commit 54309d06cf
4 changed files with 138 additions and 123 deletions
+1 -7
View File
@@ -24,7 +24,7 @@
<search
role="search"
bind:this={searchBar}
class="relative flex h-full w-full max-w-xl items-center gap-2.5 justify-self-center rounded-full border-2 border-transparent px-4 py-1.5"
class="relative flex h-full w-full items-center gap-2.5 justify-self-center rounded-full border-2 border-transparent bg-black px-4 py-2"
on:focusout={() => {
setTimeout(() => {
// This is a completely stupid thing you have to do, if there is not timeout, the active element will be the body of the document and not the newly focused element
@@ -68,9 +68,3 @@
</div>
{/if}
</search>
<style>
search {
background-color: rgba(100, 100, 100, 0.25);
}
</style>