diff --git a/bootstrap-1.0.0.css b/bootstrap-1.0.0.css index ae25e3066e..ba4111d9ad 100644 --- a/bootstrap-1.0.0.css +++ b/bootstrap-1.0.0.css @@ -6,7 +6,7 @@ * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. - * Date: Sat Aug 20 23:46:35 PDT 2011 + * Date: Sat Aug 20 23:56:06 PDT 2011 */ /* Reset.less * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). @@ -969,6 +969,13 @@ form.form-stacked ul.inputs-list li label { font-weight: normal; padding-top: 0; } +form.form-stacked div.error { + padding-top: 10px; + padding-bottom: 10px; + padding-left: 10px; + margin-top: 0; + margin-left: -10px; +} form.form-stacked div.actions { margin-left: -20px; padding-left: 20px; diff --git a/bootstrap-1.0.0.min.css b/bootstrap-1.0.0.min.css index 1c4eec5e64..d98fccf2ff 100644 --- a/bootstrap-1.0.0.min.css +++ b/bootstrap-1.0.0.min.css @@ -130,6 +130,7 @@ form.form-stacked legend{margin-left:0;} form.form-stacked label{display:block;float:none;width:auto;font-weight:bold;text-align:left;line-height:20px;padding-top:0;} form.form-stacked div.clearfix{margin-bottom:9px;}form.form-stacked div.clearfix div.input{margin-left:0;} form.form-stacked ul.inputs-list{margin-bottom:0;}form.form-stacked ul.inputs-list li{padding-top:0;}form.form-stacked ul.inputs-list li label{font-weight:normal;padding-top:0;} +form.form-stacked div.error{padding-top:10px;padding-bottom:10px;padding-left:10px;margin-top:0;margin-left:-10px;} form.form-stacked div.actions{margin-left:-20px;padding-left:20px;} table{width:100%;margin-bottom:18px;padding:0;text-align:left;border-collapse:separate;font-size:13px;}table th,table td{padding:10px 10px 9px;line-height:13.5px;vertical-align:middle;border-bottom:1px solid #ddd;} table th{padding-top:9px;font-weight:bold;border-bottom-width:2px;} diff --git a/docs/index.html b/docs/index.html index b53037cd8f..940478c2de 100644 --- a/docs/index.html +++ b/docs/index.html @@ -824,6 +824,13 @@
Example form legend +
+ +
+ + Small snippet of help text +
+
diff --git a/lib/forms.less b/lib/forms.less index f958693fc4..ae67acd009 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -342,6 +342,13 @@ form.form-stacked { } } } + div.error { + padding-top: 10px; + padding-bottom: 10px; + padding-left: 10px; + margin-top: 0; + margin-left: -10px; + } div.actions { margin-left: -20px; padding-left: 20px;