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:
parent
c15b259f43
commit
3f87bf46e4
6
dist/css/bootstrap.css
vendored
6
dist/css/bootstrap.css
vendored
@ -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;
|
||||
|
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
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user