From 6db39d0ec3b48e299f8ced16e06bfa9e912b6be6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 20 Aug 2011 23:56:32 -0700 Subject: [PATCH] fix error styles a bit on stacked form fields --- bootstrap-1.0.0.css | 9 ++++++++- bootstrap-1.0.0.min.css | 1 + docs/index.html | 7 +++++++ lib/forms.less | 7 +++++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/bootstrap-1.0.0.css b/bootstrap-1.0.0.css index ae25e306..ba4111d9 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 1c4eec5e..d98fccf2 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 b53037cd..940478c2 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 f958693f..ae67acd0 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;