Skip to content

Commit 0d98db1

Browse files
committed
fix: search font
1 parent 14fa2ff commit 0d98db1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/common/Search.astro

+6-5
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ if (searchTags.length === 0) {
5050
}
5151
---
5252

53-
<div>
54-
<dialog id="site-search">
53+
<div id="site-search">
54+
<dialog>
5555
<input type="search" placeholder="Search..." autofocus />
5656
<div class="suggestions" tabindex="-1">
5757
{
@@ -73,11 +73,11 @@ if (searchTags.length === 0) {
7373
import { SearchDialog } from "~/classes/SearchDialog";
7474
import { assertElement } from "~/util/DOM";
7575

76-
new SearchDialog(assertElement<HTMLDialogElement>("dialog#site-search"));
76+
new SearchDialog(assertElement<HTMLDialogElement>("#site-search dialog"));
7777
</script>
7878

7979
<style lang="scss">
80-
dialog#site-search {
80+
#site-search dialog {
8181
display: none;
8282
width: 60%;
8383
height: 60%;
@@ -98,6 +98,7 @@ if (searchTags.length === 0) {
9898
display: grid;
9999
}
100100
input[type="search"] {
101+
font-family: Poppins;
101102
width: 100%;
102103
font-size: 1.5em;
103104
margin: auto;
@@ -156,7 +157,7 @@ if (searchTags.length === 0) {
156157
}
157158

158159
@media screen and (max-width: 1000px) {
159-
dialog#site-search {
160+
#site-search dialog {
160161
width: 100%;
161162
}
162163
}

0 commit comments

Comments
 (0)