Skip to content

Commit c843e20

Browse files
committed
make it so that checkboxes and radio options-list can have wrapping labels; needs to be cross browser tested yet
1 parent a968d30 commit c843e20

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

bootstrap.css

Lines changed: 4 additions & 1 deletion
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: Mon Oct 3 22:00:55 PDT 2011
9+
* Date: Mon Oct 3 22:26:41 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).
@@ -974,6 +974,7 @@ textarea[readonly] {
974974
float: none;
975975
width: auto;
976976
padding: 0;
977+
margin-left: 20px;
977978
line-height: 18px;
978979
text-align: left;
979980
white-space: normal;
@@ -998,6 +999,8 @@ textarea[readonly] {
998999
}
9991000
.inputs-list input[type=radio], .inputs-list input[type=checkbox] {
10001001
margin-bottom: 0;
1002+
margin-left: -20px;
1003+
float: left;
10011004
}
10021005
.form-stacked {
10031006
padding-left: 20px;

bootstrap.min.css

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

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ <h2>Default styles</h2>
11071107
<li>
11081108
<label>
11091109
<input type="checkbox" name="optionsCheckboxes" value="option2" />
1110-
<span>Option three can&mdash;yes, you guessed it&mdash;also be checked and included in form results</span>
1110+
<span>Option three can&mdash;yes, you guessed it&mdash;also be checked and included in form results. Let's make it super long so that everyone can see how it wraps, too.</span>
11111111
</label>
11121112
</li>
11131113
<li>

lib/forms.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ textarea[readonly] {
387387
float: none;
388388
width: auto;
389389
padding: 0;
390+
margin-left: 20px;
390391
line-height: @baseline;
391392
text-align: left;
392393
white-space: normal;
@@ -412,6 +413,8 @@ textarea[readonly] {
412413
input[type=radio],
413414
input[type=checkbox] {
414415
margin-bottom: 0;
416+
margin-left: -20px;
417+
float: left;
415418
}
416419
}
417420

0 commit comments

Comments
 (0)