2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

remove single corner border-radius mixins

This commit is contained in:
Mark Otto
2012-12-01 14:25:28 -08:00
parent dd11d0a3fa
commit 19ee7999f4
4 changed files with 55 additions and 137 deletions
+8 -8
View File
@@ -57,25 +57,25 @@
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {
margin-left: 0;
.border-top-left-radius(@border-radius-base);
.border-bottom-left-radius(@border-radius-base);
border-top-left-radius: @border-radius-base;
border-bottom-left-radius: @border-radius-base;
}
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
.border-top-right-radius(@border-radius-base);
.border-bottom-right-radius(@border-radius-base);
border-top-right-radius: @border-radius-base;
border-bottom-right-radius: @border-radius-base;
}
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
margin-left: 0;
.border-top-left-radius(@border-radius-large);
.border-bottom-left-radius(@border-radius-large);
border-top-left-radius: @border-radius-large;
border-bottom-left-radius: @border-radius-large;
}
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
.border-top-right-radius(@border-radius-large);
.border-bottom-right-radius(@border-radius-large);
border-top-right-radius: @border-radius-large;
border-bottom-right-radius: @border-radius-large;
}
// On hover/focus/active, bring the proper btn to front