]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
modal refinements in docs and general responsiveness
authorMark Otto <markdotto@gmail.com>
Sat, 28 Jan 2012 08:39:22 +0000 (00:39 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 28 Jan 2012 08:39:22 +0000 (00:39 -0800)
docs/assets/css/bootstrap-responsive.css
docs/assets/css/docs.css
docs/javascript.html
docs/templates/pages/javascript.mustache
less/responsive.less

index 3936d8c2037c759f107f47554a886da5f8912880..e48a234f9f2aecfea10adbc7dad0121f686d85e5 100644 (file)
@@ -24,9 +24,9 @@
   }
   .modal {
     position: absolute;
-    top: 20px;
-    left: 20px;
-    right: 20px;
+    top: 10px;
+    left: 10px;
+    right: 10px;
     width: auto;
     margin: 0;
   }
@@ -35,6 +35,7 @@
   }
   .modal-header .close {
     padding: 10px;
+    margin: -10px;
   }
 }
 @media (max-width: 768px) {
index 41029ded1f96b4e1136ca9d9b345e7a98f7eae3f..0b221e3b267e41bf7e48194e9a422ef8700f500a 100644 (file)
@@ -723,6 +723,15 @@ form.well {
     word-wrap: break-word;
     word-break: break-all;
   }
+
+  /* Modal example */
+  .modal-example .modal {
+    position: relative;
+    top: auto;
+    right: auto;
+    bottom: auto;
+    left: auto;
+  }
 }
 
 
index 0bcbe597cb8b44319e2422d78ee08f0b20f7083f..4acd844c11e08b005784014491f2ccf8eb619344 100644 (file)
         <div class="span9 columns">
           <h2>Static example</h2>
           <p>Below is a statically rendered modal.</p>
-          <div class="well" style="background-color: #888; border: none;">
+          <div class="well modal-example" style="background-color: #888; border: none;">
             <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
               <div class="modal-header">
                 <a href="#" class="close" data-dismiss="modal">&times;</a>
index ee70bf21b4f83dcfeef2fdd5ce82891c82ad8071..edafbbf0f4441ef32b031f95570789101acab08d 100644 (file)
         <div class="span9 columns">
           <h2>{{_i}}Static example{{/i}}</h2>
           <p>{{_i}}Below is a statically rendered modal.{{/i}}</p>
-          <div class="well" style="background-color: #888; border: none;">
+          <div class="well modal-example" style="background-color: #888; border: none;">
             <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
               <div class="modal-header">
                 <a href="#" class="close" data-dismiss="modal">&times;</a>
index 6ba31b5c93101b8c49591a6e03a1cffaf07ce215..fe5e0a7eb2bc3335c265e4ae7fad6b098809ee9c 100644 (file)
   // Modals
   .modal {
     position: absolute;
-    top: 20px;
-    left: 20px;
-    right: 20px;
+    top:   10px;
+    left:  10px;
+    right: 10px;
     width: auto;
     margin: 0;
     &.fade.in { top: auto; }
   }
   .modal-header .close {
     padding: 10px;
+    margin: -10px;
   }
 
 }