]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Restore .form-horizontal
authorMark Otto <otto@github.com>
Wed, 26 Dec 2012 19:59:09 +0000 (13:59 -0600)
committerMark Otto <otto@github.com>
Wed, 26 Dec 2012 19:59:09 +0000 (13:59 -0600)
docs/assets/css/bootstrap.css
less/forms.less

index b5ef18ebb1b974c2993cdd11e9531679163f7848..b4e548870a9acef34b25b255172bb4d8219269b9 100644 (file)
@@ -1528,6 +1528,31 @@ select:focus:invalid:focus {
   border-radius: 0 4px 4px 0;
 }
 
+.form-horizontal .control-group {
+  margin-bottom: 10px;
+}
+
+.form-horizontal .control-group:before,
+.form-horizontal .control-group:after {
+  display: table;
+  content: " ";
+}
+
+.form-horizontal .control-group:after {
+  clear: both;
+}
+
+.form-horizontal .control-group > .control-label {
+  float: left;
+  width: 160px;
+  padding-top: 5px;
+  text-align: right;
+}
+
+.form-horizontal .control-group > .controls {
+  margin-left: 180px;
+}
+
 table {
   max-width: 100%;
   background-color: transparent;
index dc4e7ffd984a85ce68df62e955fb1590f9c0ceeb..cc0f49b343d1d5cb38f587d2f438766afa88a067 100644 (file)
@@ -428,7 +428,6 @@ select:focus:invalid {
 
 
 
-
 // Input groups
 // --------------------------------------------------
 
@@ -537,3 +536,31 @@ select:focus:invalid {
     border-radius: 0 @border-radius-base @border-radius-base 0;
   }
 }
+
+
+
+// Horizontal forms
+// --------------------------------------------------
+
+.form-horizontal {
+
+  // Increase spacing between groups
+  .control-group {
+    margin-bottom: @line-height-base / 2;
+    .clearfix();
+  }
+
+  // Float the labels left
+  .control-group > .control-label {
+    float: left;
+    width: @component-offset-horizontal - 20;
+    padding-top: 5px;
+    text-align: right;
+  }
+
+  // Move over all input controls and content over
+  .control-group > .controls {
+    margin-left: @component-offset-horizontal;
+  }
+
+}