]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4118: responsive modal gets width auto and improved positioning for narrower...
authorMark Otto <markotto@twitter.com>
Tue, 24 Jul 2012 07:44:11 +0000 (00:44 -0700)
committerMark Otto <markotto@twitter.com>
Tue, 24 Jul 2012 07:44:11 +0000 (00:44 -0700)
docs/assets/css/bootstrap-responsive.css
less/responsive-767px-max.less

index 4d104846b7d409f73f9c905c1549cfdca46b68a0..2590aadf865f94e53dce105860b7cb05fd9e9ca6 100644 (file)
     display: inline-block;
     width: auto;
   }
+  .modal {
+    position: fixed;
+    top: 20px;
+    right: 20px;
+    left: 20px;
+    width: auto;
+    margin: 0;
+  }
+  .modal.fade.in {
+    top: auto;
+  }
 }
 
 @media (max-width: 480px) {
     padding-left: 10px;
   }
   .modal {
-    position: fixed;
     top: 10px;
     right: 10px;
     left: 10px;
-    width: auto;
-    margin: 0;
-  }
-  .modal.fade.in {
-    top: auto;
   }
   .modal-header .close {
     padding: 10px;
index b7fd7454fb76973e865e2fb2f4e2e9a0fa95ab2d..18c96ee0b71e12a838d75222e14bbcc06dc5fae7 100644 (file)
     width: auto;
   }
 
+  // Modals
+  .modal {
+    position: fixed;
+    top:   20px;
+    left:  20px;
+    right: 20px;
+    width: auto;
+    margin: 0;
+    &.fade.in { top: auto; }
+  }
+
 }
 
 
 
   // Modals
   .modal {
-    position: fixed;
     top:   10px;
     left:  10px;
     right: 10px;
-    width: auto;
-    margin: 0;
-    &.fade.in { top: auto; }
   }
   .modal-header .close {
     padding: 10px;