0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

fix up broke forms styles and docs example for the grid

This commit is contained in:
Mark Otto 2016-04-08 20:58:36 -05:00
parent 80144d74d7
commit 91627de4de
2 changed files with 23 additions and 20 deletions

View File

@ -359,8 +359,9 @@ Be sure to add `.form-control-label` to your `<label>`s as well so they're verti
<input type="password" class="form-control" id="inputPassword3" placeholder="Password">
</div>
</div>
<fieldset class="form-group">
<legend>Radio buttons</legend>
<fieldset class="form-group row">
<legend class="form-control-legend col-sm-2">Radios</legend>
<div class="col-sm-10">
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
@ -379,6 +380,7 @@ Be sure to add `.form-control-label` to your `<label>`s as well so they're verti
Option three is disabled
</label>
</div>
</div>
</fieldset>
<div class="form-group row">
<label class="col-sm-2">Checkbox</label>

View File

@ -101,7 +101,8 @@ select.form-control {
// For use with horizontal and inline forms, when you need the legend text to
// be the same size as regular labels, and to align with the form controls.
.form-control-legend {
padding: $input-padding-y $input-padding-x;
padding-top: $input-padding-y;
padding-bottom: $input-padding-y;
margin-bottom: 0;
font-size: $font-size-base;
}