👷 🐛 Add widgets content.

This commit is contained in:
凡梦星尘
2022-05-28 15:48:52 +08:00
parent ce6daa22b8
commit 035c908b33
9 changed files with 52 additions and 17 deletions

View File

@@ -1,8 +1,8 @@
@if $reading_progress_enable {
.reading-progress-bar {
--progress: 0;
background: convert($reading_progress_color);
height: convert($reading_progress_height);
background: $reading_progress_color;
height: $reading_progress_height;
position: fixed;
z-index: $zindex-5;

View File

@@ -3,22 +3,31 @@
border-bottom: 0;
position: fixed;
top: -10px;
transition: top .3s;
@include sidebar-toggle-position(true);
-moz-transition:top .3s;
-webkit-transition:top .3s;
-o-transition:top .3s;
@if not $github_banner_enable {
@include sidebar-toggle-position(true);
} @else {
left: 30px;
}
@include tablet-mobile() {
display: none;
}
&::before {
color: convert($bookmark_color);
color: $bookmark_color;
font-size: 32px;
line-height: 1;
@include font-family-icons('\f02e');
}
}
.book-mark-link:hover, .book-mark-link-fixed {
top: -2px;
&:hover {
top: 0px;
}
}
}

View File

@@ -1,7 +1,7 @@
@if $pdf_enable {
.pdfobject-container {
iframe, embed {
height: convert($pdf_height);
height: $pdf_height;
width: 100%;
}
}

View File

@@ -125,9 +125,7 @@
}
@mixin sidebar-toggle-position($reverse) {
// TODO how use nth function.
//$alignment : list.nth(sidebar-toggle-alignment($reverse), 0);
$alignment : 0;
$alignment : nth(sidebar-toggle-alignment($reverse), 1);
#{$alignment}: $b2t-position-right;
@include tablet-mobile() {
#{$alignment}: $b2t-position-right-mobile;