From 13cd52dfd4a0db3550e6b13d4781bb7f97d25090 Mon Sep 17 00:00:00 2001 From: Kagol Date: Wed, 4 Dec 2024 15:07:33 +0800 Subject: [PATCH] docs: optimize algolia search style --- examples/sites/src/style.css | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/sites/src/style.css b/examples/sites/src/style.css index f17e943aa5..f0b7c4f0be 100644 --- a/examples/sites/src/style.css +++ b/examples/sites/src/style.css @@ -32,11 +32,12 @@ b, strong { position: absolute; z-index: 1000; top: 12px; - left: 360px; + left: 210px; } .DocSearch-Container { z-index: 1000; + font-size: 14px; } .DocSearch-Button { @@ -62,9 +63,9 @@ b, strong { --docsearch-searchbox-background: #f5f5f5; } -@media screen and (max-width: 1023px) { +@media screen and (max-width: 814px) { .search-box { - left: 420px; + left: 230px; } } @@ -74,12 +75,6 @@ b, strong { } .search-box { - left: 360px; + left: 230px; } } - -@media screen and (max-width: 430px) { - .search-box { - left: 300px; - } -} \ No newline at end of file