Skip to content

Commit 83a191b

Browse files
committed
wip
1 parent 24bae3c commit 83a191b

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

assets/css/utilities.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@
250250
font-size: 90%;
251251
}
252252
@utility topbar-button {
253-
@apply font-semibold min-h-10 px-1 bg-blue-400/70 rounded-md border-1 border-gray-300 inline-flex justify-center items-center gap-1.5 overflow-hidden;
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;
254254
svg {
255-
font-size: 20px;
255+
font-size: 19px;
256256
}
257257
}
258258

hugo_stats.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"-v",
1212
"-z-10",
1313
".NET",
14+
":",
1415
"AWS-Route-53",
1516
"Admin-Console",
1617
"After",
@@ -386,9 +387,16 @@
386387
"lg:no-underline",
387388
"lg:pb-2",
388389
"lg:scale-100",
390+
"lg:w-[100px]",
391+
"lg:w-[150px]",
392+
"lg:w-[170px]",
393+
"lg:w-[200px]",
394+
"lg:w-[300px]",
395+
"lg:w-[80px]",
389396
"link",
390397
"lntable",
391398
"lntd",
399+
"m:w-[100px]",
392400
"macOS",
393401
"max-h-full",
394402
"max-w-4xl",
@@ -420,8 +428,13 @@
420428
"md:text-base",
421429
"md:text-sm",
422430
"md:top-16",
431+
"md:w-[100px]",
432+
"md:w-[170px]",
433+
"md:w-[180px]",
434+
"md:w-[200px]",
423435
"md:w-[300px]",
424436
"md:w-[320px]",
437+
"md:w-[50px]",
425438
"md:z-auto",
426439
"min-h-screen",
427440
"min-w-0",
@@ -538,6 +551,8 @@
538551
"sm:flex-row",
539552
"sm:hidden",
540553
"sm:items-center",
554+
"sm:w-[100px]",
555+
"sm:w-[80px]",
541556
"sm:w-full",
542557
"space-y-2",
543558
"space-y-4",

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
class="sticky top-0 z-20 h-16 w-full bg-gradient-to-r from-blue-600 to-blue-500 to-50% px-6 text-white dark:from-blue-600 dark:to-blue-500"
33
>
44
<div
5-
class="mx-auto flex h-full max-w-[1920px] items-center justify-between gap-2 lg:gap-8"
5+
class="mx-auto flex h-full max-w-[1920px] items-center justify-between gap-2"
66
>
77
<div class="flex h-full items-center gap-2 lg:gap-8">
88
{{- if not .IsHome }}
@@ -44,7 +44,7 @@
4444
</ul>
4545
</nav>
4646
</div>
47-
<div class="flex min-w-0 flex-grow items-center justify-end gap-4">
47+
<div class="flex min-w-0 items-center justify-end gap-4">
4848
<div class="topbar-button overflow-visible">
4949
{{ partialCached "search-bar.html" "-" }}
5050
</div>

layouts/partials/search-bar.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
@click.outside="open = false;"
1010
@keyup.escape.window="open = false"
1111
id="search-bar"
12-
class="relative hidden min-w-0 items-center sm:flex sm:w-full xl:w-[300px] flex"
12+
class="relative items-center flex"
1313
>
1414
<div id="search-bar-keyboard-shortcuts" x-cloak :class="open && 'hidden'"
15-
class="hidden rounded-sm text-sm md:flex md:items-center"
15+
class="sm:hidden rounded-sm text-sm md:flex md:items-center"
1616
>
1717
<div>
1818
<span x-show="navigator.platform == 'MacIntel'" class="icon-svg icon-sm">{{ partialCached "icon"
@@ -44,7 +44,7 @@
4444
tabindex="0"
4545
/>
4646
<div id="search-bar-icon" class="order-2">
47-
<span class="icon-svg-stroke icon-sm">
47+
<span class="icon-svg-stroke">
4848
{{ partial "utils/svg.html" "/icons/search.svg" }}
4949
</span>
5050
</div>
@@ -55,16 +55,16 @@
5555
x-init="$nextTick(() => {
5656
if (open) {
5757
const rect = $refs.searchBarRef.getBoundingClientRect();
58-
$el.style.top = (rect.bottom + window.scrollY) + 'px';
58+
$el.style.top = (rect.bottom + window.scrollY + 9) + 'px';
5959
$el.style.left = rect.left + 'px';
6060
$el.style.width = Math.max(rect.width, 400) + 'px';
6161
}
6262
})"
6363
x-effect="if (open) {
6464
const rect = $refs.searchBarRef.getBoundingClientRect();
65-
$el.style.top = (rect.bottom + window.scrollY) + 'px';
65+
$el.style.top = (rect.bottom + window.scrollY + 9) + 'px';
6666
$el.style.left = rect.left + 'px';
67-
$el.style.width = Math.max(rect.width, 300) + 'px';
67+
$el.style.width = Math.max(rect.width, 400) + 'px';
6868
}"
6969
class="bg-background-light dark:bg-background-dark fixed z-[999] max-w-xl rounded-sm px-6 py-4 shadow-lg"
7070
>
@@ -82,7 +82,7 @@
8282
termFrequency: 0.2,
8383
pageLength: 0.75,
8484
termSaturation: 1.4,
85-
termSimilarity: 6.0,
85+
termSimilarity: 6.0
8686
},
8787
});
8888

0 commit comments

Comments
 (0)