From eac61de138278aa1c0d70dfed7a9515c714b6ad9 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Aug 2013 16:09:21 -0700 Subject: fix navbar form alignment of inputs by restoring inline-block --- less/forms.less | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index d78784897..af575db22 100644 --- a/less/forms.less +++ b/less/forms.less @@ -299,6 +299,8 @@ textarea { // // Requires wrapping inputs and labels with `.form-group` for proper display of // default HTML form controls and our custom form controls (e.g., input groups). +// +// Heads up! This is mixin-ed into `.navbar-form` in navbars.less. .form-inline { @@ -311,6 +313,11 @@ textarea { vertical-align: middle; } + // In navbar-form, allow folks to *not* use `.form-group` + .form-control { + display: inline-block; + } + // Remove default margin on radios/checkboxes that were used for stacking, and // then undo the floating of radios and checkboxes to match (which also avoids // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969). -- cgit v1.2.3