diff options
| author | gsoti <[email protected]> | 2019-04-23 17:03:59 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-04-01 10:05:43 +0300 |
| commit | e138decdbb3597813c762995753db52abfbc76fb (patch) | |
| tree | a061e5100e02d5769bab271daf227b701f99d863 /scss/_modal.scss | |
| parent | 053d5d5e93ba995ba6fda88679f8298e3053d868 (diff) | |
| download | bootstrap-e138decdbb3597813c762995753db52abfbc76fb.tar.xz bootstrap-e138decdbb3597813c762995753db52abfbc76fb.zip | |
Add Full-Screen size to Modal and Responsive variations for breakpoints
(Works from breakpoint and down)
Diffstat (limited to 'scss/_modal.scss')
| -rw-r--r-- | scss/_modal.scss | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scss/_modal.scss b/scss/_modal.scss index ed6ab4eb1..b91848d8b 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -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(); + } + } +} |
