From 79360f493bc31afaea8c6660e0deff208e025dc8 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Sat, 9 Jul 2022 08:02:49 -0500 Subject: [PATCH 1/3] Use get instead of getAsObject --- packages/marko-web-theme-monorail/templates/search.marko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/marko-web-theme-monorail/templates/search.marko b/packages/marko-web-theme-monorail/templates/search.marko index 4ee836afd..15cdf8434 100644 --- a/packages/marko-web-theme-monorail/templates/search.marko +++ b/packages/marko-web-theme-monorail/templates/search.marko @@ -19,7 +19,7 @@ $ const overrideSortField = get(site, 'config.setSearchSortFieldToScore'); $ const searchQueryPresent = (search.query.searchQuery && search.query.searchQuery !== ''); $ const setDefaultSortField = (searchQueryPresent && !search.query.sortField && overrideSortField); $ const sortField = setDefaultSortField ? 'SCORE' : search.input.sortField; -$ const sponsorLogo = site.getAsObject('search.sponsorLogos.page'); +$ const sponsorLogo = site.get('search.sponsorLogos.page'); <@head> From 81cea9bf141d2830acf1f6ca21203cfd21c01d50 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Sat, 9 Jul 2022 08:03:26 -0500 Subject: [PATCH 2/3] Change position of search sponsor logo --- .../scss/components/_search-page.scss | 3 +- .../templates/search.marko | 30 +++++++------------ 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/packages/marko-web-theme-monorail/scss/components/_search-page.scss b/packages/marko-web-theme-monorail/scss/components/_search-page.scss index 5123d63cc..0ec6c451e 100644 --- a/packages/marko-web-theme-monorail/scss/components/_search-page.scss +++ b/packages/marko-web-theme-monorail/scss/components/_search-page.scss @@ -163,13 +163,14 @@ .search-sponsor { display: flex; align-items: center; + margin-top: 1rem; &__label { @include skin-typography($style: "input-label"); padding: 0; margin-right: 1rem; margin-bottom: 12px; - font-size: 17px; + font-size: 12px; font-weight: $font-weight-semibold; color: $gray-800; text-transform: uppercase; diff --git a/packages/marko-web-theme-monorail/templates/search.marko b/packages/marko-web-theme-monorail/templates/search.marko index 15cdf8434..d059f9090 100644 --- a/packages/marko-web-theme-monorail/templates/search.marko +++ b/packages/marko-web-theme-monorail/templates/search.marko @@ -39,33 +39,14 @@ $ const sponsorLogo = site.get('search.sponsorLogos.page'); <@section|{ blockName }|>
- -
- - 1)>${value}: ${i18n("Page")} ${currentPage} - ${value} -
- Sponsored by -
- -
-
- <@before-title|{ blockName }|> 1)>${value}: ${i18n("Page")} ${currentPage} ${value} - @@ -91,6 +72,17 @@ $ const sponsorLogo = site.get('search.sponsorLogos.page');
+ +
+ Sponsored by +
+
From dcc348ac5cda0d2f36025c646a86b2ceada2fb5a Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Sat, 9 Jul 2022 08:03:38 -0500 Subject: [PATCH 3/3] Adjust left margin --- .../marko-web-theme-monorail/scss/components/_site-navbar.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/marko-web-theme-monorail/scss/components/_site-navbar.scss b/packages/marko-web-theme-monorail/scss/components/_site-navbar.scss index dd0068c10..a80a0ad31 100644 --- a/packages/marko-web-theme-monorail/scss/components/_site-navbar.scss +++ b/packages/marko-web-theme-monorail/scss/components/_site-navbar.scss @@ -62,7 +62,7 @@ margin-bottom: 0; } img { - margin-left: .5rem; + margin-left: 12px; max-height: 24px; } }