From 0202b451ded70ef15d754d3b2675a288113f67c8 Mon Sep 17 00:00:00 2001 From: Korbs Date: Thu, 14 Nov 2024 23:53:30 -0500 Subject: [PATCH] Add style for Pagefind --- src/styles/search.scss | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/styles/search.scss diff --git a/src/styles/search.scss b/src/styles/search.scss new file mode 100644 index 0000000..2e39cd6 --- /dev/null +++ b/src/styles/search.scss @@ -0,0 +1,53 @@ +input { + background: #0a0a0a; + color: white; + border: 1px #2d2d2d solid; + border-radius: 6px; + padding: 12px 16px; + font-size: 14px; + &:focus { + outline: none; + } +} +mark { + background: gainsboro; + padding: 2px 4px; + border-radius: 4px; + margin: -2px -4px; +} + +.pagefind-ui__message { + font-size: 18px; + font-weight: bold; +} +.pagefind-ui__results { + padding: 0px 18px; +} +.pagefind-ui__drawer { + position: absolute; + top: 79px; + max-width: 620px; + background: rgba(22, 22, 22, 0.75); + border-radius: 6px; + border: 1px #2d2d2d solid; + backdrop-filter: blur(24px); + padding: 12px 24px; +} + +.pagefind-ui__search-clear, .pagefind-ui__hidden { + display: none !important; +} + +@media screen and (max-width: 916px){ + .pagefind-ui__drawer { + left: 12px; + width: 100%; + max-width: calc(100% - 74px); + } +} + +@media screen and (max-width: 650px){ + .pagefind-ui__drawer { + top: 122px !important; + } +} \ No newline at end of file