Improved positioning of back-to-top button
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
e0edcffa6d
commit
d3f06bc1c5
|
@ -9,14 +9,40 @@
|
|||
border-bottom: 2px solid $light;
|
||||
}
|
||||
|
||||
// back-to-top button
|
||||
#back-to-top {
|
||||
cursor: pointer;
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
bottom: 40px;
|
||||
display:none;
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(sm) {
|
||||
#back-to-top {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-only(md) {
|
||||
#back-to-top {
|
||||
margin-left: 95%;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-only(lg) {
|
||||
#back-to-top {
|
||||
margin-left: 65%;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-only(xl) {
|
||||
#back-to-top {
|
||||
margin-left: 60%;
|
||||
}
|
||||
}
|
||||
|
||||
$navbarHeight: 58px;
|
||||
|
||||
.large {
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
{% include sidebar.html %}
|
||||
</div>
|
||||
</div>
|
||||
<button id="back-to-top"
|
||||
class="btn btn-primary btn-lg"
|
||||
title="Click to return to the start of the page" data-toggle="tooltip" data-placement="left">
|
||||
<span class="fas fa-chevron-up"></span>
|
||||
</button>
|
||||
</div>
|
||||
<button id="back-to-top"
|
||||
class="btn btn-primary btn-lg"
|
||||
title="Click to return to the start of the page" data-toggle="tooltip" data-placement="left">
|
||||
<span class="fas fa-chevron-up"></span>
|
||||
</button>
|
||||
</div>
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue