Sha256: e21cdfbc6c54c9c4e2502885da3b24abc1d141f439928494efd34c40c93a23ee

Contents?: true

Size: 1.41 KB

Versions: 61

Compression:

Stored size: 1.41 KB

Contents

// Button variants
//
// Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons

.button-variant(@color; @background; @border) {
  color: @color;
  background-color: @background;
  border-color: @border;

  &:focus,
  &.focus {
    color: @color;
    background-color: darken(@background, 10%);
        border-color: darken(@border, 25%);
  }
  &:hover {
    color: @color;
    background-color: darken(@background, 10%);
        border-color: darken(@border, 12%);
  }
  &:active,
  &.active,
  .open > .dropdown-toggle& {
    color: @color;
    background-color: darken(@background, 10%);
        border-color: darken(@border, 12%);

    &:hover,
    &:focus,
    &.focus {
      color: @color;
      background-color: darken(@background, 17%);
          border-color: darken(@border, 25%);
    }
  }
  &:active,
  &.active,
  .open > .dropdown-toggle& {
    background-image: none;
  }
  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    &:hover,
    &:focus,
    &.focus {
      background-color: @background;
          border-color: @border;
    }
  }

  .badge {
    color: @background;
    background-color: @color;
  }
}

// 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;
}

Version data entries

61 entries across 61 versions & 13 rubygems

Version Path
twitter-bootstrap-rails-5.0.0 vendor/toolkit/twitter/bootstrap/mixins/buttons.less
card-1.97.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.8 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
sanskrit-documentation-theme-0.1.8 assets/node_modules/bootstrap/less/mixins/buttons.less
card-1.96.7 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.6 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.5 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.4 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.2 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.96.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.95.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.95.2 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.95.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
card-1.95.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
optimacms-0.3.35 node_modules/tinymce-dist/node_modules/bootstrap/less/mixins/buttons.less
optimacms-0.3.34 node_modules/tinymce-dist/node_modules/bootstrap/less/mixins/buttons.less
card-1.94.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/buttons.less
kms-1.2.1 vendor/assets/bower_components/bootstrap/less/mixins/buttons.less