💄 Add new tool buttons in page side.

This commit is contained in:
凡梦星尘
2022-09-25 21:40:36 +08:00
parent 523c12f0ec
commit 4037ea0d68
16 changed files with 1191 additions and 46 deletions

View File

@@ -12,7 +12,7 @@
z-index: $zindex-5;
}
@import 'back-to-top';
@import 'tool-buttons';
@import 'reading-progress';
@import 'post';

View File

@@ -1,3 +1,3 @@
.mermaid {
.post-block .post-body .mermaid {
background: var(--highlight-foreground);
}

View File

@@ -1,6 +1,49 @@
.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;
}
}
@if $back2top_enable {
.back-to-top {
font-size: $b2t-font-size;
font-size: $font-size-smaller;
@if not $back2top_scrollpercent {
span {

View File

@@ -29,6 +29,16 @@
font-size: $font-size-smallest;
}
.google-translate {
display: flex;
justify-content: center;
i {
font-size: $font-size-larger;
margin: auto 0;
}
}
@if $footer_vendors_enable {
.vendors-list {
a {