From 27cedf71d58e47c291b73e078adf939014dd838c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 25 Jul 2013 19:45:14 -0700 Subject: Update form validation states * Once again no longer applies to single inputs (this is a bit simpler, but I'm open to new ideas) but the entire set of inputs, labels, and help text within a particular element. However, the styles are not too dependent on markup or layout, so they're super flexible. * Simplified the markup in the validation docs examples to match latest changes. * Renamed `.form-state-validation` mixin to `.form-control-validation` to match naming of prev commit. --- css.html | 45 ++++++++++++++------------------------------- 1 file changed, 14 insertions(+), 31 deletions(-) (limited to 'css.html') diff --git a/css.html b/css.html index 6cc9735dd..5be76474c 100644 --- a/css.html +++ b/css.html @@ -1496,51 +1496,34 @@ For example, <section> should be wrapped as inline. {% endhighlight %}

Validation states

-

Bootstrap includes validation styles for error, warning, info, and success messages. To use:

- -

Validation styles are applied on a per-input basis. With horizontal forms, the <label class="control-label"> will always be styled.

+

Bootstrap includes validation styles for error, warning, and success states on from controls. To use, add .has-warning, .has-error, or .has-success to the parent element. Any .control-label, .form-control, and .help-block within that element will receive the validation styles. -

-
+ +
-
- -
+
-
+
-
- -
+
-
+
-
- -
+
{% highlight html %} -
+
-
- -
+
-
+
-
- -
+
-
+
-
- -
+
{% endhighlight %} -- cgit v1.2.3