|
|
@@ -1,9 +1,15 @@
|
|
|
<template>
|
|
|
- <div class="icon" :title="title ? title : ''"><span>{{unicode}}</span></div>
|
|
|
+ <div class="icon" :title="title ? title : ''">
|
|
|
+ <span>{{unicode}}</span>
|
|
|
+ <ripple></ripple>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import Ripple from '@/components/Ripple'
|
|
|
+
|
|
|
export default {
|
|
|
+ components: { Ripple },
|
|
|
props: ['unicode', 'title']
|
|
|
}
|
|
|
</script>
|
|
|
@@ -12,6 +18,7 @@ export default {
|
|
|
@import '~@/style/theme.scss';
|
|
|
|
|
|
.icon {
|
|
|
+ position: relative;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
@@ -29,6 +36,7 @@ export default {
|
|
|
font-size: 0;
|
|
|
color: $icon-normal-color;
|
|
|
transition: box-shadow 0.25s, all 0.2s;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
& > span {
|
|
|
font-size: 24px;
|
|
|
@@ -42,7 +50,6 @@ export default {
|
|
|
|
|
|
&:active {
|
|
|
color: darken($icon-hover-color, 10);
|
|
|
- background: lighten($icon-hover-color, 27);
|
|
|
box-shadow: 0 1px 0 0 rgba(0, 0, 0, .1);
|
|
|
}
|
|
|
}
|