-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
83 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="back-to-top"> | ||
<a href="#top" class="scroll"> | ||
<i class="fa fa-arrow-up" aria-hidden="true"></i> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.back-to-top { | ||
position: fixed; | ||
left: 50%; | ||
margin-left: 580px; | ||
bottom: 37px; | ||
background-color: #f8f8fd; | ||
visibility: hidden; | ||
opacity: 0; | ||
transition: 0.4s ease; | ||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.3), 0 0 30px rgba(10, 10, 0, 0.1) inset; | ||
a { | ||
display: block; | ||
background-color: #eee; | ||
width: 38px; | ||
height: 38px; | ||
line-height: 38px; | ||
text-align: center; | ||
font-size: 20px; | ||
color: #b4b4b4; | ||
} | ||
} | ||
.back-to-top-show{ | ||
visibility: visible; | ||
opacity: 0.7; | ||
} | ||
@media screen and (max-width:1200px) and (min-width: 770px) { | ||
.back-to-top { | ||
left: 50%; | ||
margin-left: 45.5%; | ||
} | ||
} | ||
@media screen and (max-width: 770px) { | ||
.back-to-top { | ||
right:2.5%; | ||
left: auto; | ||
// left: 50%; | ||
margin-left: 0px; | ||
a { | ||
width: 33px; | ||
height: 33px; | ||
line-height: 33px; | ||
text-align: center; | ||
font-size: 18px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,8 @@ | |
"index", | ||
"demo", | ||
"footer", | ||
"scrollbar" | ||
"scrollbar", | ||
"backToTop" | ||
; | ||
|
||
// 两个人在列车上相遇 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters