Skip to content

Commit be38438

Browse files
committed
v1.2.1
1 parent 36bdec4 commit be38438

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"vuepress-plugin-one-click-copy": "^1.0.2",
2222
"vuepress-plugin-thirdparty-search": "^1.0.2",
2323
"vuepress-plugin-zooming": "^1.1.7",
24-
"vuepress-theme-vdoing": "^1.2.0",
24+
"vuepress-theme-vdoing": "^1.2.1",
2525
"yamljs": "^0.3.0"
2626
},
2727
"dependencies": {

theme-vdoing/components/TagsBar.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default {
4040
},
4141
data() {
4242
return {
43+
tagBgColor: ['#11a8cd', '#F8B26A', '#67CC86', '#E15B64', '#F47E60', '#849B87'],
4344
tagStyleList: []
4445
}
4546
},
@@ -59,8 +60,8 @@ export default {
5960
},
6061
methods: {
6162
getTagStyle() {
62-
const r = Math.random()
63-
return r > 0.7 ? 'opacity: 0.7;' : r < 0.2 ? 'opacity: 0.6;' : ''
63+
const tagBgColor = this.tagBgColor
64+
return `background: ${tagBgColor[Math.floor(Math.random() * tagBgColor.length)]};}`
6465
}
6566
}
6667
}
@@ -74,10 +75,10 @@ export default {
7475
font-size 1.2rem
7576
.tags
7677
text-align justify
77-
padding .6rem .3rem .3rem .3rem
78-
margin 0 -0.3rem -0.3rem -0.3rem
78+
padding .6rem .5rem .5rem .5rem
79+
margin 0 -0.5rem -0.5rem -0.5rem
7980
a
80-
opacity .5
81+
opacity .7
8182
display inline-block
8283
padding .2rem .4rem
8384
transition all .4s
@@ -95,10 +96,10 @@ export default {
9596
&:hover
9697
opacity 1
9798
&.active
98-
background $accentColor
99-
color var(--mainBg)
100-
transform scale(1.1)
99+
box-shadow 0 0 5px rgba(0,0,0,0.2)
100+
transform scale(1.22)
101101
opacity 1
102+
text-shadow 1px 1px 0 rgba(0,0,0,0.2)
102103
&:hover
103104
text-decoration none
104105
</style>

theme-vdoing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-vdoing",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
55
"author": {
66
"name": "gaoyi(Evan) Xu"

0 commit comments

Comments
 (0)