From 36bdec4f28bde3129dce0ff4c7935691da344df6 Mon Sep 17 00:00:00 2001
From: xugaoyi <894072666@qq.com>
Date: Sun, 7 Jun 2020 23:08:47 +0800
Subject: [PATCH] v1.2.0
---
docs/index.md | 8 ++---
package.json | 4 +--
theme-vdoing/components/Buttons.vue | 30 ++++++++++++++++---
theme-vdoing/components/CategoriesBar.vue | 34 ++++++++++++++++++----
theme-vdoing/components/CategoriesPage.vue | 8 ++---
theme-vdoing/components/Footer.vue | 2 +-
theme-vdoing/components/Home.vue | 12 ++++----
theme-vdoing/components/PostList.vue | 2 ++
theme-vdoing/components/TagsBar.vue | 23 +++++++++------
theme-vdoing/components/UpdateArticle.vue | 3 +-
theme-vdoing/layouts/Layout.vue | 3 +-
theme-vdoing/package.json | 2 +-
theme-vdoing/styles/custom-blocks.styl | 17 ++++++++++-
theme-vdoing/styles/index.styl | 2 +-
theme-vdoing/styles/mobile.styl | 1 +
theme-vdoing/styles/palette.styl | 2 +-
16 files changed, 112 insertions(+), 41 deletions(-)
diff --git a/docs/index.md b/docs/index.md
index 48e3a68c64..cf0bc5f7a8 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -22,14 +22,14 @@ features: # 可选的
imgUrl: /img/other.png
# 文章列表显示方式: detailed 默认,显示详细版文章列表(包括作者、分类、标签、摘要、分页等)| simple => 显示简约版文章列表(仅标题和日期)| none 不显示文章列表
-# postList: simple
+# postList: detailed
---
-
+ -->
+
diff --git a/package.json b/package.json
index 18d7eb47b9..3298ca51ac 100644
--- a/package.json
+++ b/package.json
@@ -14,14 +14,14 @@
"inquirer": "^7.1.0",
"json2yaml": "^1.1.0",
"moment": "^2.25.3",
- "vuepress": "^1.4.1",
+ "vuepress": "1.4.1",
"vuepress-plugin-baidu-autopush": "^1.0.1",
"vuepress-plugin-baidu-tongji": "^1.0.1",
"vuepress-plugin-demo-block": "^0.7.2",
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
- "vuepress-theme-vdoing": "^1.1.6",
+ "vuepress-theme-vdoing": "^1.2.0",
"yamljs": "^0.3.0"
},
"dependencies": {
diff --git a/theme-vdoing/components/Buttons.vue b/theme-vdoing/components/Buttons.vue
index 5f22057225..5c52ef6d09 100644
--- a/theme-vdoing/components/Buttons.vue
+++ b/theme-vdoing/components/Buttons.vue
@@ -22,7 +22,7 @@
@click="showModeBox = true"
>
-
+
- {
+ button.classList.remove('hover')
+ }, 150)
+ })
+ }
+
},
computed: {
showToTop () {
@@ -193,17 +209,23 @@ export default {
height 2.2rem
line-height 2.2rem
border-radius 50%
- box-shadow 0 2px 6px rgba(0,0,0,.25)
+ box-shadow 0 2px 6px rgba(0,0,0,.15)
margin-top .9rem
text-align center
cursor pointer
transition all .5s
background var(--blurBg)
- &:hover
+ &.hover
background $accentColor
box-shadow 0 0 15px $accentColor
&:before
color #fff
+ @media (any-hover: hover)
+ &:hover
+ background $accentColor
+ box-shadow 0 0 15px $accentColor
+ &:before
+ color #fff
.select-box
margin 0
padding .8rem 0
@@ -214,7 +236,7 @@ export default {
border 1px solid var(--borderColor)
width 120px
border-radius 6px
- box-shadow 0 0 30px lighten($accentColor, 40%)
+ box-shadow 0 0 15px rgba(255,255,255,.2)
li
list-style none
line-height 2rem
diff --git a/theme-vdoing/components/CategoriesBar.vue b/theme-vdoing/components/CategoriesBar.vue
index c36486db3d..507e6eda76 100644
--- a/theme-vdoing/components/CategoriesBar.vue
+++ b/theme-vdoing/components/CategoriesBar.vue
@@ -12,9 +12,9 @@
:class="{active: item.key === category}"
>
{{item.key}}
- ({{item.length}})
+ {{item.length}}
-
+
更多...
@@ -52,28 +52,52 @@ export default {
diff --git a/theme-vdoing/components/CategoriesPage.vue b/theme-vdoing/components/CategoriesPage.vue
index ad472b4781..b84fa8cd38 100644
--- a/theme-vdoing/components/CategoriesPage.vue
+++ b/theme-vdoing/components/CategoriesPage.vue
@@ -59,12 +59,12 @@ export default {
this.currentPage = Number(this.$route.query.p)
}
- // 增强用户体验
+ // 滚动条定位到当前分类(增强用户体验)
const cateEl = document.querySelector('.categories')
if (cateEl) {
- const activeEl = cateEl.querySelector('.active')
- const topVal = activeEl ? activeEl.offsetTop : 0
setTimeout(() => {
+ const activeEl = cateEl.querySelector('.active')
+ const topVal = activeEl ? activeEl.offsetTop : 0
cateEl.scrollTo({ top: topVal, behavior: 'smooth' })
}, 300)
}
@@ -128,5 +128,5 @@ export default {
@media (max-width: $MQMobile)
display block
.categories
- max-height 11.5rem
+ max-height 12.3rem
diff --git a/theme-vdoing/components/Footer.vue b/theme-vdoing/components/Footer.vue
index 746827ef38..f940cce5bf 100644
--- a/theme-vdoing/components/Footer.vue
+++ b/theme-vdoing/components/Footer.vue
@@ -12,7 +12,7 @@
-
+
Theme by Vdoing
| Copyright © {{ footer.createYear }}-{{ new Date().getFullYear() }}
diff --git a/theme-vdoing/components/Home.vue b/theme-vdoing/components/Home.vue
index 051a1dce87..03d3f5bc30 100644
--- a/theme-vdoing/components/Home.vue
+++ b/theme-vdoing/components/Home.vue
@@ -312,7 +312,7 @@ export default {
};
-