From 7e1f420edf861e194ebb18dc0e5d7b78de3c6099 Mon Sep 17 00:00:00 2001 From: Ben Hong Date: Thu, 16 Jul 2020 21:18:28 -0400 Subject: [PATCH 1/5] feature (#201): increase weight on nav links --- src/.vuepress/theme/components/DropdownLink.vue | 2 +- src/.vuepress/theme/components/NavLinks.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/.vuepress/theme/components/DropdownLink.vue b/src/.vuepress/theme/components/DropdownLink.vue index 0ca7137ed0..b1f814e179 100644 --- a/src/.vuepress/theme/components/DropdownLink.vue +++ b/src/.vuepress/theme/components/DropdownLink.vue @@ -122,7 +122,7 @@ export default { line-height 1.4rem background transparent border none - font-weight 500 + font-weight 600 color $textColor &:hover border-color transparent diff --git a/src/.vuepress/theme/components/NavLinks.vue b/src/.vuepress/theme/components/NavLinks.vue index 2656ae2752..82a3a8369e 100644 --- a/src/.vuepress/theme/components/NavLinks.vue +++ b/src/.vuepress/theme/components/NavLinks.vue @@ -128,6 +128,7 @@ export default { a line-height 1.4rem color inherit + font-weight 600 &:hover, &.router-link-active color $accentColor .nav-item From 0a4b35fc0694e99046256268d5494bceaa098fb0 Mon Sep 17 00:00:00 2001 From: Ben Hong Date: Thu, 16 Jul 2020 21:29:34 -0400 Subject: [PATCH 2/5] feature (#201): Update BetaBanner to be thinner and less intrusive to the reading experience --- src/.vuepress/components/BetaBanner.vue | 17 +++++++++++++---- src/.vuepress/theme/components/Sidebar.vue | 2 +- src/.vuepress/theme/styles/index.styl | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/.vuepress/components/BetaBanner.vue b/src/.vuepress/components/BetaBanner.vue index ca2906f0fe..3b77c21034 100644 --- a/src/.vuepress/components/BetaBanner.vue +++ b/src/.vuepress/components/BetaBanner.vue @@ -5,17 +5,18 @@ export default {} diff --git a/src/.vuepress/theme/components/Sidebar.vue b/src/.vuepress/theme/components/Sidebar.vue index 2ee765aae0..fe1f8b1f7e 100644 --- a/src/.vuepress/theme/components/Sidebar.vue +++ b/src/.vuepress/theme/components/Sidebar.vue @@ -42,7 +42,7 @@ export default { font-size 1.1em padding 0.5rem 0 0.5rem 1.5rem & > .sidebar-links - padding calc(1.5rem + 3rem) 0 // add $betaBannerHeight + padding 1.5rem 0 & > li > a.sidebar-link font-size 1.1em line-height 1.7 diff --git a/src/.vuepress/theme/styles/index.styl b/src/.vuepress/theme/styles/index.styl index 5a0d16ae99..a7d4f7c7c2 100644 --- a/src/.vuepress/theme/styles/index.styl +++ b/src/.vuepress/theme/styles/index.styl @@ -23,7 +23,7 @@ body .navbar position fixed z-index 20 - top 0 + top 37px left 0 right 0 height $navbarHeight From 00ada13b8b7162b6d2d90c4b3d1d37f0d61fdda7 Mon Sep 17 00:00:00 2001 From: Ben Hong Date: Fri, 17 Jul 2020 11:36:35 -0400 Subject: [PATCH 3/5] feature (#201): update font weights to 500 --- src/.vuepress/config.js | 2 +- .../theme/components/DropdownLink.vue | 2 +- src/.vuepress/theme/components/NavLinks.vue | 40 ++++++------------- 3 files changed, 15 insertions(+), 29 deletions(-) diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index b77053f843..6f17e179e9 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -159,7 +159,7 @@ module.exports = { 'link', { href: - 'https://fonts.googleapis.com/css?family=Inter:300,400,600|Open+Sans:400,600;display=swap', + 'https://fonts.googleapis.com/css?family=Inter:300,400,500,600|Open+Sans:400,600;display=swap', rel: 'stylesheet' } ], diff --git a/src/.vuepress/theme/components/DropdownLink.vue b/src/.vuepress/theme/components/DropdownLink.vue index b1f814e179..0ca7137ed0 100644 --- a/src/.vuepress/theme/components/DropdownLink.vue +++ b/src/.vuepress/theme/components/DropdownLink.vue @@ -122,7 +122,7 @@ export default { line-height 1.4rem background transparent border none - font-weight 600 + font-weight 500 color $textColor &:hover border-color transparent diff --git a/src/.vuepress/theme/components/NavLinks.vue b/src/.vuepress/theme/components/NavLinks.vue index 82a3a8369e..e0f308391c 100644 --- a/src/.vuepress/theme/components/NavLinks.vue +++ b/src/.vuepress/theme/components/NavLinks.vue @@ -1,22 +1,9 @@