Sha256: 1e01e239d869ca1db2c754944d3443f116fe8bf046ffcd937310ca42be615c39

Contents?: true

Size: 1.04 KB

Versions: 89

Compression:

Stored size: 1.04 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;

  &:hover,
  &:focus,
  &:active,
  &.active,
  .open > &.dropdown-toggle {
    color: $color;
    background-color: darken($background, 10%);
        border-color: darken($border, 12%);
  }
  &:active,
  &.active,
  .open > &.dropdown-toggle {
    background-image: none;
  }
  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    &,
    &:hover,
    &: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

89 entries across 89 versions & 13 rubygems

Version Path
ndr_error-1.0.0 app/assets/stylesheets/ndr_error/bootstrap/mixins/_buttons.scss
adhoq-0.0.7 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
rails_admin-0.8.1 app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
adhoq-0.0.6 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails_admin-0.7.0/app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-0.7.0 app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
spiderfw-0.6.38 apps/core/components/public/bootstrap_3/scss/mixins/_buttons.scss
rails_admin-0.6.8 app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
adhoq-0.0.5 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
adhoq-0.0.4 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
assets-rails-0.2.0 app/assets/stylesheets/bootstrap/v3.2.0/mixins/_buttons.scss
lanes-0.1.9 client/lanes/styles/bootstrap/old/mixins/_buttons.scss
spiderfw-0.6.37 apps/core/components/public/bootstrap_3/scss/mixins/_buttons.scss
lanes-0.1.8 client/lanes/styles/bootstrap/old/mixins/_buttons.scss
spiderfw-0.6.35 apps/core/components/public/bootstrap_3/scss/mixins/_buttons.scss
lanes-0.1.7 client/lanes/styles/bootstrap/old/mixins/_buttons.scss
rails_admin-0.6.7 app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
spiderfw-0.6.34 apps/core/components/public/bootstrap_3/scss/mixins/_buttons.scss
lanes-0.1.6 client/lanes/styles/bootstrap/old/mixins/_buttons.scss
lanes-0.1.5 client/lanes/styles/bootstrap/old/mixins/_buttons.scss