From 4b59ab1bc4712e13903367c03d56169727fc9847 Mon Sep 17 00:00:00 2001 From: Alexander Dimitrov Date: Mon, 26 Aug 2024 15:47:42 +0300 Subject: [PATCH] update with recent changes --- src/css/homepage-search.css | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/css/homepage-search.css b/src/css/homepage-search.css index 7f2e90d..2a9e528 100644 --- a/src/css/homepage-search.css +++ b/src/css/homepage-search.css @@ -1,11 +1,27 @@ /* Added in a separate file as the component isn't styled otherwise. */ +.navbar__search > * { + max-width: 47.5rem; + width: 100%; + margin: 0 auto; +} + +.main-wrapper .navbar__search > button { + right: calc(50% - 47.5rem / 2 + 4rem); + width: auto; + background: var(--ifm-navbar-search-input-background-color); + border-radius: .25rem; + width: 2rem; + height: 2rem; + transition: background-color .2s; +} + .home__heroBanner .navbar__search span { - width: 100%; + width: 100%; } .home__heroBanner .navbar__search input::placeholder { - color: var(--ifm-color-content); + color: var(--ifm-color-content); } .home__heroBanner @@ -19,7 +35,6 @@ height: 4.875rem; display: block; width: 100%; - max-width: 47.5rem; border: 3px solid black; padding: 1rem 1.5rem; background-position: right 1.5rem center; @@ -27,4 +42,4 @@ margin-left: auto; font-size: 1.125rem; color: var(--ifm-color-content); -} \ No newline at end of file +}