Skip to content

Instantly share code, notes, and snippets.

@peterblazejewicz
Created September 22, 2014 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterblazejewicz/26b6b216c046fc9f81f9 to your computer and use it in GitHub Desktop.
Save peterblazejewicz/26b6b216c046fc9f81f9 to your computer and use it in GitHub Desktop.
BS buttons
@import "../../bootstrap/mixins.less";
@import "../../bootstrap/variables.less";
@import "../my-variables.less";
#buttons {
@padding-base-vertical: 5px;
@padding-base-horizontal: 10px;
@padding-large-vertical: 6px;
@padding-large-horizontal: 12px;
@padding-small-vertical: 4px;
@padding-small-horizontal: 8px;
@padding-xs-horizontal: 5px;
@padding-xs-vertical: 1px;
}
.btn {
text-transform: uppercase;
#buttons;
.button-size(@padding-base-vertical, @padding-base-horizontal, @font-size-base, @line-height-base, @border-radius-base);
}
// Button Sizes
// --------------------------------------------------
.btn-lg {
// line-height: ensure even-numbered height of button next to large input
#buttons;
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
}
.btn-sm {
// line-height: ensure proper height of button next to small input
#buttons;
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}
.btn-xs {
#buttons;
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}
@import "components/my-buttons.less";
@import "../bootstrap/bootstrap.less";
@import "my-variables.less";
@import "my-theme-custom.less";
@import "../bootstrap/utilities.less";
@import "../bootstrap/mixins.less";
@brand-primary: rgb(0, 128, 235);
// no rounding border
@border-radius-base: 0;
@border-radius-large: 0;
@border-radius-small: 0;
// buttons
@btn-font-weight: bold;
// custom button primary
@btn-primary-color: #fff;
@btn-primary-bg: @brand-primary;
@btn-primary-border: @brand-primary;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment