diff options
| author | Tobias Lindig <[email protected]> | 2013-12-10 16:47:12 +0100 |
|---|---|---|
| committer | Tobias Lindig <[email protected]> | 2013-12-10 16:47:12 +0100 |
| commit | 3b5e0c9a3cae9bfae38253ae153a3426d1f81ad3 (patch) | |
| tree | 1e3e02a35a71dd80be1e7e333e46662019a40697 /less/input-groups.less | |
| parent | a6b5c7db1287a614c918d08c0f7b127be03ebe62 (diff) | |
| download | bootstrap-3b5e0c9a3cae9bfae38253ae153a3426d1f81ad3.tar.xz bootstrap-3b5e0c9a3cae9bfae38253ae153a3426d1f81ad3.zip | |
hide space characters in input-group-btn to fix segmented buttons double border
Diffstat (limited to 'less/input-groups.less')
| -rw-r--r-- | less/input-groups.less | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/less/input-groups.less b/less/input-groups.less index d19c4c64a..dc6e825f0 100644 --- a/less/input-groups.less +++ b/less/input-groups.less @@ -112,7 +112,10 @@ // ------------------------- .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 + font-size: 0; // Negative margin to only have a 1px border between the two &:first-child > .btn { @@ -124,9 +127,8 @@ } .input-group-btn > .btn { position: relative; - // Jankily prevent input button groups from wrapping + .btn { - margin-left: -4px; + margin-left: -1px; } // Bring the "active" button to the front &:hover, |
