From 53abd5e451e07d58c023c536c5ba297cbee331c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czzhaobraze=E2=80=9D?= Date: Fri, 2 Sep 2022 15:32:02 -0400 Subject: [PATCH 1/3] fix main search overlay --- assets/css/_docs_search.scss | 5 ++++- vercel.json | 26 +++++++++++++++----------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/assets/css/_docs_search.scss b/assets/css/_docs_search.scss index 4373ec5d3e1..1c46cc11e86 100644 --- a/assets/css/_docs_search.scss +++ b/assets/css/_docs_search.scss @@ -155,8 +155,11 @@ $search_tag_color: $grey-athens; .aa-Panel { z-index: 800; max-width: 1048px; + @media (max-width: $window-medium-px) { + top: 125px !important; + } @media (min-width: $window-medium-px) { - top: 75px !important; + top: 100px !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-width: 2px; diff --git a/vercel.json b/vercel.json index c6e8837bf9a..f144f6ca924 100644 --- a/vercel.json +++ b/vercel.json @@ -1,20 +1,24 @@ { "trailingSlash": false, - "rewrites": [ - { - "source": "/docs/:path*", "destination": "/:path*" + "rewrites": [ + { + "source": "/docs/:path*", + "destination": "/:path*" }, - { "source": "/api/(.*)", "destination": "/api/404.html" } + { + "source": "/api/(.*)", + "destination": "/api/404.html" + } ], "headers": [ { - "source": "/(.*)", - "headers" : [ - { - "key" : "Cache-Control", - "value" : "public, max-age=604800, s-maxage=604800, stale-while-revalidate=86400, stale-if-error=86400" - } - ] + "source": "/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=604800, s-maxage=604800, stale-while-revalidate=86400, stale-if-error=86400" + } + ] } ] } \ No newline at end of file From 172e4452d27996deee4bafc5f9d4f1604b6eb659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czzhaobraze=E2=80=9D?= Date: Fri, 2 Sep 2022 15:41:18 -0400 Subject: [PATCH 2/3] fix small width --- assets/css/_docs_search.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/_docs_search.scss b/assets/css/_docs_search.scss index 1c46cc11e86..c0098a6ebe6 100644 --- a/assets/css/_docs_search.scss +++ b/assets/css/_docs_search.scss @@ -155,7 +155,7 @@ $search_tag_color: $grey-athens; .aa-Panel { z-index: 800; max-width: 1048px; - @media (max-width: $window-medium-px) { + @media (min-width: $window-small-px) { top: 125px !important; } @media (min-width: $window-medium-px) { From 144a3c47f8f990ea46589d535bb22aa81f64298f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czzhaobraze=E2=80=9D?= Date: Fri, 2 Sep 2022 16:04:49 -0400 Subject: [PATCH 3/3] fix media query search --- assets/css/_docs_search.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/css/_docs_search.scss b/assets/css/_docs_search.scss index c0098a6ebe6..31813d01b89 100644 --- a/assets/css/_docs_search.scss +++ b/assets/css/_docs_search.scss @@ -155,9 +155,11 @@ $search_tag_color: $grey-athens; .aa-Panel { z-index: 800; max-width: 1048px; - @media (min-width: $window-small-px) { + top: 0px !important; + @media (min-width: 681px) { top: 125px !important; } + @media (min-width: $window-medium-px) { top: 100px !important; border-top-left-radius: 0px;