From 65612d8afc1fbb1df34cf9088004674939d78445 Mon Sep 17 00:00:00 2001 From: razonyang Date: Fri, 20 Jan 2023 16:50:37 +0800 Subject: [PATCH] style: change Algolia button size --- assets/algolia/scss/index.scss | 4 ++++ assets/docsearch/scss/index.scss | 4 ++++ layouts/partials/header/search-button.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/algolia/scss/index.scss b/assets/algolia/scss/index.scss index 0386f3aac..377814b02 100644 --- a/assets/algolia/scss/index.scss +++ b/assets/algolia/scss/index.scss @@ -93,6 +93,10 @@ padding: 0; } +.aa-DetachedSearchButtonIcon { + width: 1.25rem; +} + .aa-SubmitIcon { color: var(--#{$prefix}navbar-color); } diff --git a/assets/docsearch/scss/index.scss b/assets/docsearch/scss/index.scss index f73e1f8e2..802d8557c 100644 --- a/assets/docsearch/scss/index.scss +++ b/assets/docsearch/scss/index.scss @@ -46,6 +46,10 @@ } } +.DocSearch-Button { + margin-left: 0; +} + .DocSearch-Button-Placeholder, .DocSearch-Button-Keys { display: none; diff --git a/layouts/partials/header/search-button.html b/layouts/partials/header/search-button.html index 98f05a7b3..f1bc37647 100644 --- a/layouts/partials/header/search-button.html +++ b/layouts/partials/header/search-button.html @@ -6,5 +6,5 @@ {{- $indexURL = $index.RelPermalink }} {{- end -}}
-
+
{{- end -}}