acud
Version:
acg react 组件库
68 lines (54 loc) • 1.06 kB
text/less
@import '../../style/themes/index';
@import '../../style/mixins/index';
@backtop-prefix-cls: ~'@{acud-prefix}-back-top';
.@{backtop-prefix-cls} {
.reset-component();
position: fixed;
right: 100px;
bottom: 50px;
z-index: @zindex-back-top;
width: @back-top-width;
height: @back-top-width;
cursor: pointer;
&:empty {
display: none;
}
&-rtl {
right: auto;
left: 100px;
direction: rtl;
}
&-content {
width: @back-top-width;
height: @back-top-width;
overflow: hidden;
border-radius: 50%;
transition: all 0.3s;
.basic-config(@back-top-tp, @back-top-p);
&:hover {
transition: all 0.3s;
&::after {
background: #fff;
}
}
}
&-icon {
height: 100%;
& > span {
display: block;
height: 100%;
position: relative;
svg {
font-size: 20px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
}
}
&-fade-leave {
opacity: 0;
}
}
@import './responsive';