Sha256: 5ccaf02d8e8d956cce57916d1c42a8aacf41778d332803d681bcdcfdd7a2d3aa

Contents?: true

Size: 1.69 KB

Versions: 2

Compression:

Stored size: 1.69 KB

Contents

@import "active_admin/mixins/utilities";

@mixin default-button {
  @include gradient(lighten($primary-color, 15%), darken($primary-color, 12%));
  @include rounded(200px);
  @include text-shadow(#000);
  @include box-shadow(0 1px 0px rgba(0,0,0,0.10), 0 0 0 1px rgba(255,255,255, 0.2) inset);
  border: solid 1px #484e53;
  @include border-colors(#616a71, #484e53, #363b3f);
  color: #efefef;
  display: inline-block;
  font-weight: bold;
  font-size: 1.0em;
  @include sans-family;
  line-height: 12px;
  margin-right: 3px;
  padding: 7px 16px 6px;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  
  &:hover {
    color: #FFF;
    @include icon-color(#fff);
    @include gradient(lighten($primary-color, 18%), darken($primary-color, 9%));
  }
  
  &:active {
    @include box-shadow(0 1px 3px rgba(0,0,0,0.40) inset, 0 1px 0 0px #FFF);
    @include gradient(lighten($primary-color, 13%), darken($primary-color, 14%));
  }
}

@mixin light-button {
  @include default-button;
  @include gradient(#fdfdfd, #e8e8e8);
  @include box-shadow(0 1px 0px rgba(0,0,0,0.10), 0 0 0 1px rgba(255,255,255, 0.8) inset);
  @include border-colors(#d3d3d3, #c7c7c7, #c2c2c2);
  @include text-shadow;
  color: #777;
  &:hover {
    @include icon-color(#444);
    color: #444;
    @include gradient(#fdfdfd, #eaeaea);
  }
  &:active {
    @include box-shadow(0 1px 3px rgba(0,0,0,0.18) inset, 0 1px 0 0px #EEE);
    @include gradient(#fcfcfc, #e5e4e5);
  }
  
  &.disabled {
    color: #777;
    cursor: default;
    opacity: 0.6;
    
    &:hover {
      color: #777;
    }
    &:active {
      @include box-shadow(0 1px 0px rgba(0,0,0,0.10), 0 0 0 1px #FFF inset);
    }
  }
}

@mixin dark-button {
  @include default-button;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
andrewroth_activeadmin-0.3.4.4 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
andrewroth_activeadmin-0.3.4.3 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss