mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
Merge pull request #9373 from ggam/button-sizes
Added button-size mixin
This commit is contained in:
commit
ddd13dc100
@ -121,17 +121,13 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.btn-lg {
|
.btn-lg {
|
||||||
padding: @padding-large-vertical @padding-large-horizontal;
|
// line-height: ensure even-numbered height of button next to large input
|
||||||
font-size: @font-size-large;
|
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
||||||
line-height: @line-height-large; // ensure even-numbered height of button next to large input
|
|
||||||
border-radius: @border-radius-large;
|
|
||||||
}
|
}
|
||||||
.btn-sm,
|
.btn-sm,
|
||||||
.btn-xs {
|
.btn-xs {
|
||||||
padding: @padding-small-vertical @padding-small-horizontal;
|
// line-height: ensure proper height of button next to small input
|
||||||
font-size: @font-size-small;
|
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
||||||
line-height: @line-height-small; // ensure proper height of button next to small input
|
|
||||||
border-radius: @border-radius-small;
|
|
||||||
}
|
}
|
||||||
.btn-xs {
|
.btn-xs {
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
|
@ -384,6 +384,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Button sizes
|
||||||
|
// -------------------------
|
||||||
|
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
||||||
|
padding: @padding-vertical @padding-horizontal;
|
||||||
|
font-size: @font-size;
|
||||||
|
line-height: @line-height;
|
||||||
|
border-radius: @border-radius;
|
||||||
|
}
|
||||||
|
|
||||||
// Labels
|
// Labels
|
||||||
// -------------------------
|
// -------------------------
|
||||||
.label-variant(@color) {
|
.label-variant(@color) {
|
||||||
|
Loading…
Reference in New Issue
Block a user