aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-27 19:38:05 -0700
committerMark Otto <[email protected]>2013-07-27 19:38:05 -0700
commitce5737870545b908da0dd0744906edd12a9c126c (patch)
treef3dd8c7dab6172124165a6a99ac9c8268fa6f8a2 /less
parent5aad25b34be47f59b78ee070d1b37cf2b6a8766a (diff)
downloadbootstrap-ce5737870545b908da0dd0744906edd12a9c126c.tar.xz
bootstrap-ce5737870545b908da0dd0744906edd12a9c126c.zip
fixes #8665: have modals use auto margin on sides and widen it instead of positioning and negative margin
Diffstat (limited to 'less')
-rw-r--r--less/modals.less9
1 files changed, 3 insertions, 6 deletions
diff --git a/less/modals.less b/less/modals.less
index 8b7349cef..996db6c7f 100644
--- a/less/modals.less
+++ b/less/modals.less
@@ -34,10 +34,8 @@
// Shell div to position the modal with bottom padding
.modal-dialog {
- position: relative;
- top: 0;
- left: 0;
- right: 0;
+ margin-left: auto;
+ margin-right: auto;
width: auto;
padding: 10px;
z-index: (@zindex-modal-background + 10);
@@ -124,8 +122,7 @@
.modal-dialog {
left: 50%;
right: auto;
- width: 560px;
- margin-left: -280px;
+ width: 600px;
padding-top: 30px;
padding-bottom: 30px;
}