Sha256: ce4278dfb5128190dbfbbce1fcf232636d54ad67fe29a4f09aa6ab63fe615dd8

Contents?: true

Size: 1.99 KB

Versions: 7

Compression:

Stored size: 1.99 KB

Contents

@mixin button() {
  border-radius: 3px;
  display: inline-block;
  @include transition-button();
  cursor: pointer;

  &:active, &:focus {
    outline: 0;
  }
}

@mixin primary-button($background-color, $color) {
  background-color: $background-color;
  color: $color;
  @include button();

  &:hover {
    background-color: lighten($background-color, 10%);
  }

  &:active, &:focus {
    background-color: darken($background-color, 10%); 
  }
}

@mixin secondary-button($color) {
  background-color: #fff;
  color: $color;
  border: 1px solid $color;
  @include button();

  &:hover {
    color: #fff;
    background-color: $color;
  }

  &:active, &:focus {
    background-color: darken($color, 10%);
    color: #fff;
  }
}

@mixin secondary-dropdown($color) {
  @include secondary-button($color);
  padding: 6px 25px 6px 10px;
  position: relative;

  &:after {
    @include icon("\f0dd");
    position: absolute;
    right: 8px;
  }

  &:active, &:focus {
    background-color: darken($color, 10%); 
    color: #fff;
  }

  &.disabled, &:disabled {
    color: #76838f;
    background-color: #f3f7f9;
    border-color: #f3f7f9;
    cursor: not-allowed;
    box-shadow: none;
    opacity: .65;
  }
}

@mixin group-button($color) {
  a {
    display: inline-block;
    color: $color;
    border-top: 1px solid $color;
    border-bottom: 1px solid $color;
    float: left;
    padding: 6px 10px;
    border-right: 1px solid $color;
    @include transition-button();
  }

  &:first-child a {
    border-left: 1px solid $color;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
  }

  &:last-child a {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
  }

  &:hover {
    a {
      background-color: lighten($color, 10%);
      border-color: lighten($color, 10%);
      color: #fff;
    }
  }

  &:active, &:focus, &.selected {
    a {
      background-color: darken($color, 10%);
      border-color: darken($color, 10%);
      color: #fff;
    }
  }
}

@mixin little-button() {
  padding: 6px 12px;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arctic_admin-1.2.7 app/assets/stylesheets/mixins/_buttons_mixins.scss
arctic_admin-1.2.6 app/assets/stylesheets/mixins/_buttons_mixins.scss
arctic_admin-1.2.5 app/assets/stylesheets/mixins/_buttons_mixins.scss
arctic_admin-1.2.4 app/assets/stylesheets/mixins/_buttons_mixins.scss
arctic_admin-1.2.3 app/assets/stylesheets/mixins/_buttons_mixins.scss
arctic_admin-1.2.2 app/assets/stylesheets/mixins/_buttons_mixins.scss
arctic_admin-1.2.1 app/assets/stylesheets/mixins/_buttons_mixins.scss