Sha256: baffddf9841caa8fa9ca31c223df478096aacf617af185f6b1c02730df3700b2

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 KB

Contents

@mixin basic-button {
  // default AA style
  @include rounded(200px);

  display: inline-block;
  font-weight: bold;
  font-size: 1em;
  @include sans-family;

  line-height: 12px;
  margin-right: 3px;
  text-decoration: none;

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

  // End default AA style
  padding: $spacer-2 $spacer-4;
  transition: background-color 0.3s;
  box-shadow: $shadow-xs;
}
@mixin primary-button {
  background-color: $primary-emphasis;
  background-image: none;
  color: $primary-on-emphasis;
  border: none;
  text-shadow: none;
  box-shadow: $shadow-s;
  @include body-medium;

  padding: $spacer-3 $spacer-4;

  &:not(.disabled) {
    &:hover {
      background-color: $primary-muted;
      background-image: none;
    }

    &:active {
      box-shadow: $shadow-xs;
      background-image: none;
    }
  }
}

@mixin outline-button {
  // style AA
  @include basic-button;

  outline: solid 1px;
  color: $fg-muted;
  background-color: $bg-subtle;

  &:not(.disabled) {
    &:hover {
      background-color: $bg-default;
    }

    &:active {
      background-color: $bg-emphasis;
      color: $fg-on-emphasis;
    }
  }
}

@mixin light-button {
  @include outline-button;

  &:not(.disabled) {
    &:hover {
      background-color: $bg-subtle;
    }
  }
}

@mixin cancel-link {
  outline: 0;
  box-shadow: none;
  text-decoration: underline;
  padding-left: 0;
  color: $fg-muted;
  background: transparent;

  &:hover {
    text-decoration: none;
    background-color: transparent !important;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
captive-admin-0.2.12 app/assets/stylesheets/captive-admin/mixins/_buttons.scss
captive-admin-0.2.11 app/assets/stylesheets/captive-admin/mixins/_buttons.scss
captive-admin-0.2.9 app/assets/stylesheets/captive-admin/mixins/_buttons.scss
captive-admin-0.2.8 app/assets/stylesheets/captive-admin/mixins/_buttons.scss