aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-26 15:51:25 -0700
committerMark Otto <[email protected]>2013-07-26 15:51:25 -0700
commit01c6617f79b72c72ef9dfe5085638e69ec80f090 (patch)
tree5c0ae7f6f16b50c329d9942595eb57adf778b589 /less
parent68827689e877aca14197a1e889531dcc2130ce18 (diff)
downloadbootstrap-01c6617f79b72c72ef9dfe5085638e69ec80f090.tar.xz
bootstrap-01c6617f79b72c72ef9dfe5085638e69ec80f090.zip
Update inline and horizontal forms
* No more need for `.row.form-group`--only need `.form-group` * Change tag selectors for inline form to use `.form-control` * Docs improved to explain what's happening
Diffstat (limited to 'less')
-rw-r--r--less/forms.less12
1 files changed, 8 insertions, 4 deletions
diff --git a/less/forms.less b/less/forms.less
index c079c6396..60e457671 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -388,9 +388,7 @@ select {
// --------------------------------------------------
.form-inline {
- input,
- select,
- textarea,
+ .form-control,
.radio,
.checkbox {
display: inline-block;
@@ -408,7 +406,13 @@ select {
// Horizontal forms are built on grid classes.
.form-horizontal .control-label {
- padding-top: 6px;
+ padding-top: 6px;
+}
+
+.form-horizontal {
+ .form-group {
+ .make-row();
+ }
}
// Only right align form labels here when the columns stop stacking