diff options
| author | Mark Otto <[email protected]> | 2012-02-05 02:16:46 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-05 02:16:46 -0800 |
| commit | 59b32586af807d0e4f2985ef6e927e32d8ae2df5 (patch) | |
| tree | d5e0520c6ab1303b1582b105bacff8eba1eb2beb | |
| parent | 91475c865dd8fe224c574c1a15e8949fccdda8c0 (diff) | |
| download | bootstrap-59b32586af807d0e4f2985ef6e927e32d8ae2df5.tar.xz bootstrap-59b32586af807d0e4f2985ef6e927e32d8ae2df5.zip | |
close #1628 to add padding to all inline checkboxes/radios
| -rw-r--r-- | docs/assets/bootstrap.zip | bin | 52404 -> 52385 bytes | |||
| -rw-r--r-- | docs/assets/css/bootstrap.css | 4 | ||||
| -rw-r--r-- | less/forms.less | 7 |
3 files changed, 3 insertions, 8 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip Binary files differindex 14e74c301..bd2b6ffdb 100644 --- a/docs/assets/bootstrap.zip +++ b/docs/assets/bootstrap.zip diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 12b9af84d..2674c48a6 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -625,15 +625,13 @@ input[type="hidden"] { } .radio.inline, .checkbox.inline { display: inline-block; + padding-top: 5px; margin-bottom: 0; vertical-align: middle; } .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline { margin-left: 10px; } -.controls > .radio.inline:first-child, .controls > .checkbox.inline:first-child { - padding-top: 0; -} input, textarea { -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); diff --git a/less/forms.less b/less/forms.less index a8de0f24c..3f68df01c 100644 --- a/less/forms.less +++ b/less/forms.less @@ -166,9 +166,11 @@ input[type="hidden"] { } // Radios and checkboxes on same line +// TODO v3: Convert .inline to .control-inline .radio.inline, .checkbox.inline { display: inline-block; + padding-top: 5px; margin-bottom: 0; vertical-align: middle; } @@ -176,11 +178,6 @@ input[type="hidden"] { .checkbox.inline + .checkbox.inline { margin-left: 10px; // space out consecutive inline controls } -// But don't forget to remove their padding on first-child -.controls > .radio.inline:first-child, -.controls > .checkbox.inline:first-child { - padding-top: 0; -} |
