From 293a3baca36fb8788fb75d331439f143f6762fc1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 9 May 2013 15:05:06 -0700 Subject: More forms overhaul * Refactor the .forms-horizontal code--much simpler now and built on the Bootstrap grid system instead * Remove all the margins on form controls for simpler styling everywhere else--was overriding that way too often * Drop .help-inline, but keep .help-block * Drop the unused input grid class overrides --- docs/css.html | 56 ++++++++++++++++++-------------------------------------- 1 file changed, 18 insertions(+), 38 deletions(-) (limited to 'docs/css.html') diff --git a/docs/css.html b/docs/css.html index 2473576e2..6d29f6ff2 100644 --- a/docs/css.html +++ b/docs/css.html @@ -1008,7 +1008,7 @@ For example, <section> should be wrapped as inline.

Basic example

-

Individual form controls automatically receive some global styling. By default, inputs are set to width: 100%;.

+

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements are set to width: 100%; by default.

Legend @@ -1074,23 +1074,17 @@ For example, <section> should be wrapped as inline. {% endhighlight %}

Horizontal form

-

Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:

-
    -
  • Add .form-horizontal to the form
  • -
  • Wrap labels and controls in .control-group
  • -
  • Add .control-label to the label
  • -
  • Wrap any associated controls in .controls for proper alignment
  • -
+

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout.

-
- -
+
+ +
-
- -
+
+ +
-
-
-
+
{% highlight html %}
-
- -
+
+ +
-
- -
+
+ +
-
-
-
+
@@ -1693,18 +1683,8 @@ For example, <section> should be wrapped as inline. {% endhighlight %}

Help text

-

Inline and block level support for help text that appears around form controls.

-

Inline help

- - Inline help text - -{% highlight html %} - -Inline help text -{% endhighlight %} - -

Block help

-
+

Block level help text for form controls.

+ A longer block of help text that breaks onto a new line and may extend beyond one line.
-- cgit v1.2.3