From cccd9fccfb6eb2b16878d7488aa3fab578b621cc Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 30 Mar 2021 16:25:30 +0200 Subject: search page :tada: --- styles/globals.css | 2 ++ styles/navbar.css | 11 +++++++---- styles/search.css | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 styles/search.css (limited to 'styles') diff --git a/styles/globals.css b/styles/globals.css index d0e0e4b..5650240 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -64,6 +64,8 @@ h3 { font-size: 32px; } background-color: var(--fg); } +:focus { outline: none; } + @media (prefers-color-scheme: light) { .subtile { opacity: .6; diff --git a/styles/navbar.css b/styles/navbar.css index 2e10091..607c3d7 100644 --- a/styles/navbar.css +++ b/styles/navbar.css @@ -85,16 +85,19 @@ height: 24px; } -.navbarItem > div > svg { - vertical-align: super; -} +.navbarItem > div > svg { vertical-align: super; } @media (prefers-color-scheme: light) { .navbarItem .inner { background-color: var(--heliotrope-gray); } .navbarItem.active .inner, - .navbarItem:not(.chapter):hover .inner { + .navbarItem.link:hover .inner { color: var(--bg); background-color: var(--fg); } + + .navbarItem.pinned .inner .title { + opacity: .6; + color: var(--oxford-blue) + } } diff --git a/styles/search.css b/styles/search.css new file mode 100644 index 0000000..5a63500 --- /dev/null +++ b/styles/search.css @@ -0,0 +1,38 @@ +.searchBar { + background-color: var(--heliotrope-gray); + border-radius: 8px; + padding: 12px; +} + +.searchBar .input { + background-color: transparent; + border: 0; + + color: var(--bg); + + margin-left: 12px; + width: calc(100% - 48px - 12px); + padding: 14px 0; + + vertical-align: top; + + font-family: "Inter", sans-serif; + font-size: 16px; +} + +.searchBar .input::placeholder { + font-style: italic; + opacity: .75; + + color: var(--bg); +} + +.searchBar .button { + margin: 0; + display: inline-block !important; + line-height: 0; + min-width: unset; + background-color: var(--bg); + color: var(--heliotrope-gray) !important; +} + -- cgit v1.2.3