Skip to content

Commit abc9234

Browse files
authored
Fixed Bottom to top button in homepage (#759)
* added scroll-top * added scroll-top
1 parent dd4f616 commit abc9234

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

css/custom.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,21 @@ nav{
210210
display: flex;
211211
flex-wrap: wrap;
212212
}
213+
214+
.scroll-top{
215+
position: relative;
216+
float: right;
217+
right: 20px;
218+
top: -40px;
219+
font-size: 10px;
220+
border: none;
221+
z-index: 99;
222+
outline: none;
223+
background-color: rgba(0, 0, 0, 0.4);
224+
cursor: pointer;
225+
color: white;
226+
padding: 10px;
227+
}
228+
.scroll-top:hover{
229+
background-color: rgba(0, 0, 0, 0.8);
230+
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ <h1>Friends and Partners</h1>
16451645
</div>
16461646
</div>
16471647
<a href="javascript:" id="return-to-top">
1648-
<span class="glyphicon glyphicon-chevron-up" style="font-size:20px"></span>
1648+
<span class="glyphicon glyphicon-chevron-up scroll-top" style="font-size:20px"></span>
16491649
</a>
16501650
</footer>
16511651
</div>

0 commit comments

Comments
 (0)