From d74b71b0abe62009968886a969b46a446548d260 Mon Sep 17 00:00:00 2001 From: Agan <104718452+Aganivi@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:36:27 +0800 Subject: [PATCH] fix: add color-dark to navbar in 404 page (#574) --- docs/.vitepress/theme/style/custom.styl | 15 ++++++++------- docs/.vitepress/theme/style/search.styl | 3 +++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/.vitepress/theme/style/custom.styl b/docs/.vitepress/theme/style/custom.styl index a44c7b5fa..d6460ff43 100644 --- a/docs/.vitepress/theme/style/custom.styl +++ b/docs/.vitepress/theme/style/custom.styl @@ -1,5 +1,5 @@ -.VPNavBar.has-sidebar +.VPNavBar.has-sidebar,.VPNavBar background var(--color-dark-2) .container .content-body @@ -69,12 +69,13 @@ padding 0 20px @media (min-width 768px) - .VPNavBar.has-sidebar .container .content-body - .VPNavBarExtra - display none - .VPNavBarTranslations,.VPNavBarSocialLinks - display flex - align-items center + .VPNavBar.has-sidebar, .VPNavBar + .container .content-body + .VPNavBarExtra + display none + .VPNavBarTranslations,.VPNavBarSocialLinks + display flex + align-items center @media (min-width 960px) .VPSidebar diff --git a/docs/.vitepress/theme/style/search.styl b/docs/.vitepress/theme/style/search.styl index dd26a81d7..c6c2f33f9 100644 --- a/docs/.vitepress/theme/style/search.styl +++ b/docs/.vitepress/theme/style/search.styl @@ -62,3 +62,6 @@ .VPNavBarSearch margin 0 12px 0 0 padding-left 0 + .VPNavBar:not(.has-sidebar) + .VPNavBarSearch + margin-left 20px \ No newline at end of file