This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +39
-34
lines changed Expand file tree Collapse file tree 1 file changed +39
-34
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<li class =" post-tag" >
3
- <router-link :to =" '/tag/' + tag" > {{ tag }} </router-link >
3
+ <router-link :to =" '/tag/' + tag" >
4
+ <span >{{ tag }}</span >
5
+ </router-link >
4
6
</li >
5
7
</template >
6
8
@@ -18,48 +20,51 @@ export default {
18
20
19
21
<style scoped lang="stylus">
20
22
.post-tag
21
- background-color $postTagBgColor
22
- border-radius 3px 0 0 3px
23
- height 26px
24
- padding 0 20px 0 23px
25
- position relative
26
- cursor pointer
23
+ height 26px
27
24
28
25
& :not (:last-child )
29
26
margin-right 10px
30
27
31
28
a
32
- color $postTagColor
29
+ background-color $postTagBgColor
30
+ border-radius 3px 0 0 3px
31
+ padding 0 20px 0 23px
32
+ position relative
33
33
text-decoration none
34
- transition color 0.2s
34
+ height 26px
35
+ display inline-block
35
36
36
- & :before
37
- position absolute
38
- left 10px
39
- top 10px
40
- background #f f f
41
- border-radius 50%
42
- box-shadow inset 0 1px rgba (0 , 0 , 0 , 0.25 )
43
- content ''
44
- height 6px
45
- width 6px
37
+ span
38
+ color $postTagColor
39
+ transition color 0.2s
46
40
47
- & :after
48
- position absolute
49
- right 0
50
- top 0
51
- background $bgColor
52
- border-bottom 13px solid transparent
53
- border-left 10px solid $postTagBgColor
54
- border-top 13px solid transparent
55
- content ''
56
-
57
- & :hover
58
- background-color $accentColor
41
+ & :before
42
+ position absolute
43
+ left 10px
44
+ top 10px
45
+ background #f f f
46
+ border-radius 50%
47
+ box-shadow inset 0 1px rgba (0 , 0 , 0 , 0.25 )
48
+ content ''
49
+ height 6px
50
+ width 6px
59
51
60
52
& :after
61
- border-left-color $accentColor
53
+ position absolute
54
+ right 0
55
+ top 0
56
+ background $bgColor
57
+ border-bottom 13px solid transparent
58
+ border-left 10px solid $postTagBgColor
59
+ border-top 13px solid transparent
60
+ content ''
61
+
62
+ & :hover
63
+ background-color $accentColor
64
+
65
+ & :after
66
+ border-left-color $accentColor
62
67
63
- a
64
- color #f f f
68
+ span
69
+ color #f f f
65
70
</style >
You can’t perform that action at this time.
0 commit comments