diff options
| author | Mark Otto <[email protected]> | 2013-08-18 15:47:29 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-18 15:47:29 -0700 |
| commit | c240460f0b38ab2a2bc4f542695a4ca4e1748487 (patch) | |
| tree | 35641cecac7a46779c1c996ffcc5048a14700740 /less/forms.less | |
| parent | fa7cc6cafda4f5a9363d17507bf91cba22777749 (diff) | |
| parent | 638db635d7b0c2bd6406d5ff891e92985e4b839b (diff) | |
| download | bootstrap-c240460f0b38ab2a2bc4f542695a4ca4e1748487.tar.xz bootstrap-c240460f0b38ab2a2bc4f542695a4ca4e1748487.zip | |
Merge branch '3.0.0-wip' into glyphicons-LESS-fixes
Conflicts:
dist/css/bootstrap.min.css
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/less/forms.less b/less/forms.less index c59cdd4d7..0118e242c 100644 --- a/less/forms.less +++ b/less/forms.less @@ -326,21 +326,28 @@ input[type="checkbox"], // Horizontal forms are built on grid classes and allow you to create forms with // labels on the left and inputs on the right. -.form-horizontal .control-label, -.form-horizontal .radio-inline, -.form-horizontal .checkbox-inline { - padding-top: @padding-base-vertical; -} - .form-horizontal { + + // Consistent vertical alignment of labels, radios, and checkboxes + .control-label, + .radio, + .checkbox, + .radio-inline, + .checkbox-inline { + margin-top: 0; + margin-bottom: 0; + padding-top: (@padding-base-vertical + 1); // Default padding plus a border + } + + // Make form groups behave like rows .form-group { .make-row(); } -} -// Only right align form labels here when the columns stop stacking -@media (min-width: @screen-tablet) { - .form-horizontal .control-label { - text-align: right; + // Only right align form labels here when the columns stop stacking + @media (min-width: @screen-tablet) { + .control-label { + text-align: right; + } } } |
