diff options
| author | Mark Otto <[email protected]> | 2013-12-15 15:07:38 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-15 15:07:38 -0800 |
| commit | d1f15baa713764440e8335b8dbab580887caaa12 (patch) | |
| tree | 22795d45cb61184ae349c66e47352051a2f7ec0b /less/input-groups.less | |
| parent | 3b5e0c9a3cae9bfae38253ae153a3426d1f81ad3 (diff) | |
| parent | b04a1de9b097de7f4df95b30df040efe86563e75 (diff) | |
| download | bootstrap-d1f15baa713764440e8335b8dbab580887caaa12.tar.xz bootstrap-d1f15baa713764440e8335b8dbab580887caaa12.zip | |
Merge branch 'master' into pr/11817
Conflicts:
dist/css/bootstrap.min.css
less/input-groups.less
Diffstat (limited to 'less/input-groups.less')
| -rw-r--r-- | less/input-groups.less | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/less/input-groups.less b/less/input-groups.less index dc6e825f0..de1e68903 100644 --- a/less/input-groups.less +++ b/less/input-groups.less @@ -17,6 +17,11 @@ } .form-control { + // IE9 fubars the placeholder attribute in text inputs and the arrows on + // select elements in input groups. To fix it, we float the input. Details: + // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855 + float: left; + width: 100%; margin-bottom: 0; } @@ -112,10 +117,25 @@ // ------------------------- .input-group-btn { position: relative; - // Jankily prevent input button groups from wrapping - white-space: nowrap; - // in combination with inline-blocks and nowrap, space characters would take visible space + // Jankily prevent input button groups from wrapping with `white-space` and + // `font-size` in combination with `inline-block` on buttons. font-size: 0; + white-space: nowrap; + + // Negative margin for spacing, position for bringing hovered/focused/actived + // element above the siblings. + > .btn { + position: relative; + + .btn { + margin-left: -1px; + } + // Bring the "active" button to the front + &:hover, + &:focus, + &:active { + z-index: 2; + } + } // Negative margin to only have a 1px border between the two &:first-child > .btn { @@ -125,14 +145,3 @@ margin-left: -1px; } } -.input-group-btn > .btn { - position: relative; - + .btn { - margin-left: -1px; - } - // Bring the "active" button to the front - &:hover, - &:active { - z-index: 2; - } -} |
