diff options
| author | Mark Otto <[email protected]> | 2012-01-05 14:11:41 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-05 14:11:41 -0800 |
| commit | 23e5fc2133dd748ba4a7df52b598a24a2915811a (patch) | |
| tree | 189976f1c88f327a2906a5b2e69c14058caa615d /lib/forms.less | |
| parent | 20add59de3f2b69aaa9c9b325dab20b13c75eaa1 (diff) | |
| download | bootstrap-23e5fc2133dd748ba4a7df52b598a24a2915811a.tar.xz bootstrap-23e5fc2133dd748ba4a7df52b598a24a2915811a.zip | |
Tweak the docs and address the new forms list of controls: radios and checkboxes are now hanging controls to wrap text properly
Diffstat (limited to 'lib/forms.less')
| -rw-r--r-- | lib/forms.less | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/lib/forms.less b/lib/forms.less index 0c624fa88..32acbdaba 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -116,6 +116,28 @@ textarea { +// CHECKBOXES & RADIOS +// ------------------- + +// Indent the labels to position radios/checkboxes as hanging +.radio, +.checkbox { + padding-left: 18px; +} +.radio input[type=radio], +.checkbox input[type=checkbox] { + float: left; + margin-left: -18px; +} + +// Move the options list down to align with labels +.controls > .radio:first-child, +.controls > .checkbox:first-child { + padding-top: 6px; // has to be padding because margin collaspes +} + + + // FOCUS STATE // ----------- @@ -390,11 +412,6 @@ textarea[readonly] { .controls { margin-left: 150px; } - // Move the options list down to align with labels - .controls > .radio:first-child, - .controls > .checkbox:first-child { - padding-top: 6px; // has to be padding because margin collaspes - } // Move over buttons in .form-actions to align with .controls .form-actions { padding-left: 150px; |
