2016-10-30 08:12:35 -07:00
|
|
|
<template>
|
|
|
|
<div>
|
2017-11-21 15:00:25 -08:00
|
|
|
<i :class='classes' class='favorite-button base09' @click.prevent='favorite()'/>
|
2016-10-30 08:12:35 -07:00
|
|
|
<span v-if='status.fave_num > 0'>{{status.fave_num}}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./favorite_button.js" ></script>
|
|
|
|
|
2016-11-13 08:52:20 -08:00
|
|
|
<style lang='scss'>
|
|
|
|
.favorite-button {
|
|
|
|
cursor: pointer;
|
2017-03-08 20:45:40 -08:00
|
|
|
animation-duration: 0.6s;
|
2016-11-13 08:52:20 -08:00
|
|
|
&:hover {
|
2017-01-15 06:44:56 -08:00
|
|
|
color: orange;
|
2016-11-13 08:52:20 -08:00
|
|
|
}
|
|
|
|
}
|
2017-11-24 13:55:46 -08:00
|
|
|
.favorite-button.icon-star {
|
2017-01-15 06:44:56 -08:00
|
|
|
color: orange;
|
2016-11-13 08:52:20 -08:00
|
|
|
}
|
2017-03-08 20:45:40 -08:00
|
|
|
|
2016-10-30 08:12:35 -07:00
|
|
|
</style>
|