1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

fixes #9855: account for modal overflow on body hiding scrollbar

This commit is contained in:
Mark Otto 2013-08-19 13:16:32 -07:00
parent c15b259f43
commit 3f87bf46e4
3 changed files with 15 additions and 1 deletions

View file

@ -5593,6 +5593,12 @@ button.close {
overflow: hidden; overflow: hidden;
} }
body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 15px;
}
.modal { .modal {
position: fixed; position: fixed;
top: 0; top: 0;

File diff suppressed because one or more lines are too long

View file

@ -10,6 +10,14 @@
// Kill the scroll on the body // Kill the scroll on the body
.modal-open { .modal-open {
overflow: hidden; overflow: hidden;
// Account for hiding of scrollbar
body&,
.navbar-fixed-top,
.navbar-fixed-bottom {
margin-right: 15px
}
} }
// Container that the modal scrolls within // Container that the modal scrolls within