Skip to content

Commit

Permalink
search improvement on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubabrzy committed Sep 19, 2023
1 parent 5c78807 commit 4239d3f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,33 @@ body {
display: none;
}

html[data-theme="light"] .navbar__search {
color: theme("colors.gray.700");
}

html[data-theme="dark"] .navbar__search {
color: theme("colors.gray.200");
}

/* TODO: Replace with Algolia search icon */
.navbar__search-input {
@apply w-32 lg:w-48 h-10;
@apply w-32 lg:w-48 h-10 xs:pl-8;

&:focus {
@apply xs:pl-9;
}

&:not(:placeholder-shown) {
@apply xs:pl-9 pr-8;

@media (max-width: 576px) {
width: 8rem !important;
}
}
}

button[class^="searchClearButton"] {
display: block !important;
}

div[class^="searchHintContainer"] {
Expand Down

0 comments on commit 4239d3f

Please sign in to comment.