From be90b53527e08a35717d723e6415bb3e28e2d535 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 8 Apr 2023 21:13:58 +0800 Subject: [PATCH] docs: update site responsive --- site/src/layouts/header/Logo.vue | 2 +- site/src/layouts/header/SearchBox.less | 2 +- site/src/layouts/header/index.less | 2 +- site/src/theme/static/responsive.less | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/src/layouts/header/Logo.vue b/site/src/layouts/header/Logo.vue index a3688fbbf..a61b7d78a 100644 --- a/site/src/layouts/header/Logo.vue +++ b/site/src/layouts/header/Logo.vue @@ -49,7 +49,7 @@ export default defineComponent({ } } -@media only screen and (max-width: var(--mobile-max-width)) { +@media only screen and (max-width: 767.99px) { #logo { padding-right: 0; padding-left: 0; diff --git a/site/src/layouts/header/SearchBox.less b/site/src/layouts/header/SearchBox.less index 288d20a40..d8f11311c 100644 --- a/site/src/layouts/header/SearchBox.less +++ b/site/src/layouts/header/SearchBox.less @@ -125,7 +125,7 @@ } } -@media only screen and (max-width: var(--mobile-max-width)) { +@media only screen and (max-width: 767.99px) { #search-box { display: none; } diff --git a/site/src/layouts/header/index.less b/site/src/layouts/header/index.less index 99ca8135e..8d88aec1b 100644 --- a/site/src/layouts/header/index.less +++ b/site/src/layouts/header/index.less @@ -42,7 +42,7 @@ } } -@media only screen and (max-width: var(--mobile-max-width)) { +@media only screen and (max-width: 767.99px) { #header { text-align: center; } diff --git a/site/src/theme/static/responsive.less b/site/src/theme/static/responsive.less index 7f8375a62..6e67d2a62 100644 --- a/site/src/theme/static/responsive.less +++ b/site/src/theme/static/responsive.less @@ -9,7 +9,7 @@ cursor: pointer; } -@media only screen and (max-width: var(--screen-lg)) { +@media only screen and (max-width: 992px) { .toc-affix { display: none; }