Skip to content
Snippets Groups Projects
Commit 89a23704 authored by Ivica Puljic's avatar Ivica Puljic Committed by Ivica Puljic
Browse files

Issue #3360708 by pivica: Improve positioning of to top block button

parent c9efbb01
No related branches found
No related tags found
No related merge requests found
......@@ -68,13 +68,19 @@
// Reset bottom margin so we are sure height is zero for this block
// on bigger screens where it is hidden.
margin-bottom: 0 !important;
// For the right value use the same value as in
// bs_lib/scroll-to-top.css so there are no movements when we
// transition from fixed to absolute.
padding-right: 1rem !important;
@include media-responsive-breakpoint-down() {
position: absolute;
top: 0;
right: 0;
// Prevent full width of a block for absolute position.
width: auto;
// Prevent full width of a block for absolute position. Use
// fit-content instead of auto to prevent iOS positioning problem
// and overflowing outside of screen horizontally.
width: fit-content;
.btn {
&:not(.bs-lib-scroll-to-top--fixed) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment