mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
fix(backTop): 优化 hover 样式
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div class="back-top" v-show="canTop" @click="handleScrollTop">
|
<div class="back-top" v-show="canTop" @click="handleScrollTop">
|
||||||
<img src="../assets/icons/arrow-top.svg" class="back-icon" alt="back-icon" />
|
<img src="../assets/icons/arrow-top.svg" alt="back-icon" />
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</template>
|
</template>
|
||||||
@@ -56,19 +56,19 @@ onMounted(() => {
|
|||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 0;
|
transition: all 0.3s linear;
|
||||||
transition: all 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-top :hover {
|
.back-top :hover {
|
||||||
border: 5px solid #4b5366;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s;
|
transform: scale(0.9);
|
||||||
|
transition: all 0.3s linear;
|
||||||
|
box-shadow: 0 0 10px 5px #546d8b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-icon {
|
.back-top img {
|
||||||
transition: all 0.3s;
|
transition: all 0.3s linear;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user