From 6db39d0ec3b48e299f8ced16e06bfa9e912b6be6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 20 Aug 2011 23:56:32 -0700 Subject: fix error styles a bit on stacked form fields --- lib/forms.less | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/forms.less') diff --git a/lib/forms.less b/lib/forms.less index f958693fc..ae67acd00 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; -- cgit v1.2.3 From a98d2cccb8076b106e08e7ca76e59af013ab2851 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 21 Aug 2011 20:47:24 -0700 Subject: merge in master, resolve conflicts --- lib/forms.less | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'lib/forms.less') diff --git a/lib/forms.less b/lib/forms.less index ae67acd00..cd5cffc31 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -23,7 +23,7 @@ form { } // Parent element that clears floats and wraps labels and fields together - div.clearfix { + .clearfix { margin-bottom: @baseline; } @@ -112,7 +112,7 @@ form { } // Error styles - div.error { + .error { background: lighten(@red, 57%); padding: 10px 0; margin: -10px 0 10px; @@ -133,8 +133,8 @@ form { .box-shadow(0 0 6px rgba(171,41,32,.5)); } } - div.input-prepend, - div.input-append { + .input-prepend, + .input-append { span.add-on { background: lighten(@red, 50%); border-color: @error-text; @@ -177,14 +177,14 @@ form { } // Actions (the buttons) -div.actions { +.actions { background: #f5f5f5; margin-top: @baseline; margin-bottom: @baseline; padding: (@baseline - 1) 20px @baseline 150px; border-top: 1px solid #ddd; .border-radius(0 0 3px 3px); - div.secondary-action { + .secondary-action { float: right; a { line-height: 30px; @@ -213,7 +213,7 @@ div.actions { } // Inline Fields (input fields that appear as inline objects -div.inline-inputs { +.inline-inputs { color: @gray; span, input[type=text] { display: inline-block; @@ -230,8 +230,8 @@ div.inline-inputs { } // Allow us to put symbols and text within the input field for a cleaner look -div.input-prepend, -div.input-append { +.input-prepend, +.input-append { input[type=text] { .border-radius(0 3px 3px 0); } @@ -257,7 +257,7 @@ div.input-append { border-color: @green; } } -div.input-append { +.input-append { input[type=text] { float: left; .border-radius(3px 0 0 3px); @@ -270,7 +270,7 @@ div.input-append { } // Stacked options for forms (radio buttons or checkboxes) -ul.inputs-list { +.inputs-list { margin: 0 0 5px; width: 100%; li { @@ -326,13 +326,13 @@ form.form-stacked { line-height: 20px; padding-top: 0; } - div.clearfix { + .clearfix { margin-bottom: @baseline / 2; div.input { margin-left: 0; } } - ul.inputs-list { + .inputs-list { margin-bottom: 0; li { padding-top: 0; @@ -349,7 +349,7 @@ form.form-stacked { margin-top: 0; margin-left: -10px; } - div.actions { + .actions { margin-left: -20px; padding-left: 20px; } -- cgit v1.2.3 From 0df17f06d8cb94ccee42cd5c8536965c2df7e643 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 21 Aug 2011 20:53:52 -0700 Subject: re-add div to error class --- lib/forms.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/forms.less') diff --git a/lib/forms.less b/lib/forms.less index d528bcd3f..2e8e59dde 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -112,7 +112,7 @@ form { } // Error styles - .error { + div.error { background: lighten(@red, 57%); padding: 10px 0; margin: -10px 0 10px; @@ -342,7 +342,7 @@ form.form-stacked { } } } - .error { + div.error { padding-top: 10px; padding-bottom: 10px; padding-left: 10px; -- cgit v1.2.3