amis2/packages/amis-editor-core/scss/_backTop.scss
2betop cac01a3018 调整为 monorepo
Change-Id: I06342cb12229885daf8e6fa2978f4e49ea0c49a2
2022-06-16 14:49:34 +08:00

56 lines
989 B
SCSS

.editor-backTop {
position: fixed;
right: 30px;
bottom: 32px;
z-index: 10000;
width: 32px;
height: 32px;
margin: 0;
padding: 0;
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
cursor: pointer;
visibility: visible;
transition: all 0.3s;
&.hidden {
visibility: hidden;
}
}
.editor-backTop:empty {
display: none;
}
.backTop-content {
width: 40px;
height: 40px;
overflow: hidden;
color: #fff;
text-align: center;
background-color: rgba($Editor-theme, 0.85);
border-radius: 20px;
transition: all 0.3s;
}
.backTop-content:hover {
background-color: $Editor-theme;
transition: all 0.3s;
}
.backTop-icon {
font-size: 20px;
line-height: 40px;
}
@media screen and (max-width: 768px) {
.editor-backTop {
right: 60px;
}
}
@media screen and (max-width: 480px) {
.editor-backTop {
right: 20px;
}
}