Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Web/x-header.view.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class="group transition-[top,border] z-[1] fixed top-4 data-[scrolling]:top-0 flex justify-center bg-[transparent] border-b border-transparent data-[scrolling]:border-(--ui-border) w-full duration-200 data-[scrolling]:backdrop-blur data-[scrolling]:bg-(--ui-bg)/75"
id="header"
>
<div class="flex justify-between items-center gap-x-4 px-8 py-4 w-full 2xl:max-w-8xl lg:max-w-5xl xl:max-w-7xl">
<div class="grid grid-cols-[auto_1fr_auto] items-center gap-x-4 px-8 py-4 w-full 2xl:max-w-8xl lg:max-w-5xl xl:max-w-7xl">
<!-- Left side -->
<div class="flex items-center gap-4">
<a href="/" class="flex items-center gap-4">
Expand All @@ -33,7 +33,7 @@ class="group transition-[top,border] z-[1] fixed top-4 data-[scrolling]:top-0 fl
</div>

<!-- Center -->
<div class="flex items-center gap-4 min-w-0">
<div class="flex items-center gap-4 min-w-0 xl:ml-32">
<x-search />
</div>
<!-- Right side -->
Expand Down
19 changes: 7 additions & 12 deletions src/Web/x-search.view.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<button toggle-palette class="hidden sm:block min-w-0 cursor-pointer">
<button toggle-palette class="hidden sm:flex items-center gap-2 min-w-0 cursor-pointer rounded-lg border border-(--ui-border) bg-(--ui-bg)/50 dark:bg-transparent px-3 py-1.5 text-sm text-(--ui-text-muted) hover:bg-(--ui-bg-elevated) hover:border-(--ui-border-accented) transition group-data-[scrolling]:border-transparent group-data-[scrolling]:bg-transparent group-data-[scrolling]:hover:bg-(--ui-bg-elevated)">
<label for="search" class="sr-only">Search</label>
<div class="flex rounded-xl group-[[data-scrolling]]:bg-(--ui-bg) bg-(--ui-bg)/50 dark:bg-[transparent] text-(--ui-text) hover:bg-(--ui-bg-elevated) ring ring-(--ui-border)/80 transition">
<span class="grow px-4 py-2 text-base text-(--ui-text-muted) focus:outline-0 sm:text-sm/6 truncate">
Search docs, blog...
</span>
<div class="flex py-1.5 pr-1.5">
<kbd class="inline-flex items-center rounded px-2 text-(--ui-text-dimmed) font-medium">
<x-icon name="tabler:command" class="size-4"/>
<span class="text-[.95rem]">K</span>
</kbd>
</div>
</div>
<x-icon name="tabler:search" class="size-4 shrink-0 text-(--ui-text-dimmed)"/>
<span class="truncate">Search docs, blog...</span>
<kbd class="ml-2 inline-flex items-center gap-0.5 rounded border border-(--ui-border) bg-(--ui-bg-muted) px-1.5 py-0.5 text-xs text-(--ui-text-dimmed) font-medium">
<x-icon name="tabler:command" class="size-3"/>
K
</kbd>
</button>
Loading