aboutsummaryrefslogtreecommitdiff
path: root/less/modals.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-02-04 02:01:31 -0800
committerMark Otto <[email protected]>2014-02-04 02:01:31 -0800
commit07098d1bb7e02cc2b7f8bcbc94931fdedd30830b (patch)
treeb9e7604131e94b7ff6b869599c715acb97194055 /less/modals.less
parent952afba70dd06433e19bae190511e3dac2030725 (diff)
downloadbootstrap-07098d1bb7e02cc2b7f8bcbc94931fdedd30830b.tar.xz
bootstrap-07098d1bb7e02cc2b7f8bcbc94931fdedd30830b.zip
Fixes #12470: Scope large modal styles to minimum viewport width
Diffstat (limited to 'less/modals.less')
-rw-r--r--less/modals.less5
1 files changed, 3 insertions, 2 deletions
diff --git a/less/modals.less b/less/modals.less
index e7f3d726e..21cdee0f4 100644
--- a/less/modals.less
+++ b/less/modals.less
@@ -121,7 +121,6 @@
// Scale up the modal
@media (min-width: @screen-sm-min) {
-
// Automatically set modal's width for larger viewports
.modal-dialog {
width: @modal-md;
@@ -133,6 +132,8 @@
// Modal sizes
.modal-sm { width: @modal-sm; }
- .modal-lg { width: @modal-lg; }
+}
+@media (min-width: @screen-md-min) {
+ .modal-lg { width: @modal-lg; }
}