Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(back-to-top): update back-to-top IXD #318

Merged
merged 4 commits into from
Apr 26, 2017
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layout/_partial/footer_top.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="toTop-wrap">
<div id="back-to-top" class="toTop-wrap">
<a href="#top" class="toTop">
<i class="material-icons footer_top-i">expand_less</i>
</a>
Expand Down
25 changes: 20 additions & 5 deletions source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2424,16 +2424,31 @@ a {
/* Footer_Top */
/**************/

.toTop-wrap {
#back-to-top{
display: block;
position: fixed;
bottom: 24px;
right: -41px;
transition: background-color .18s cubic-bezier(.6,0,.1,1),box-shadow .18s cubic-bezier(.6,0,.1,1),transform .18s cubic-bezier(.6,0,.1,1);
z-index: 8;
}
#back-to-top.btt-visible{
transform: translate(-64px, 0);
}
#back-to-top.btt-docked{
position: absolute;
bottom: 100px;
right: 34.61px;
z-index: 8
}
@media screen and (max-width: 840px) {
.toTop-wrap {
#back-to-top{
bottom: 24px;
}
#back-to-top.btt-visible{
transform: translate(-60px, 0);
}
#back-to-top.btt-docked{
position: absolute;
bottom: 180px;
right: 28px
}
}
.toTop {
Expand Down
Loading