diff options
| author | Mark Otto <[email protected]> | 2014-03-09 21:25:51 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-09 21:25:51 -0700 |
| commit | a15c24410be8b94671dcfc3b154e0034a3aaf35f (patch) | |
| tree | 5c150ed0bef9204736fce436b922ceb437130a1a /dist/css/bootstrap.css | |
| parent | b4d66b7f6b8ca49fbf45fccf445910d607969946 (diff) | |
| download | bootstrap-a15c24410be8b94671dcfc3b154e0034a3aaf35f.tar.xz bootstrap-a15c24410be8b94671dcfc3b154e0034a3aaf35f.zip | |
Fixes #12759
Ensures proper sizing and alignment of input groups within inline and
navbar forms.
* Uses `inline-table` on the input group
* Nukes the widths to `width: auto`—without this, the parent input
group doesn’t size correctly and functions as `display: table;` or
`block`
Diffstat (limited to 'dist/css/bootstrap.css')
| -rw-r--r-- | dist/css/bootstrap.css | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 5f30c0c9a..8b102d753 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -2591,6 +2591,15 @@ select[multiple].input-lg { width: auto; vertical-align: middle; } + .form-inline .input-group { + display: inline-table; + vertical-align: middle; + } + .form-inline .input-group .input-group-addon, + .form-inline .input-group .input-group-btn, + .form-inline .input-group .form-control { + width: auto; + } .form-inline .input-group > .form-control { width: 100%; } @@ -3919,6 +3928,15 @@ select[multiple].input-group-sm > .input-group-btn > .btn { width: auto; vertical-align: middle; } + .navbar-form .input-group { + display: inline-table; + vertical-align: middle; + } + .navbar-form .input-group .input-group-addon, + .navbar-form .input-group .input-group-btn, + .navbar-form .input-group .form-control { + width: auto; + } .navbar-form .input-group > .form-control { width: 100%; } |
