mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
Fixes #12470: Scope large modal styles to minimum viewport width
This commit is contained in:
2
dist/css/bootstrap.css
vendored
2
dist/css/bootstrap.css
vendored
@@ -5197,6 +5197,8 @@ button.close {
|
|||||||
.modal-sm {
|
.modal-sm {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 992px) {
|
||||||
.modal-lg {
|
.modal-lg {
|
||||||
width: 900px;
|
width: 900px;
|
||||||
}
|
}
|
||||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -121,7 +121,6 @@
|
|||||||
|
|
||||||
// Scale up the modal
|
// Scale up the modal
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
|
|
||||||
// Automatically set modal's width for larger viewports
|
// Automatically set modal's width for larger viewports
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
width: @modal-md;
|
width: @modal-md;
|
||||||
@@ -133,6 +132,8 @@
|
|||||||
|
|
||||||
// Modal sizes
|
// Modal sizes
|
||||||
.modal-sm { width: @modal-sm; }
|
.modal-sm { width: @modal-sm; }
|
||||||
.modal-lg { width: @modal-lg; }
|
}
|
||||||
|
|
||||||
|
@media (min-width: @screen-md-min) {
|
||||||
|
.modal-lg { width: @modal-lg; }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user