blog-source/themes/next/source/css/_common/components/back-to-top.styl
2022-03-15 20:46:31 +08:00

37 lines
635 B
Stylus

.back-to-top {
background: $b2t-bg-color;
bottom: $b2t-position-bottom;
box-sizing: border-box;
color: $b2t-color;
cursor: pointer;
left: $b2t-position-right;
opacity: $b2t-opacity;
padding: 0 6px;
position: fixed;
transition-property: bottom;
z-index: $zindex-3;
if (hexo-config('back2top.scrollpercent')) {
width: initial;
} else {
width: 24px;
span {
display: none;
}
}
&:hover {
color: $sidebar-highlight;
}
&.back-to-top-on {
bottom: $b2t-position-bottom-on;
}
+tablet-mobile() {
left: $b2t-position-right-mobile;
opacity: $b2t-opacity-hover;
}
}