mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
fix .modal-dialog-centered
on IE10/11
This commit is contained in:
parent
c04d60b88f
commit
6cca02f163
@ -54,6 +54,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: calc(100% - (#{$modal-dialog-margin} * 2));
|
min-height: calc(100% - (#{$modal-dialog-margin} * 2));
|
||||||
|
|
||||||
|
// Ensure `modal-dialog-centered` extends the full height of the view (IE10/11)
|
||||||
|
&::before {
|
||||||
|
display: block; // IE10
|
||||||
|
height: calc(100vh - (#{$modal-dialog-margin} * 2));
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actual modal
|
// Actual modal
|
||||||
@ -153,6 +160,11 @@
|
|||||||
|
|
||||||
.modal-dialog-centered {
|
.modal-dialog-centered {
|
||||||
min-height: calc(100% - (#{$modal-dialog-margin-y-sm-up} * 2));
|
min-height: calc(100% - (#{$modal-dialog-margin-y-sm-up} * 2));
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
height: calc(100vh - (#{$modal-dialog-margin-y-sm-up} * 2));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
|
Loading…
Reference in New Issue
Block a user