mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fix error styles a bit on stacked form fields
This commit is contained in:
parent
79bdb80543
commit
6db39d0ec3
4 changed files with 23 additions and 1 deletions
9
bootstrap-1.0.0.css
vendored
9
bootstrap-1.0.0.css
vendored
|
@ -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;
|
||||
|
|
1
bootstrap-1.0.0.min.css
vendored
1
bootstrap-1.0.0.min.css
vendored
|
@ -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;}
|
||||
|
|
|
@ -824,6 +824,13 @@
|
|||
</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">
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue