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:
parent
c15b259f43
commit
3f87bf46e4
3 changed files with 15 additions and 1 deletions
6
dist/css/bootstrap.css
vendored
6
dist/css/bootstrap.css
vendored
|
@ -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;
|
||||||
|
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue