1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Stop background shift on modal open

This commit is contained in:
sauls8t 2018-06-04 14:38:19 +01:00
parent fca6cc7ede
commit 06b28991a7

View file

@ -109,6 +109,10 @@ $link-hover-decoration: none;
body.modal-open {
padding-right: 0 !important;
// Do not scroll body to top.
// See: https://stackoverflow.com/questions/21604674/bootstrap-modal-background-jumps-to-top-on-toggle/21881894
overflow: visible;
}
.modal-header-white {
@ -125,3 +129,11 @@ body.modal-open {
}
}
}
// Bootstrap override that removes gutter space on smaller screens
// @media (max-width: 1200px) {
// .container {
// width: 100%;
// max-width: none;
// }
// }