Skip to content

Commit

Permalink
fix(modal): update centered modal margins to align with BSV4.beta.3 u…
Browse files Browse the repository at this point in the history
…pdate
  • Loading branch information
tmorehouse committed Dec 12, 2017
1 parent aa5c03e commit f7e80a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/modal/modal.vue
Expand Up @@ -2,17 +2,24 @@
/*
This CSS can be removed once Bootstrap V4.beta.3 is released
https://github.com/twbs/bootstrap/pull/24510
Vertically centered modals are not suited to tall content (the header gets cut off)
Once BSV4.beta.3 is released, the script section can be moved into the modal.js file
V4.beta.3 will be changing modal margin to rem units
*/
.modal-dialog-centered {
display: flex;
align-items: center;
min-height: calc(100% - 30px);
/* min-height: calc(100% - (1rem * 2)); */
min-height: calc(100% - (10px * 2));
}
.modal-dialog-centered .modal-content {
width: 100%;
}
@media (min-width: 576px) {
.modal-dialog-centered {
/* min-height: calc(100% - (1.75rem * 2)); */
min-height: calc(100% - (30px * 2));
}
}
</style>

<script>
Expand Down

0 comments on commit f7e80a8

Please sign in to comment.