From 0ec13d6d7b0639f6d7bbc53a903f7921092f5d6a Mon Sep 17 00:00:00 2001 From: reco_luan Date: Wed, 16 Oct 2019 20:21:47 +0800 Subject: [PATCH 1/2] style: change valine style --- components/HomeBlog.vue | 1 - components/Page.vue | 4 +-- styles/theme.styl | 62 ++++++++++++++++++++++++++++++++++++----- 3 files changed, 57 insertions(+), 10 deletions(-) diff --git a/components/HomeBlog.vue b/components/HomeBlog.vue index 78b15a3..fed9e59 100644 --- a/components/HomeBlog.vue +++ b/components/HomeBlog.vue @@ -148,7 +148,6 @@ export default { } }, mounted () { - console.log(this) this.recoShow = true }, methods: { diff --git a/components/Page.vue b/components/Page.vue index cf82d2e..637a538 100644 --- a/components/Page.vue +++ b/components/Page.vue @@ -228,7 +228,7 @@ function flatten (items, res) { @require '../styles/loadMixin.styl' .page - padding-top 6rem + padding-top 5rem padding-bottom 2rem display block #time-line { @@ -238,7 +238,7 @@ function flatten (items, res) { .page-title max-width: 740px; margin: 0 auto; - padding: 0rem 2.5rem; + padding: 1rem 2.5rem; .page-edit @extend $wrapper padding-top 1rem diff --git a/styles/theme.styl b/styles/theme.styl index bd1cf63..40c9ea1 100644 --- a/styles/theme.styl +++ b/styles/theme.styl @@ -113,7 +113,7 @@ h1, h2, h3, h4, h5, h6 padding-top ($navbarHeight + 1rem) margin-bottom 0 &:first-child - margin-top -1.5rem + margin-top -3.5rem margin-bottom 1rem + p, + pre, + .custom-block margin-top 2rem @@ -121,7 +121,7 @@ h1, h2, h3, h4, h5, h6 opacity: 1 h1 - font-size 2.2rem + font-size 1.95rem h2 font-size 1.65rem @@ -211,11 +211,11 @@ th, td ::-webkit-scrollbar-thumb:horizontal width: 5px; background-color: rgba(125, 125, 125, 0.7); - -webkit-border-radius: 6px; + -webkit-border-radius: 6px; /************** 流程图的滚动条 **************/ .vuepress-flowchart - overflow: auto + overflow: auto /************** 腾讯 404 公益 **************/ @@ -228,11 +228,59 @@ th, td padding: 6px 20px!important text-decoration: none!important border-radius: 4px - } + } } @media screen and (max-width: 720px) { .mod_404 .desc { margin: 50px 0 - } -} \ No newline at end of file + } +} + +/************** 评论功能 **************/ + +.comments-wrapper + .valine-wrapper + #valine.v + .vwrap + border-radius: 0 + border-bottom: 1px solid #ddd + .vcontrol + .vsubmit + background: #fff + .vinfo + padding-left: .6rem + .vlist + padding: 0 .6rem + border-radius: .2rem + .vcard + .vimg + border-radius: .6rem + box-shadow: 0 1px 6px 0 rgba(0,0,0,0.2) + border: none + .vh + .vhead + .vsys + box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2) + .vmeta + .vat + background: #f2f2f2 + box-shadow: 0 1px 4px 0 rgba(0,0,0,0.2) + border-radius: .2rem + padding: 0 .4rem + color: #313131 + border: 1px solid #ededed + .vcontent + background: #f2f2f2 + box-shadow: 0 1px 4px 0 rgba(0,0,0,0.2) + border-radius: .2rem + margin-right: 3.6rem + padding-top: .1rem + padding-left: .6rem + padding-right: .6rem + padding-bottom: 0.05rem + p .at + color: #1abc9c + .info + padding-right: .6rem + From b4560bf4bce5ceaaf29cac196bf4a7f1c7884365 Mon Sep 17 00:00:00 2001 From: reco_luan Date: Thu, 17 Oct 2019 14:28:37 +0800 Subject: [PATCH 2/2] style: ununify styles Include box-shadow/text-shadow/border-radius. --- components/AlgoliaSearchBox.vue | 3 ++- components/DropdownLink.vue | 6 ++++-- components/Home.vue | 3 ++- components/HomeBlog.vue | 12 +++++++----- components/Navbar.vue | 4 +++- components/NoteAbstract.vue | 7 ++++--- components/Password.vue | 15 ++++++++------- components/TagList.vue | 8 +++++--- components/Theme/ThemeOptions.vue | 11 ++--------- components/Theme/index.vue | 3 ++- global-components/Badge.vue | 5 +++-- layouts/Category.vue | 9 +++++---- styles/colorMixin.styl | 2 +- styles/recoConfig.styl | 6 +++++- styles/theme.styl | 31 ++++++++++++++++++++----------- 15 files changed, 73 insertions(+), 52 deletions(-) diff --git a/components/AlgoliaSearchBox.vue b/components/AlgoliaSearchBox.vue index 41b62af..92ea648 100644 --- a/components/AlgoliaSearchBox.vue +++ b/components/AlgoliaSearchBox.vue @@ -60,6 +60,7 @@ export default { diff --git a/components/Home.vue b/components/Home.vue index 05159e8..90c0802 100644 --- a/components/Home.vue +++ b/components/Home.vue @@ -98,6 +98,7 @@ export default { \ No newline at end of file + diff --git a/components/TagList.vue b/components/TagList.vue index b29b93b..3addd07 100644 --- a/components/TagList.vue +++ b/components/TagList.vue @@ -45,6 +45,8 @@ export default { \ No newline at end of file + diff --git a/components/Theme/ThemeOptions.vue b/components/Theme/ThemeOptions.vue index 1a305b2..fa0a92a 100755 --- a/components/Theme/ThemeOptions.vue +++ b/components/Theme/ThemeOptions.vue @@ -65,6 +65,7 @@ export default { \ No newline at end of file + diff --git a/styles/colorMixin.styl b/styles/colorMixin.styl index 5ee02f6..9b14eb8 100644 --- a/styles/colorMixin.styl +++ b/styles/colorMixin.styl @@ -14,7 +14,7 @@ color-mode(accountColor , colorName) &:focus border-color: accountColor!important; .navbar - box-shadow: 0 1px 6px 0 rgba(32,33,36,.28) + box-shadow: $boxShadow .nav-links a:hover, .nav-links a.router-link-active, .nav-links a:hover .iconfont, diff --git a/styles/recoConfig.styl b/styles/recoConfig.styl index 64a62b4..3c24188 100644 --- a/styles/recoConfig.styl +++ b/styles/recoConfig.styl @@ -1,10 +1,14 @@ // colors $accentColor = #424242 $textColor = #232321 +$boxShadow = 0 1px 6px 0 rgba(0, 0, 0, 0.2) +$boxShadowHover = 0 2px 16px 0 rgba(0, 0, 0, 0.2) +$textShadow = 0 2px 4px rgba(0, 0, 0, 0.2); +$borderRadius = .25rem $themePicker = { red: #f26d6d, blue: #2196f3, green: #3eaf7c, orange: #fb9b5f -} \ No newline at end of file +} diff --git a/styles/theme.styl b/styles/theme.styl index 40c9ea1..55ae664 100644 --- a/styles/theme.styl +++ b/styles/theme.styl @@ -10,6 +10,7 @@ html, body padding 0 margin 0 + text-shadow: $textShadow body font-family Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif -webkit-font-smoothing antialiased @@ -196,7 +197,7 @@ th, td /************** 滚动条 **************/ ::-webkit-scrollbar - width: 5px; + width: 6px; height: 5px; ::-webkit-scrollbar-track-piece @@ -243,8 +244,8 @@ th, td .valine-wrapper #valine.v .vwrap - border-radius: 0 - border-bottom: 1px solid #ddd + background: #f2f2f2 + box-shadow: $boxShadow .vcontrol .vsubmit background: #fff @@ -252,28 +253,28 @@ th, td padding-left: .6rem .vlist padding: 0 .6rem - border-radius: .2rem + border-radius: $borderRadius .vcard .vimg - border-radius: .6rem - box-shadow: 0 1px 6px 0 rgba(0,0,0,0.2) + border-radius: $borderRadius + box-shadow: $boxShadow border: none .vh .vhead .vsys - box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2) + box-shadow: $boxShadow .vmeta .vat background: #f2f2f2 - box-shadow: 0 1px 4px 0 rgba(0,0,0,0.2) - border-radius: .2rem + box-shadow: $boxShadow + border-radius: $borderRadius padding: 0 .4rem color: #313131 border: 1px solid #ededed .vcontent background: #f2f2f2 - box-shadow: 0 1px 4px 0 rgba(0,0,0,0.2) - border-radius: .2rem + box-shadow: $boxShadow + border-radius: $borderRadius margin-right: 3.6rem padding-top: .1rem padding-left: .6rem @@ -284,3 +285,11 @@ th, td .info padding-right: .6rem +/************** 分页 **************/ +.pagation + .pagation-list + .jump, .jumpinp input + box-shadow: $boxShadow + +.search-box input + border-radius: $borderRadius