Skip to content

Commit 54a00f4

Browse files
committed
use button in results
1 parent 2b32f7e commit 54a00f4

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

assets/css/utilities.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
font-size: 90%;
251251
}
252252
@utility topbar-button {
253-
@apply font-semibold min-h-10 px-2 bg-blue-400/50 rounded-md border-1 border-blue-300 inline-flex justify-center items-center gap-1.5 hover:bg-blue-400/70 hover:border-blue-200 transition-colors;
253+
@apply text-white font-semibold min-h-10 px-2 bg-blue-400/50 rounded-md border-1 border-blue-300 inline-flex justify-center items-center gap-1.5 hover:bg-blue-400/70 hover:border-blue-200 transition-colors;
254254
svg {
255255
font-size: 19px;
256256
}

hugo_stats.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@
170170
"bg-black/100",
171171
"bg-black/50",
172172
"bg-blue",
173+
"bg-blue-300",
173174
"bg-blue-400",
175+
"bg-blue-400/30",
176+
"bg-blue-400/7",
177+
"bg-blue-400/70",
178+
"bg-blue-400/95",
174179
"bg-blue-500",
175180
"bg-gradient-to-br",
176181
"bg-gradient-to-r",
@@ -195,6 +200,8 @@
195200
"border-b",
196201
"border-b-4",
197202
"border-blue",
203+
"border-blue-300",
204+
"border-blue-400",
198205
"border-divider-light",
199206
"border-gray-200",
200207
"border-gray-400",
@@ -341,11 +348,15 @@
341348
"highlight",
342349
"hover:bg-blue",
343350
"hover:bg-blue-400",
351+
"hover:bg-blue-400/70",
352+
"hover:bg-blue-400/80",
353+
"hover:bg-blue-400/90",
344354
"hover:bg-blue-500",
345355
"hover:bg-gray-100",
346356
"hover:bg-gray-200",
347357
"hover:bg-gray-50",
348358
"hover:bg-white/20",
359+
"hover:border-blue-400",
349360
"hover:border-white/20",
350361
"hover:dark:bg-blue-500",
351362
"hover:dark:bg-gray-800",

layouts/_default/search.html

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,16 @@ <h1 class="py-4">{{ .Title }}</h1>
88
{{ .Content }}
99
<div class="not-prose">
1010
<div class="flex flex-col justify-between gap-8 lg:flex-row">
11-
<input
12-
type="search"
13-
id="search-page-input"
11+
<input type="search" id="search-page-input"
1412
class="ring-3-gray-light-200 dark:ring-3-gray-dark-400 dark:bg-background-dark focus:ring-3-blue-light dark:focus:ring-3-blue-dark ring-3-[1.5px] w-full max-w-xl min-w-0 rounded-sm bg-white px-4 py-2 outline-hidden"
15-
placeholder="Search…"
16-
tabindex="0"
17-
/>
13+
placeholder="Search…" tabindex="0" />
1814
<div class="flex min-w-fit flex-grow flex-col items-center">
19-
<p>Not finding what you're looking for?</p>
20-
<button
21-
class="open-kapa-widget flex w-fit items-center gap-2 rounded-sm px-2 py-1 font-semibold hover:bg-gray-200 dark:hover:bg-gray-800"
22-
>
23-
<span>Try Ask AI</span>
24-
<img
25-
height="24px"
26-
width="24px"
27-
src="{{ (resources.Get "images/ai-stars.svg").Permalink }}"
28-
alt="AI sparkles!"
29-
/>
15+
<p class="mb-1">Not finding what you're looking for? Try</p>
16+
<button class="topbar-button open-kapa-widget bg-blue-400/95 border-blue-300 hover:bg-blue-400/90">
17+
<span>Ask&nbsp;AI</span>
18+
<span class="icon-svg">
19+
{{ partial "utils/svg.html" "/icons/sparkle.svg" }}
20+
</span>
3021
</button>
3122
</div>
3223
</div>

layouts/partials/search-bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
break;
3636
}
3737
}"
38-
class="flex-grow px-2 order-1 min-w-0 border-none outline-none focus:outline-none"
38+
class="flex-grow order-1 min-w-0 border-none outline-none focus:outline-none"
3939
tabindex="0"
4040
/>
4141
<div id="search-bar-icon" class="order-2">

0 commit comments

Comments
 (0)