From 7c55128bc2b8c85e72400d7a1ddb3d0d71b39b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=8F=9C=20Cai?= <1064425721@qq.com> Date: Thu, 28 Nov 2024 16:42:54 +0800 Subject: [PATCH] docs: center logo on home (#2559) --- docs/.vitepress/theme/custom.css | 8 ++++++++ docs/.vitepress/theme/index.mts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docs/.vitepress/theme/custom.css diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css new file mode 100644 index 000000000..d59dd22e2 --- /dev/null +++ b/docs/.vitepress/theme/custom.css @@ -0,0 +1,8 @@ +.VPContent { + display: flex; + align-items: center; +} + +.VPHome { + flex-grow: 1; +} \ No newline at end of file diff --git a/docs/.vitepress/theme/index.mts b/docs/.vitepress/theme/index.mts index f9bb62241..a7e01c7bb 100644 --- a/docs/.vitepress/theme/index.mts +++ b/docs/.vitepress/theme/index.mts @@ -2,7 +2,7 @@ import { h } from 'vue' import Theme from 'vitepress/theme' import TranslationStatus from 'vitepress-translation-helper/ui/TranslationStatus.vue' import status from '../translation-status.json' - +import './custom.css' const i18nLabels = { fr: 'La traduction est synchronisée avec les docs du ${date} dont le hash du commit est ${hash}.', }