diff options
| author | Mark Otto <[email protected]> | 2013-08-12 16:09:21 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-12 16:09:21 -0700 |
| commit | eac61de138278aa1c0d70dfed7a9515c714b6ad9 (patch) | |
| tree | a57052a80499716eb32a2b20273436c88bf534f6 /less/forms.less | |
| parent | c558c035d7eee68276c76246260913663029f1dc (diff) | |
| download | bootstrap-eac61de138278aa1c0d70dfed7a9515c714b6ad9.tar.xz bootstrap-eac61de138278aa1c0d70dfed7a9515c714b6ad9.zip | |
fix navbar form alignment of inputs by restoring inline-block
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 7 |
1 files changed, 7 insertions, 0 deletions
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). |
