aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMartin Bean <[email protected]>2015-04-26 17:42:34 +0100
committerMartin Bean <[email protected]>2015-04-26 17:42:34 +0100
commit9a451d4aea98d59a0bad032ec4fd80a4ea1bc8e1 (patch)
tree8b6e653d3c9bc4aa27a931c2b4bc5b531e91aaeb /less
parentd0926f2debde5e920ca369ad56a07e7c8bacdd89 (diff)
downloadbootstrap-9a451d4aea98d59a0bad032ec4fd80a4ea1bc8e1.tar.xz
bootstrap-9a451d4aea98d59a0bad032ec4fd80a4ea1bc8e1.zip
Add @btn-border-radius variables (#16271)
Diffstat (limited to 'less')
-rw-r--r--less/button-groups.less4
-rw-r--r--less/buttons.less8
-rw-r--r--less/variables.less5
3 files changed, 11 insertions, 6 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index 84443c88b..6a0c5a865 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -173,11 +173,11 @@
border-radius: 0;
}
&:first-child:not(:last-child) {
- border-top-right-radius: @border-radius-base;
+ border-top-right-radius: @btn-border-radius-base;
.border-bottom-radius(0);
}
&:last-child:not(:first-child) {
- border-bottom-left-radius: @border-radius-base;
+ border-bottom-left-radius: @btn-border-radius-base;
.border-top-radius(0);
}
}
diff --git a/less/buttons.less b/less/buttons.less
index 740905f52..9cbb8f416 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -17,7 +17,7 @@
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
border: 1px solid transparent;
white-space: nowrap;
- .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
+ .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);
.user-select(none);
&,
@@ -132,14 +132,14 @@
.btn-lg {
// line-height: ensure even-numbered height of button next to large input
- .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
+ .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @btn-border-radius-large);
}
.btn-sm {
// line-height: ensure proper height of button next to small input
- .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
+ .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
}
.btn-xs {
- .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
+ .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
}
diff --git a/less/variables.less b/less/variables.less
index dd3c102ab..a55d03072 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -170,6 +170,11 @@
@btn-link-disabled-color: @gray-light;
+//** Allows for customizing button radius independently from global border radius
+@btn-border-radius-base: @border-radius-base;
+@btn-border-radius-large: @border-radius-large;
+@btn-border-radius-small: @border-radius-small;
+
//== Forms
//