diff --git a/quartz/components/Search.tsx b/quartz/components/Search.tsx index 93113d21e..23253aa6b 100644 --- a/quartz/components/Search.tsx +++ b/quartz/components/Search.tsx @@ -18,10 +18,9 @@ export default ((userOpts?: Partial) => { const opts = { ...defaultOptions, ...userOpts } const searchPlaceholder = i18n(cfg.locale).components.search.searchBarPlaceholder return ( -
) => {
- + ) } diff --git a/quartz/components/styles/search.scss b/quartz/components/styles/search.scss index 2bcb38bc1..cc2daca3b 100644 --- a/quartz/components/styles/search.scss +++ b/quartz/components/styles/search.scss @@ -1,28 +1,25 @@ @use "../../styles/variables.scss" as *; .search { - border: none; - background: none; - font-family: inherit; - font-size: inherit; min-width: fit-content; max-width: 14rem; - padding: 0; flex-grow: 0.3; - text-align: inherit; - & > #search-icon { + & > .search-button { background-color: var(--lightgray); + border: none; border-radius: 4px; + font-family: inherit; + font-size: inherit; height: 2rem; + padding: 0; display: flex; align-items: center; + text-align: inherit; cursor: pointer; white-space: nowrap; - - & > div { - flex-grow: 1; - } + width: 100%; + justify-content: space-between; & > p { display: inline;