2022-09-25 21:40:36 +08:00
|
|
|
.tool-buttons {
|
|
|
|
|
|
|
|
@include sidebar-toggle();
|
|
|
|
background: var(--body-bg-color);
|
|
|
|
bottom: 55px;
|
|
|
|
z-index: 100;
|
|
|
|
filter: alpha(opacity=0);
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
.button {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: $tool-btn-bg;
|
|
|
|
color: $tool-btn-color;
|
|
|
|
text-align: center;
|
|
|
|
font-size: $font-size-larger;
|
|
|
|
line-height: 35px;
|
|
|
|
padding: 0;
|
|
|
|
outline: 0;
|
|
|
|
border: none;
|
|
|
|
text-transform: none;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: $tool-btn-opacity;
|
|
|
|
touch-action: manipulation;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $tool-btn-hover-fore-color;
|
|
|
|
opacity: $tool-btn-opacity-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.goto-comments {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.goto-comments-on {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-21 21:48:27 +08:00
|
|
|
@if $back2top_enable {
|
2022-05-21 17:47:26 +08:00
|
|
|
.back-to-top {
|
2022-09-25 21:40:36 +08:00
|
|
|
font-size: $font-size-smaller;
|
2022-05-21 17:47:26 +08:00
|
|
|
|
2022-05-21 21:48:27 +08:00
|
|
|
@if not $back2top_scrollpercent {
|
2022-05-21 17:47:26 +08:00
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-21 21:48:27 +08:00
|
|
|
@if $back2top_sidebar {
|
2022-05-21 17:47:26 +08:00
|
|
|
margin: 20px - $sidebar-offset -10px -20px;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity $transition-ease;
|
|
|
|
|
|
|
|
&.back-to-top-on {
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: $b2t-opacity;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: $b2t-opacity-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} @else {
|
|
|
|
bottom: $b2t-position-bottom;
|
|
|
|
box-sizing: border-box;
|
|
|
|
color: $b2t-color;
|
|
|
|
padding: 0 6px;
|
|
|
|
transition: bottom $transition-ease;
|
|
|
|
@include sidebar-toggle();
|
|
|
|
|
2022-05-21 21:48:27 +08:00
|
|
|
@if not $back2top_scrollpercent {
|
2022-05-21 17:47:26 +08:00
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $sidebar-highlight;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.back-to-top-on {
|
|
|
|
bottom: $b2t-position-bottom-on;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|