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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user