Sha256: 23a6ce339ced83c46195b2c69d96870f0f15ca8082c335a2aee2c28bd092f5ed

Contents?: true

Size: 1.46 KB

Versions: 81

Compression:

Stored size: 1.46 KB

Contents

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

@mixin 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,
    &:active,
    &.active {
      background-color: $background;
          border-color: $border;
    }
  }

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

// Button sizes
@mixin 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

81 entries across 81 versions & 1 rubygems

Version Path
patternfly-sass-3.59.5 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.59.4 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.59.3 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.59.2 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.59.1 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.59.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.58.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.57.2 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.57.1 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.57.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.56.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.55.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.54.8 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-0.0.0.pre.semantically.pre.released dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.54.2 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.54.3 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.54.1 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.54.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.53.1 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss
patternfly-sass-3.53.0 dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss