aboutsummaryrefslogtreecommitdiff
path: root/less/input-groups.less
diff options
context:
space:
mode:
authorZlatan Vasović <[email protected]>2013-11-07 20:58:17 +0100
committerZlatan Vasović <[email protected]>2013-11-09 22:49:58 +0100
commitaad447e29075b52a46931be17a9be4016cc89ef1 (patch)
tree9e861b73540fd2e549e9cb2e90759c7ee7b6a8cd /less/input-groups.less
parent463343af63344dbbc3db04f40b0b804baa919b7e (diff)
downloadbootstrap-aad447e29075b52a46931be17a9be4016cc89ef1.tar.xz
bootstrap-aad447e29075b52a46931be17a9be4016cc89ef1.zip
Fix #11400 and #11431
Diffstat (limited to 'less/input-groups.less')
-rw-r--r--less/input-groups.less32
1 files changed, 21 insertions, 11 deletions
diff --git a/less/input-groups.less b/less/input-groups.less
index 8516a79e9..a70decc58 100644
--- a/less/input-groups.less
+++ b/less/input-groups.less
@@ -121,16 +121,26 @@
&:last-child > .btn {
margin-left: -1px;
}
-}
-.input-group-btn > .btn {
- position: relative;
- // Jankily prevent input button groups from wrapping
- + .btn {
- margin-left: -4px;
- }
- // Bring the "active" button to the front
- &:hover,
- &:active {
- z-index: 2;
+
+ > .btn {
+ position: relative;
+
+ &:not(:first-of-type):not(:last-of-type) {
+ border-radius: 0;
+ }
+
+ // Jankily prevent input button groups from wrapping
+ + .btn {
+ margin-left: -4px;
+ }
+ + .btn:last-of-type {
+ margin-left: -5px;
+ }
+
+ // Bring the "active" button to the front
+ &:hover,
+ &:active {
+ z-index: 2;
+ }
}
}