Skip to content

Commit ca0fffd

Browse files
✨ Refactor DocSearch button styles for improved responsiveness and adjust logo size in navigation bar
1 parent 813cb8e commit ca0fffd

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

resources/css/docsearch.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@
3434
}
3535

3636
.DocSearch-Button-Placeholder {
37-
@apply hidden pr-20 text-sm text-black/60 min-[520px]:block dark:text-white/60;
37+
@apply hidden pl-1 pr-1 text-sm text-black/60 min-[400px]:block min-[520px]:pr-20 dark:text-white/60;
3838
}
3939

4040
.DocSearch-Button-Keys {
41-
display: flex;
42-
min-width: auto;
43-
44-
@apply ml-1 mt-1 text-sm leading-none;
41+
@apply ml-1 mt-1 hidden min-w-[auto] text-sm leading-none min-[520px]:flex;
4542
}
4643

4744
.DocSearch-Button-Key {

resources/views/components/navigation-bar.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class="mx-auto flex w-full max-w-5xl items-center justify-between gap-5 rounded-
1515
href="/"
1616
aria-label="NativePHP Homepage"
1717
>
18-
<x-logo class="h-5 sm:h-6" />
18+
<x-logo class="h-4 min-[400px]:h-5 sm:h-6" />
1919
<span class="sr-only">NativePHP</span>
2020
</a>
2121

@@ -84,7 +84,7 @@ class="hidden size-[3px] rotate-45 rounded-sm bg-gray-400 transition duration-20
8484
<button
8585
type="button"
8686
@click="showDocsNavigation = !showDocsNavigation"
87-
class="block p-2 focus:outline-none focus:ring-0 lg:hidden"
87+
class="-m-2 block p-2 focus:outline-none focus:ring-0 lg:hidden"
8888
aria-expanded="false"
8989
aria-controls="docs-navigation"
9090
aria-label="Toggle documentation menu"

0 commit comments

Comments
 (0)