Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2012-11-19 00:30:35 +0400
committerMark Otto <markdotto@gmail.com>2012-11-19 00:30:35 +0400
commita10d68f291d1f0a0f47f3123d213fb686229692d (patch)
tree4db83d6013e09e2964b8d696182d97db5b15d4b6 /less
parenta367fd4938a50c99cb8e45e048a20d0a6459a786 (diff)
Fixes #5937: Border radius vars in button groups
Diffstat (limited to 'less')
-rw-r--r--less/button-groups.less24
1 files changed, 12 insertions, 12 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index ca8a770d41..8c3b9ff045 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -58,25 +58,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(4px);
- .border-bottom-left-radius(4px);
+ .border-top-left-radius(@baseBorderRadius);
+ .border-bottom-left-radius(@baseBorderRadius);
}
// 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(4px);
- .border-bottom-right-radius(4px);
+ .border-top-right-radius(@baseBorderRadius);
+ .border-bottom-right-radius(@baseBorderRadius);
}
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
margin-left: 0;
- .border-top-left-radius(6px);
- .border-bottom-left-radius(6px);
+ .border-top-left-radius(@borderRadiusLarge);
+ .border-bottom-left-radius(@borderRadiusLarge);
}
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
- .border-top-right-radius(6px);
- .border-bottom-right-radius(6px);
+ .border-top-right-radius(@borderRadiusLarge);
+ .border-bottom-right-radius(@borderRadiusLarge);
}
// On hover/focus/active, bring the proper btn to front
@@ -213,14 +213,14 @@
margin-top: -1px;
}
.btn-group-vertical .btn:first-child {
- .border-radius(4px 4px 0 0);
+ .border-radius(@baseBorderRadius @baseBorderRadius 0 0);
}
.btn-group-vertical .btn:last-child {
- .border-radius(0 0 4px 4px);
+ .border-radius(0 0 @baseBorderRadius @baseBorderRadius);
}
.btn-group-vertical .btn-large:first-child {
- .border-radius(6px 6px 0 0);
+ .border-radius(@borderRadiusLarge @borderRadiusLarge 0 0);
}
.btn-group-vertical .btn-large:last-child {
- .border-radius(0 0 6px 6px);
+ .border-radius(0 0 @borderRadiusLarge @borderRadiusLarge);
}