Skip to content

Commit f7e80a8

Browse files
authored
fix(modal): update centered modal margins to align with BSV4.beta.3 update
1 parent aa5c03e commit f7e80a8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/modal/modal.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,24 @@
22
/*
33
This CSS can be removed once Bootstrap V4.beta.3 is released
44
https://github.com/twbs/bootstrap/pull/24510
5-
Vertically centered modals are not suited to tall content (the header gets cut off)
65
Once BSV4.beta.3 is released, the script section can be moved into the modal.js file
6+
V4.beta.3 will be changing modal margin to rem units
77
*/
88
.modal-dialog-centered {
99
display: flex;
1010
align-items: center;
11-
min-height: calc(100% - 30px);
11+
/* min-height: calc(100% - (1rem * 2)); */
12+
min-height: calc(100% - (10px * 2));
1213
}
1314
.modal-dialog-centered .modal-content {
1415
width: 100%;
1516
}
17+
@media (min-width: 576px) {
18+
.modal-dialog-centered {
19+
/* min-height: calc(100% - (1.75rem * 2)); */
20+
min-height: calc(100% - (30px * 2));
21+
}
22+
}
1623
</style>
1724

1825
<script>

0 commit comments

Comments
 (0)