From 06b28991a75dcb0561937d6e316abe8ac5d438bb Mon Sep 17 00:00:00 2001 From: sauls8t Date: Mon, 4 Jun 2018 14:38:19 +0100 Subject: [PATCH] Stop background shift on modal open --- gui/app/styles/bootstrap.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gui/app/styles/bootstrap.scss b/gui/app/styles/bootstrap.scss index ed0b7e0f..637b7808 100644 --- a/gui/app/styles/bootstrap.scss +++ b/gui/app/styles/bootstrap.scss @@ -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; +// } +// }