Skip to content

Commit

Permalink
返回顶部
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Feb 13, 2021
1 parent 4b3bfa6 commit 232f89c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
<div class="nexmoe-post-right">
<% if (page.toc || theme.function.globalToc){ %>
<div class="nexmoe-fixed">
<a href="#"><button class="mdui-fab mdui-ripple"><i class="mdui-icon material-icons">add</i></button></a>
<div class="nexmoe-tool">
<a href="#"><button class="mdui-fab mdui-ripple"><i class="nexmoefont icon-top">top</i></button></a>
</div>
</div>
<%} %>
</div>
Expand Down
10 changes: 10 additions & 0 deletions source/css/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,16 @@ font.douyin {
top: 0;
}

.nexmoe-post-right .nexmoe-tool {
position absolute
bottom 20px
left 20px
}

.nexmoe-post-right .nexmoe-tool .mdui-fab {
background #fff
}

@media screen and (max-width:1024px) {
.nexmoe-post-right {
margin: $gutter 0px;
Expand Down

0 comments on commit 232f89c

Please sign in to comment.