diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 2dcd38c333..f4a9241da8 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index a74f461c25..1d12c816fd 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1001,9 +1001,18 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec .form-search .checkbox, .form-inline .radio, .form-inline .checkbox { + padding-left: 0; margin-bottom: 0; vertical-align: middle; } +.form-search .radio input[type="radio"], +.form-search .checkbox input[type="checkbox"], +.form-inline .radio input[type="radio"], +.form-inline .checkbox input[type="checkbox"] { + float: left; + margin-left: 0; + margin-right: 3px; +} .control-group { margin-bottom: 9px; } diff --git a/docs/base-css.html b/docs/base-css.html index 5a2e12748c..86ea85533a 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -910,7 +910,7 @@ For example, <code>section</code> should be wrapped as inline. @@ -918,6 +918,9 @@ For example, <code>section</code> should be wrapped as inline. <form class="well form-inline"> <input type="text" class="input-small" placeholder="Email"> <input type="password" class="input-small" placeholder="Password"> + <label class="checkbox"> + <input type="checkbox"> Remember me + </label> <button type="submit" class="btn">Go</button> </form> diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 96036d6eee..519f07bfe3 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -834,7 +834,7 @@ @@ -842,6 +842,9 @@ <form class="well form-inline"> <input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}"> <input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}"> + <label class="checkbox"> + <input type="checkbox"> {{_i}}Remember me{{/i}} + </label> <button type="submit" class="btn">{{_i}}Go{{/i}}</button> </form> diff --git a/less/forms.less b/less/forms.less index 177625204a..cb2ff85109 100644 --- a/less/forms.less +++ b/less/forms.less @@ -475,14 +475,25 @@ select:focus:required:invalid { .form-inline .input-prepend .add-on { vertical-align: middle; } -// Inline checkbox/radio labels +// Inline checkbox/radio labels (remove padding on left) .form-search .radio, .form-search .checkbox, .form-inline .radio, .form-inline .checkbox { + padding-left: 0; margin-bottom: 0; vertical-align: middle; } +// Remove float and margin, set to inline-block +.form-search .radio input[type="radio"], +.form-search .checkbox input[type="checkbox"], +.form-inline .radio input[type="radio"], +.form-inline .checkbox input[type="checkbox"] { + float: left; + margin-left: 0; + margin-right: 3px; +} + // Margin to space out fieldsets .control-group {