0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01: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;
}
body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 15px;
}
.modal {
position: fixed;
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
.modal-open {
overflow: hidden;
// Account for hiding of scrollbar
body&,
.navbar-fixed-top,
.navbar-fixed-bottom {
margin-right: 15px
}
}
// Container that the modal scrolls within