From dd4417fe03f8152e48659962a493ff8e7fea8a6c Mon Sep 17 00:00:00 2001 From: ludanxer Date: Thu, 26 Sep 2019 01:00:57 +0800 Subject: [PATCH 1/3] fix dropdown link inconsistent ui with nav link --- .../theme-default/components/DropdownLink.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/@vuepress/theme-default/components/DropdownLink.vue b/packages/@vuepress/theme-default/components/DropdownLink.vue index dceb173d8b..5634e5b292 100644 --- a/packages/@vuepress/theme-default/components/DropdownLink.vue +++ b/packages/@vuepress/theme-default/components/DropdownLink.vue @@ -109,6 +109,11 @@ export default { .dropdown-title display block font-size 0.9rem + font-family inherit + cursor inherit + padding inherit + line-height 1.4rem + outline:none; background transparent border none font-weight 500 @@ -163,6 +168,11 @@ export default { .dropdown-wrapper &.open .dropdown-title margin-bottom 0.5rem + .dropdown-title + font-weight 600 + font-size inherit + &:hover + color $accentColor .nav-dropdown transition height .1s ease-out overflow hidden From f417933062d4ba5a71710c365b6ff95bfb5651e4 Mon Sep 17 00:00:00 2001 From: ludanxer Date: Thu, 26 Sep 2019 09:42:13 +0800 Subject: [PATCH 2/3] match coding style --- packages/@vuepress/theme-default/components/DropdownLink.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/theme-default/components/DropdownLink.vue b/packages/@vuepress/theme-default/components/DropdownLink.vue index 5634e5b292..3fa3723220 100644 --- a/packages/@vuepress/theme-default/components/DropdownLink.vue +++ b/packages/@vuepress/theme-default/components/DropdownLink.vue @@ -113,7 +113,7 @@ export default { cursor inherit padding inherit line-height 1.4rem - outline:none; + outline none background transparent border none font-weight 500 From ea281de6426c8b350f46047d678f95bb71ceeda8 Mon Sep 17 00:00:00 2001 From: ludanxer Date: Thu, 26 Sep 2019 19:46:49 +0800 Subject: [PATCH 3/3] bring outline back --- packages/@vuepress/theme-default/components/DropdownLink.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/@vuepress/theme-default/components/DropdownLink.vue b/packages/@vuepress/theme-default/components/DropdownLink.vue index 3fa3723220..7812984a7b 100644 --- a/packages/@vuepress/theme-default/components/DropdownLink.vue +++ b/packages/@vuepress/theme-default/components/DropdownLink.vue @@ -113,7 +113,6 @@ export default { cursor inherit padding inherit line-height 1.4rem - outline none background transparent border none font-weight 500