aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/css/bootstrap.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-10 16:35:25 -0700
committerMark Otto <[email protected]>2013-05-10 16:35:25 -0700
commit8051695c87d7420862307090ac49ca2d1e74b40b (patch)
tree2256f1e5614457e850068818d734249a72ee7729 /docs/assets/css/bootstrap.css
parent76ecfdfdc1ef06997eafdeef68d7a9a945614af3 (diff)
parent579d566299c82fe91e5202b30ec2b2b062e0d902 (diff)
downloadbootstrap-8051695c87d7420862307090ac49ca2d1e74b40b.tar.xz
bootstrap-8051695c87d7420862307090ac49ca2d1e74b40b.zip
Merge pull request #7838 from blakeembrey/btn-group-radius
Remove the overrides and resets from button groups
Diffstat (limited to 'docs/assets/css/bootstrap.css')
-rw-r--r--docs/assets/css/bootstrap.css82
1 files changed, 36 insertions, 46 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 22c766c1e..5484d9833 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -3717,26 +3717,30 @@ button.close {
border-bottom-color: #ffffff;
}
-.btn-group {
+.btn-group,
+.btn-group-vertical {
position: relative;
display: inline-block;
vertical-align: middle;
}
-.btn-group > .btn {
+.btn-group > .btn,
+.btn-group-vertical > .btn {
position: relative;
float: left;
}
-.btn-group > .btn + btn {
- margin-left: -1px;
-}
-
.btn-group > .btn:hover,
-.btn-group > .btn:active {
+.btn-group-vertical > .btn:hover,
+.btn-group > .btn:active,
+.btn-group-vertical > .btn:active {
z-index: 2;
}
+.btn-group .btn + .btn {
+ margin-left: -1px;
+}
+
.btn-toolbar:before,
.btn-toolbar:after {
display: table;
@@ -3768,52 +3772,42 @@ button.close {
margin-left: 5px;
}
-.btn-group > .btn {
- position: relative;
+.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0;
}
.btn-group > .btn:first-child {
margin-left: 0;
- border-bottom-left-radius: 4px;
- border-top-left-radius: 4px;
}
-.btn-group > .btn:last-child,
-.btn-group > .dropdown-toggle {
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
-}
-
-.btn-group > .btn.large:first-child {
- margin-left: 0;
- border-bottom-left-radius: 6px;
- border-top-left-radius: 6px;
+.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
}
-.btn-group > .btn.large:last-child,
-.btn-group > .large.dropdown-toggle {
- border-top-right-radius: 6px;
- border-bottom-right-radius: 6px;
+.btn-group > .btn:last-child:not(:first-child),
+.btn-group > .dropdown-toggle:not(:first-child) {
+ border-bottom-left-radius: 0;
+ border-top-left-radius: 0;
}
.btn-group > .btn-group {
float: left;
}
-.btn-group > .btn-group > .btn {
+.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
-.btn-group > .btn-group:last-child > .btn {
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
+.btn-group > .btn-group:first-child > .btn:last-child,
+.btn-group > .btn-group:first-child > .dropdown-toggle {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
}
-.btn-group > .btn-group:first-child > .btn {
- margin-left: 0;
- border-bottom-left-radius: 4px;
- border-top-left-radius: 4px;
+.btn-group > .btn-group:last-child > .btn:first-child {
+ border-bottom-left-radius: 0;
+ border-top-left-radius: 0;
}
.btn-group .dropdown-toggle:active,
@@ -3861,26 +3855,22 @@ button.close {
max-width: 100%;
}
-.btn-group-vertical .btn:first-child {
- border-radius: 0;
- border-top-right-radius: 4px;
- border-top-left-radius: 4px;
+.btn-group-vertical > .btn + .btn {
+ margin-top: -1px;
}
-.btn-group-vertical .btn:last-child {
+.btn-group-vertical .btn:not(:first-child):not(:last-child) {
border-radius: 0;
- border-bottom-right-radius: 4px;
- border-bottom-left-radius: 4px;
}
-.btn-group-vertical .btn-large:first-child {
- border-top-right-radius: 6px;
- border-top-left-radius: 6px;
+.btn-group-vertical .btn:first-child {
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
}
-.btn-group-vertical .btn-large:last-child {
- border-bottom-right-radius: 6px;
- border-bottom-left-radius: 6px;
+.btn-group-vertical .btn:last-child {
+ border-top-right-radius: 0;
+ border-top-left-radius: 0;
}
.btn-group-justified {