Fixed position of back-to-top button on pages without sidebar
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
1591e404f4
commit
66232dcad9
|
@ -98,6 +98,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1300px - .02) {
|
||||||
|
#back-to-top.no-sidebar {
|
||||||
|
position: fixed;
|
||||||
|
right: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1300px) {
|
||||||
|
#back-to-top.no-sidebar {
|
||||||
|
margin-left: 102%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$navbarHeight: 58px;
|
$navbarHeight: 58px;
|
||||||
|
|
||||||
// sticky sidebar
|
// sticky sidebar
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<button id="back-to-top"
|
<button id="back-to-top"
|
||||||
class="btn btn-primary btn-lg"
|
class="btn btn-primary btn-lg{% if page.hidesidebar %} no-sidebar{% endif %}"
|
||||||
title="Click to return to the start of the page" data-toggle="tooltip" data-placement="left">
|
title="Click to return to the start of the page" data-toggle="tooltip" data-placement="left">
|
||||||
<span class="fas fa-chevron-up"></span>
|
<span class="fas fa-chevron-up"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue