From ff7eb22f8d21fff6af71f88e2d22501e042d51c2 Mon Sep 17 00:00:00 2001 From: ludanxer Date: Fri, 20 Dec 2019 20:47:59 +0800 Subject: [PATCH 1/2] feat: add varible to config HomePage width --- .../core/lib/client/style/config.styl | 1 + .../theme-default/components/Home.vue | 2 +- packages/docs/docs/config/README.md | 20 +++++++++++++++---- packages/docs/docs/zh/config/README.md | 20 +++++++++++++++---- 4 files changed, 34 insertions(+), 9 deletions(-) diff --git a/packages/@vuepress/core/lib/client/style/config.styl b/packages/@vuepress/core/lib/client/style/config.styl index c480436ccc..08b709b0c5 100644 --- a/packages/@vuepress/core/lib/client/style/config.styl +++ b/packages/@vuepress/core/lib/client/style/config.styl @@ -12,6 +12,7 @@ $badgeErrorColor = #DA5961 $navbarHeight = 3.6rem $sidebarWidth = 20rem $contentWidth = 740px +$homePageWidth = 960px // responsive breakpoints $MQNarrow = 959px diff --git a/packages/@vuepress/theme-default/components/Home.vue b/packages/@vuepress/theme-default/components/Home.vue index 9ea2929e9b..8cc0519bc9 100644 --- a/packages/@vuepress/theme-default/components/Home.vue +++ b/packages/@vuepress/theme-default/components/Home.vue @@ -86,7 +86,7 @@ export default {