refactor: 悬浮按钮组件化

This commit is contained in:
ZiuChen
2022-09-04 15:41:48 +08:00
parent 8a783dc7b9
commit e8204cb729
5 changed files with 43 additions and 30 deletions

View File

@@ -0,0 +1,21 @@
.clip-float-btn {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
z-index: 99999;
bottom: 15px;
right: 15px;
height: 50px;
width: 50px;
cursor: pointer;
border-radius: 50%;
font-size: 20px;
background-color: @text-bg-color-lighter;
user-select: none;
&:hover {
color: @bg-color;
background-color: @primary-color;
transition: all 0.15s;
}
}