From 2caac7906e559c06f88083198626cd73192a5d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B8=B8=E5=90=9B?= Date: Mon, 14 Mar 2022 23:41:39 +0800 Subject: [PATCH] refactor(docs): adjust style details & fix pages width (#6624) * refactor(docs): adjust style details * refactor(docs): add toc width * refactor(docs): remove unused var * fix(docs): typography & button etc pages width unify --- .../components/doc-content/vp-edit-link.vue | 1 - .../components/doc-content/vp-page-nav.vue | 15 ++++++----- .../doc-content/vp-table-of-content.vue | 4 +++ .../components/globals/parallax-home.vue | 7 ++++++ .../components/home/home-sponsors.vue | 20 +++------------ .../components/sponsors/sponsors-button.vue | 25 +++++++++++++++++++ docs/.vitepress/vitepress/styles/base.scss | 4 ++- docs/.vitepress/vitepress/styles/code.scss | 9 +++++-- docs/.vitepress/vitepress/styles/content.scss | 5 ++-- .../vitepress/styles/content/doc-content.scss | 23 +++++++++++------ .../styles/content/table-of-content.scss | 4 ++- docs/.vitepress/vitepress/styles/navbar.scss | 2 +- docs/.vitepress/vitepress/styles/sidebar.scss | 9 ++++--- docs/.vitepress/vitepress/styles/vars.scss | 16 +++++++++--- docs/en-US/guide/theming.md | 17 ++++++++++--- 15 files changed, 115 insertions(+), 46 deletions(-) create mode 100644 docs/.vitepress/vitepress/components/sponsors/sponsors-button.vue diff --git a/docs/.vitepress/vitepress/components/doc-content/vp-edit-link.vue b/docs/.vitepress/vitepress/components/doc-content/vp-edit-link.vue index 4727e62f0a..59595644ac 100644 --- a/docs/.vitepress/vitepress/components/doc-content/vp-edit-link.vue +++ b/docs/.vitepress/vitepress/components/doc-content/vp-edit-link.vue @@ -25,7 +25,6 @@ const { url, text } = useEditLink() .link { display: inline-block; font-weight: 500; - color: var(--text-color-light); } .link:hover { diff --git a/docs/.vitepress/vitepress/components/doc-content/vp-page-nav.vue b/docs/.vitepress/vitepress/components/doc-content/vp-page-nav.vue index ad560ffe96..240c953f31 100644 --- a/docs/.vitepress/vitepress/components/doc-content/vp-page-nav.vue +++ b/docs/.vitepress/vitepress/components/doc-content/vp-page-nav.vue @@ -11,7 +11,7 @@ const { hasLinks, prev, next } = usePageNav()