Sha256: 861687f956cbaa5538396475ed838d77df38a1e689e87830aadb3806a2f6c8f4

Contents?: true

Size: 1.58 KB

Versions: 30

Compression:

Stored size: 1.58 KB

Contents

@mixin basic-button {
  @include rounded(200px);
  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;

  &.disabled {
    opacity: 0.5;
    cursor: default;
  }

}

@mixin default-button {
  @include basic-button;
  @include gradient(lighten($primary-color, 15%), darken($primary-color, 12%));
  @include text-shadow(#000);
  box-shadow: 0 1px 1px rgba(0,0,0,0.10), 0 1px 0 0px rgba(255,255,255, 0.2) inset;
  border: solid 1px #484e53;
  @include border-colors(#616a71, #484e53, #363b3f);
  color: #efefef;

  &:not(.disabled) {
    &:hover{
      @include gradient(lighten($primary-color, 18%), darken($primary-color, 9%));
    }

    &:active {
      box-shadow: 0 1px 3px rgba(0,0,0,0.40) inset, 0 1px 0 0px #FFF;
      @include gradient(lighten($primary-color, 8%), darken($primary-color, 17%));
    }
  }
}

@mixin light-button {
  @include basic-button;
  @include gradient(#FFFFFF, #E7E7E7);
  box-shadow: 0 1px 1px rgba(0,0,0,0.10), 0 1px 0 0 rgba(255,255,255, 0.8) inset;
  border: solid 1px #c7c7c7;
  @include border-colors(#d3d3d3, #c7c7c7, #c2c2c2);
  @include text-shadow;
  color: $primary-color;

  &:not(.disabled) {
    &:hover {
      @include gradient(#FFFFFF, #F1F1F1);
    }

    &:active {
      box-shadow: 0 1px 2px rgba(0,0,0,0.22) inset, 0 1px 0 0px #EEE;
      @include border-colors(#c2c2c2, #b9b9b9, #b7b7b7);
      @include gradient(#F3F3F3, #D8D8D8);
    }
  }

}

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

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
yousty-activeadmin-1.0.17.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.16.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.15.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.14.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.13.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.12.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.11.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.10.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.9.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.8.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.7.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.6.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
yousty-activeadmin-1.0.5.pre app/assets/stylesheets/active_admin/mixins/_buttons.scss
activeadmin-0.6.6 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
activeadmin-0.6.5 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
activeadmin-0.6.4 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
yousty-activeadmin-1.0.4.pre app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
yousty-activeadmin-1.0.3.pre app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
active_administration-0.0.3 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
activeadministration-0.0.2 app/assets/stylesheets/active_admin/mixins/_buttons.css.scss