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
rails_admin-2.3.1 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.3.0 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-3.0.0.beta2 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-3.0.0.beta vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.2.1 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.2.0 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.1.1 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.1.0 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
adhoq-1.0.2 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
adhoq-1.0.1 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
rails_admin-2.0.2 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-1.4.3 app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.0.1 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.0.0 vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.0.0.rc vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
rails_admin-2.0.0.beta app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss
adhoq-1.0.0 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
adhoq-0.5.0 app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss
bootstrap-sass-3.2.0.4 assets/stylesheets/bootstrap/mixins/_buttons.scss
rails_admin-1.4.2 app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss