Skip to content

Commit

Permalink
fix error styles a bit on stacked form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Aug 21, 2011
1 parent 79bdb80 commit 6db39d0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bootstrap-1.0.0.css
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions bootstrap-1.0.0.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,13 @@ <h2>Stacked forms</h2>
</fieldset>
<fieldset>
<legend>Example form legend</legend>
<div class="clearfix error">
<label for="xlInput">X-Large Input</label>
<div class="input">
<input class="xlarge error" id="xlInput" name="xlInput" size="30" type="text" />
<span class="help-inline">Small snippet of help text</span>
</div>
</div> <!-- /clearfix -->
<div class="clearfix">
<label id="optionsCheckboxes">List of Options</label>
<div class="input">
Expand Down
7 changes: 7 additions & 0 deletions lib/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6db39d0

Please sign in to comment.