]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
clean up modals.less comments, add new class for optional use on modal forms to remov...
authorMark Otto <markotto@twitter.com>
Sun, 12 Feb 2012 23:43:04 +0000 (15:43 -0800)
committerMark Otto <markotto@twitter.com>
Sun, 12 Feb 2012 23:43:04 +0000 (15:43 -0800)
docs/assets/bootstrap.zip
docs/assets/css/bootstrap.css
less/modals.less

index 94e2fa1f3126cc6dc9073929cf331675be56d2a5..8c01169dc0e1d9da27ecf1115b315ccd0cc3203c 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index acd3a396e8c1aee589013c2d4ffb4938f141ae0f..754e9af2d35ca44d4d0f80fd76cfb6bb576e1099 100644 (file)
@@ -2888,6 +2888,9 @@ button.btn.small, input[type="submit"].btn.small {
 .modal-body {
   padding: 15px;
 }
+.modal-body .modal-form {
+  margin-bottom: 0;
+}
 .modal-footer {
   padding: 14px 15px 15px;
   margin-bottom: 0;
index aa14675edeed12bf6681f85db6f4d2f82be15cec..d1e06dc2619985a9b71b7148255f007c2c226508 100644 (file)
@@ -1,6 +1,7 @@
 // MODALS
 // ------
 
+// Recalculate z-index where appropriate
 .modal-open {
   .dropdown-menu {  z-index: @zindexDropdown + @zindexModal; }
   .dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
@@ -8,6 +9,7 @@
   .tooltip       {  z-index: @zindexTooltip  + @zindexModal; }
 }
 
+// Background
 .modal-backdrop {
   position: fixed;
   top: 0;
@@ -25,6 +27,7 @@
   .opacity(80);
 }
 
+// Base modal
 .modal {
   position: fixed;
   top: 50%;
   // Close icon
   .close { margin-top: 2px; }
 }
+
+// Body (where all modal content resises)
 .modal-body {
   padding: 15px;
 }
+// Remove bottom margin if need be
+.modal-body .modal-form {
+  margin-bottom: 0;
+}
+
+// Footer (for actions)
 .modal-footer {
   padding: 14px 15px 15px;
   margin-bottom: 0;