From 887ce8bc9a04e4f99be8d02630f2077ea3fc54c9 Mon Sep 17 00:00:00 2001 From: sea <45450994+warmthsea@users.noreply.github.com> Date: Fri, 1 Nov 2024 01:36:33 +0800 Subject: [PATCH] docs: optimize home page styles (#18539) --- docs/.vitepress/theme/styles/landing.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/theme/styles/landing.css b/docs/.vitepress/theme/styles/landing.css index c3582f2095f5aa..cc612c24ba4e57 100644 --- a/docs/.vitepress/theme/styles/landing.css +++ b/docs/.vitepress/theme/styles/landing.css @@ -4,13 +4,16 @@ html:has(.landing) { background-color: #101010; - --vp-c-bg: #101010; body { background-color: #101010; } } +html.dark:has(.landing) { + --vp-c-bg: #101010; +} + .landing { overflow-x: hidden; background-color: #101010; @@ -37,9 +40,14 @@ html:has(.landing) { .content-body { background: none !important; + transition: none; } } + .VPNavBar *:not(.wrapper *) { + transition: none; + } + .VPFooter { border-top: 1px solid #262626 !important; background: radial-gradient(circle at top center, #0f151a 30%, #000000 80%); @@ -58,6 +66,10 @@ html:has(.landing) { display: none; } + .VPMenu .translations + .group { + display: none; + } + .VPNavScreenAppearance { visibility: hidden; }