Skip to content

Commit

Permalink
refactor: add more padding to scroll to top bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Jan 18, 2024
1 parent 1d66e07 commit 551f5bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@ jobs:
toolchain: stable
override: true

- name: Install mdbook-embedify
- name: Build book
run: |
cargo install mdbook-embedify --force --path .
cp example/assets/bin/* /usr/local/bin && chmod u+x /usr/local/bin/mdbook*
- name: Build book
run: sed -i 54d example/book.toml && mdbook build example
cargo build --release && mdbook build example
- uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion example/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ heading-split-level = 3
copy-js = true

[preprocessor.embedify]
command = "target/release/mdbook-embedify.exe"
command = "target/release/mdbook-embedify"
scroll-to-top.enable = true

announcement-banner.enable = true
Expand Down
1 change: 1 addition & 0 deletions templates/scroll-to-top.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
}
@media (min-width: 768px) {
.scroll-to-top {
bottom: 4rem;
right: calc(0.5rem + 90px + var(--page-padding));
}
.scroll-to-top:hover {
Expand Down

0 comments on commit 551f5bc

Please sign in to comment.