1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Add Full-Screen size to Modal and Responsive variations for breakpoints

(Works from breakpoint and down)
This commit is contained in:
gsoti
2019-04-23 17:03:59 +03:00
committed by XhmikosR
parent 053d5d5e93
commit e138decdbb
4 changed files with 187 additions and 0 deletions

View File

@@ -85,6 +85,7 @@
flex-direction: column;
width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
// counteract the pointer-events: none; in the .modal-dialog
height: 100%;
color: $modal-content-color;
pointer-events: auto;
background-color: $modal-content-bg;
@@ -142,6 +143,7 @@
// when there should be a fixed height on `.modal-dialog`.
flex: 1 1 auto;
padding: $modal-inner-padding;
overflow-y: auto;
}
// Footer (for actions)
@@ -204,3 +206,17 @@
@include media-breakpoint-up(xl) {
.modal-xl { max-width: $modal-xl; }
}
.modal-fullscreen {
@include modalFullscreen();
}
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-down($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
.modal-fullscreen#{$infix}-down {
@include modalFullscreen();
}
}
}