Skip to content

Commit 7931ae3

Browse files
authored
Merge pull request #91 from FoxedDev/main
Did some styling stuff to the sidebar
2 parents a126cba + 8b4f8bf commit 7931ae3

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

src/lib/Topbar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<span class="hidden sm:block">Edit</span>
7979
</a>
8080
<button
81-
class="bg-black/45 p-2 rounded-lg py-1 flex items-center gap-2 hover:text-stone-100 aspect-square sm:aspect-auto focus-visible:outline-2 focus-visible:outline-dph-orange"
81+
class="bg-black/45 p-2 rounded-lg py-1 flex items-center gap-2 hover:text-stone-100 aspect-square sm:aspect-auto focus-visible:outline-2 focus-visible:outline-dph-orange cursor-pointer"
8282
aria-label="Copy URL"
8383
onclick={copyUrl}>
8484
<IconShare />

src/lib/sidebar/SearchBox.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<button
1616
aria-label="Open Search Modal"
17-
class="bg-black/45 px-2 py-1 rounded-lg flex justify-between items-center mt-1 mb-2 w-full focus-visible:outline-2 focus-visible:outline-dph-orange"
17+
class="bg-black/45 px-3 py-1 rounded-lg flex justify-between items-center mt-1 mb-2 w-full focus-visible:outline-2 focus-visible:outline-dph-orange cursor-text"
1818
onclick={async () => await dialog.showModal()}>
1919
<div class="flex items-center gap-2">
2020
<IconSearch />

src/lib/sidebar/Sidebar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
{/if}
9292
<button
9393
aria-label="{windowInfo.isNavOpen ? 'Collapse' : 'Expand'} Sidebar"
94-
class="hidden sm:block text-stone-200 text-lg motion-safe:transition-all focus-visible:outline-2 focus-visible:outline-dph-orange {windowInfo.isNavOpen
94+
class="hidden sm:block rounded-lg cursor-pointer text-stone-200 text-lg hover:bg-stone-700 hover:text-white motion-safe:transition-all focus-visible:outline-2 focus-visible:outline-dph-orange {windowInfo.isNavOpen
9595
? 'rotate-0'
9696
: 'rotate-180'}"
9797
onclick={() => (windowInfo.isNavOpen = !windowInfo.isNavOpen)}>

src/lib/sidebar/SidebarSearchDialog.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@
7373
{/each}
7474
</div>
7575
<p class="text-stone-400 mt-2">
76-
{searchState === "waiting"
77-
? "Loading data..."
78-
: results.length === 0
79-
? "No results"
80-
: results.length + " result(s) found!"}
76+
{searchTerm === ""
77+
? ""
78+
: searchState === "waiting"
79+
? "Loading data..."
80+
: results.length === 0
81+
? "No results"
82+
: results.length + " result(s) found!"}
8183
</p>
8284

83-
<button class="bg-stone-700 w-full rounded-sm p-2 mt-2 text-white" onclick={() => dialog.close()}>Close</button>
85+
<button class="bg-stone-700 w-full rounded-sm p-2 mt-2 text-white cursor-pointer" onclick={() => dialog.close()}>Close</button>
8486
</div>
8587
</dialog>

src/styles/app.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
--color-dph-orange: oklch(69.27% 0.2042 40.82);
1717
}
1818

19+
#content a {
20+
color: var(--color-orange-400);
21+
}
22+
23+
#content a:hover, #content a:focus {
24+
color: var(--color-orange-300);
25+
}
26+
1927
::-webkit-scrollbar {
2028
width: 4px;
2129
}

0 commit comments

Comments
 (0)