]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fuck everything about .clear_float() -- restore .clearfix() as mixin
authorMark Otto <otto@github.com>
Sat, 30 Mar 2013 20:23:18 +0000 (13:23 -0700)
committerMark Otto <otto@github.com>
Sat, 30 Mar 2013 20:23:18 +0000 (13:23 -0700)
docs/assets/css/bootstrap.css
docs/docs.html
less/button-groups.less
less/forms.less
less/mixins.less
less/navbar.less
less/navs.less
less/pager.less
less/type.less
less/utilities.less

index 0afdb0ab84e3516213d0467b380112a1c601ee9a..4f034974a9f3946ce5e814834a802b759ce5190a 100644 (file)
@@ -365,12 +365,12 @@ cite {
   font-style: normal;
 }
 
-.muted {
+.text-muted {
   color: #999999;
 }
 
-a.muted:hover,
-a.muted:focus {
+a.text-muted:hover,
+a.text-muted:focus {
   color: #808080;
 }
 
@@ -589,6 +589,16 @@ dd {
   clear: both;
 }
 
+.dl-horizontal:before,
+.dl-horizontal:after {
+  display: table;
+  content: " ";
+}
+
+.dl-horizontal:after {
+  clear: both;
+}
+
 .dl-horizontal dt {
   float: left;
   width: 160px;
@@ -746,6 +756,16 @@ pre code {
   clear: both;
 }
 
+.container:before,
+.container:after {
+  display: table;
+  content: " ";
+}
+
+.container:after {
+  clear: both;
+}
+
 .row {
   margin-right: -15px;
   margin-left: -15px;
@@ -761,6 +781,16 @@ pre code {
   clear: both;
 }
 
+.row:before,
+.row:after {
+  display: table;
+  content: " ";
+}
+
+.row:after {
+  clear: both;
+}
+
 [class*="col-span-"] {
   position: relative;
   min-height: 1px;
@@ -1498,6 +1528,16 @@ select:focus:invalid:focus {
   clear: both;
 }
 
+.form-actions:before,
+.form-actions:after {
+  display: table;
+  content: " ";
+}
+
+.form-actions:after {
+  clear: both;
+}
+
 .help-block,
 .help-inline {
   color: #737373;
@@ -1691,6 +1731,14 @@ select:focus:invalid:focus {
   .form-horizontal .control-group:after {
     clear: both;
   }
+  .form-horizontal .control-group:before,
+  .form-horizontal .control-group:after {
+    display: table;
+    content: " ";
+  }
+  .form-horizontal .control-group:after {
+    clear: both;
+  }
   .form-horizontal .control-group input,
   .form-horizontal .control-group select,
   .form-horizontal .control-group textarea {
@@ -2763,7 +2811,6 @@ fieldset[disabled] .btn-link:focus {
   font-weight: normal;
   line-height: 20px;
   color: #333333;
-  white-space: nowrap;
 }
 
 .dropdown-menu > li > a:hover,
@@ -2968,6 +3015,16 @@ button.close {
   clear: both;
 }
 
+.nav:before,
+.nav:after {
+  display: table;
+  content: " ";
+}
+
+.nav:after {
+  clear: both;
+}
+
 .nav > li {
   display: block;
 }
@@ -3126,6 +3183,16 @@ button.close {
   clear: both;
 }
 
+.tabbable:before,
+.tabbable:after {
+  display: table;
+  content: " ";
+}
+
+.tabbable:after {
+  clear: both;
+}
+
 .tab-content > .tab-pane,
 .pill-content > .pill-pane {
   display: none;
@@ -3222,6 +3289,16 @@ button.close {
   clear: both;
 }
 
+.navbar:before,
+.navbar:after {
+  display: table;
+  content: " ";
+}
+
+.navbar:after {
+  clear: both;
+}
+
 .navbar .nav {
   margin-top: 15px;
 }
@@ -3483,6 +3560,14 @@ button.close {
   .navbar .nav:after {
     clear: both;
   }
+  .navbar .nav:before,
+  .navbar .nav:after {
+    display: table;
+    content: " ";
+  }
+  .navbar .nav:after {
+    clear: both;
+  }
   .navbar .nav.pull-right {
     float: right;
   }
@@ -3615,6 +3700,16 @@ button.close {
   clear: both;
 }
 
+.btn-toolbar:before,
+.btn-toolbar:after {
+  display: table;
+  content: " ";
+}
+
+.btn-toolbar:after {
+  clear: both;
+}
+
 .btn-toolbar .btn-group {
   float: left;
 }
@@ -3880,6 +3975,16 @@ button.close {
   clear: both;
 }
 
+.pager:before,
+.pager:after {
+  display: table;
+  content: " ";
+}
+
+.pager:after {
+  clear: both;
+}
+
 .pager li {
   display: inline;
 }
@@ -4027,6 +4132,16 @@ button.close {
   clear: both;
 }
 
+.modal-footer:before,
+.modal-footer:after {
+  display: table;
+  content: " ";
+}
+
+.modal-footer:after {
+  clear: both;
+}
+
 .modal-footer .btn + .btn {
   margin-bottom: 0;
   margin-left: 5px;
index f6f4f48300ea6c292c87e49f5628d41bcdd772e3..4b26296585b211ea2e600018f8ab023f2fe7aa84 100644 (file)
@@ -388,7 +388,7 @@ title: Bootstrap Documentation
   margin-left:  (@grid-gutter-width / -2);
   margin-right: (@grid-gutter-width / -2);
   // Then clear the floated columns
-  .clear_float();
+  .clearfix();
 }
 
 // Generate the columns
index 9e6eaa496569cb12c2384fac180ad808d3dc22c1..884b0b272a09a7a28923509d413a5099357d05c8 100644 (file)
@@ -32,7 +32,7 @@
 
 // Optional: Group multiple button groups together for a toolbar
 .btn-toolbar {
-  .clear_float();
+  .clearfix();
 
   .btn-group {
     float: left;
index 02aa4242ca7e0bee665a814dd354aabfeae10782..ddbd196375861a5abb851dc8dac0ad651253fd3c 100644 (file)
@@ -343,7 +343,7 @@ select:focus:invalid {
   margin-bottom: @line-height-base;
   background-color: @form-actions-background;
   border-top: 1px solid #e5e5e5;
-  .clear_float(); // Adding clearfix to allow for .pull-right button containers
+  .clearfix(); // Adding clearfix to allow for .pull-right button containers
 }
 
 
@@ -517,7 +517,7 @@ select:focus:invalid {
     .control-group {
       position: relative;
       margin-bottom: @line-height-base;
-      .clear_float();
+      .clearfix();
 
       input,
       select,
index 4fc2bd23522ea0ed5f9357c8af855fe343dd05e1..be75a2f89194d209c7adb7486becc816658bacd8 100644 (file)
@@ -16,7 +16,7 @@
 //    that are clearfixed.
 // 2. The use of `table` rather than `block` is only necessary if using
 //    `:before` to contain the top-margins of child elements.
-.clear_float() {
+.clearfix() {
   &:before,
   &:after {
     content: " "; /* 1 */
 .container-fixed() {
   margin-right: auto;
   margin-left: auto;
-  .clear_float();
+  .clearfix();
 }
 
 // Make a grid
   margin-left:  (@grid-gutter-width / -2);
   margin-right: (@grid-gutter-width / -2);
   // Then clear the floated columns
-  .clear_float();
+  .clearfix();
 }
 // Generate the columns
 .make-column(@columns) {
index ad0a6f386cba7569fec5abe650c091b1da5b3414..e9d971da1df87e992f9bc226eed13aeae5e88c46 100644 (file)
@@ -9,7 +9,7 @@
   background-color: @navbar-bg;
   border-radius: @border-radius-base;
   // Prevent floats from breaking the navbar
-  .clear_float();
+  .clearfix();
 }
 
 // Navbar nav links
   .navbar .nav {
     float: left;
     margin-top: 0; // undo top margin to make nav extend full height of navbar
-    .clear_float();
+    .clearfix();
 
     &.pull-right {
       float: right;
index 33b5ec3fe8aaebbffad915fed973513c18656808..be165e43447ee9601c0ca4709b585c2a9fc9d925 100644 (file)
@@ -11,7 +11,7 @@
   margin-bottom: 0;
   padding-left: 0; // Override default ul/ol
   list-style: none;
-  .clear_float();
+  .clearfix();
 }
 .nav > li {
   display: block;
index 89ce70c295011a4973e78dc3c63c4534723a2337..e9f7d98e7991aa039f321e64cd530010a3de8df6 100644 (file)
@@ -7,7 +7,7 @@
   margin: @line-height-base 0;
   list-style: none;
   text-align: center;
-  .clear_float();
+  .clearfix();
 }
 .pager li {
   display: inline;
index 6725f3902a93d75229366e26e86638471476a06c..c2f7b07351c8eeafc10592eb204da718883c85ef 100644 (file)
@@ -158,7 +158,7 @@ dd {
 }
 // Horizontal layout (like forms)
 .dl-horizontal {
-  .clear_float(); // Ensure dl clears floats if empty dd elements present
+  .clearfix(); // Ensure dl clears floats if empty dd elements present
   dt {
     float: left;
     width: (@component-offset-horizontal - 20);
index f31070710bc41a4d7328ea6cf8f46882ee3c3299..d296b32c25ffd3bd0eed221ec8f3cbd2011c9ef0 100644 (file)
@@ -7,7 +7,7 @@
 // -------------------------
 
 .clearfix {
-  .clear_float();
+  .clearfix();
 }
 .pull-right {
   float: right;