Skip to content

Commit 3358c48

Browse files
fix: images and styling for one-time donation buttons (vuejs#819)
1 parent 7198ad4 commit 3358c48

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

src/.vuepress/components/support/Coins.vue

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,18 @@ export default {
5454
}
5555
}
5656
}),
57-
created () {
58-
if (typeof window === 'undefined') return
57+
mounted () {
58+
this.updateType()
5959
60-
this.type = window.location.hash.slice(1)
61-
window.addEventListener('hashchange', function () {
60+
window.addEventListener('hashchange', this.updateType)
61+
},
62+
beforeDestroy () {
63+
window.removeEventListener('hashchange', this.updateType)
64+
},
65+
methods: {
66+
updateType () {
6267
this.type = window.location.hash.slice(1)
63-
})
68+
}
6469
}
6570
}
6671
</script>
@@ -74,7 +79,12 @@ export default {
7479
7580
a {
7681
margin: 20px;
77-
color: $medium;
82+
color: $textColor;
83+
text-decoration: none !important;
84+
85+
&:hover {
86+
color: $accentColor;
87+
}
7888
}
7989
8090
svg {
491 Bytes
Loading
487 Bytes
Loading
495 Bytes
Loading
477 Bytes
Loading

0 commit comments

Comments
 (0)