Skip to content

Commit 948c59d

Browse files
committed
resolve issue with form fields and errors causing no space between fields with consecutive errors; needs more work, but will address later
1 parent 0caa484 commit 948c59d

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

bootstrap.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Thu Sep 22 12:52:42 PDT 2011
9+
* Date: Mon Oct 3 21:43:20 PDT 2011
1010
*/
1111
/* Reset.less
1212
* 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).
@@ -173,7 +173,7 @@ textarea {
173173
/* Variables.less
174174
* Variables to customize the look and feel of Bootstrap
175175
* ----------------------------------------------------- */
176-
/* Variables.less
176+
/* Mixins.less
177177
* Snippets of reusable CSS to develop faster and keep code readable
178178
* ----------------------------------------------------------------- */
179179
/*
@@ -719,30 +719,30 @@ input[type=file]:focus, input[type=checkbox]:focus, select:focus {
719719
box-shadow: none;
720720
outline: 1px dotted #666;
721721
}
722-
form div.clearfix.error {
722+
form .clearfix.error {
723723
background: #fae5e3;
724724
padding: 10px 0;
725-
margin: -10px 0 10px;
725+
margin: 10px 0;
726726
-webkit-border-radius: 4px;
727727
-moz-border-radius: 4px;
728728
border-radius: 4px;
729729
}
730-
form div.clearfix.error > label, form div.clearfix.error span.help-inline, form div.clearfix.error span.help-block {
730+
form .clearfix.error > label, form .clearfix.error span.help-inline, form .clearfix.error span.help-block {
731731
color: #9d261d;
732732
}
733-
form div.clearfix.error input, form div.clearfix.error textarea {
733+
form .clearfix.error input, form .clearfix.error textarea {
734734
border-color: #c87872;
735735
-webkit-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25);
736736
-moz-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25);
737737
box-shadow: 0 0 3px rgba(171, 41, 32, 0.25);
738738
}
739-
form div.clearfix.error input:focus, form div.clearfix.error textarea:focus {
739+
form .clearfix.error input:focus, form .clearfix.error textarea:focus {
740740
border-color: #b9554d;
741741
-webkit-box-shadow: 0 0 6px rgba(171, 41, 32, 0.5);
742742
-moz-box-shadow: 0 0 6px rgba(171, 41, 32, 0.5);
743743
box-shadow: 0 0 6px rgba(171, 41, 32, 0.5);
744744
}
745-
form div.clearfix.error .input-prepend span.add-on, form div.clearfix.error .input-append span.add-on {
745+
form .clearfix.error .input-prepend span.add-on, form .clearfix.error .input-append span.add-on {
746746
background: #f4c8c5;
747747
border-color: #c87872;
748748
color: #b9554d;

bootstrap.min.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,14 @@ <h2>Default styles</h2>
10361036
</div>
10371037
</div><!-- /clearfix -->
10381038
<div class="clearfix error">
1039-
<label for="xlInput2">X-Large input</label>
1039+
<label for="xlInput2">Input with error</label>
1040+
<div class="input">
1041+
<input class="xlarge error" id="xlInput2" name="xlInput2" size="30" type="text" />
1042+
<span class="help-inline">Small snippet of help text</span>
1043+
</div>
1044+
</div><!-- /clearfix -->
1045+
<div class="clearfix error">
1046+
<label for="xlInput2">Input with error</label>
10401047
<div class="input">
10411048
<input class="xlarge error" id="xlInput2" name="xlInput2" size="30" type="text" />
10421049
<span class="help-inline">Small snippet of help text</span>

lib/forms.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ select:focus {
159159
}
160160

161161
// Error styles
162-
form div.clearfix.error {
162+
form .clearfix.error {
163163
background: lighten(@red, 57%);
164164
padding: 10px 0;
165-
margin: -10px 0 10px;
165+
margin: 10px 0;
166166
.border-radius(4px);
167167
@error-text: desaturate(lighten(@red, 25%), 25%);
168168
> label,

0 commit comments

Comments
 (0)