Sha256: 51f166aef3b7157c350074533de74c0dd677b0a3ff829970dc43b0e1ad407688

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

button,
[type="button"],
[type="reset"],
[type="submit"],
.button {
  appearance: none;
  background-color: $action-color;
  border: 0;
  border-radius: $base-border-radius;
  color: $white;
  cursor: pointer;
  display: inline-block;
  font-family: $base-font-family;
  font-size: $base-font-size;
  -webkit-font-smoothing: antialiased;
  font-weight: $bold-font-weight;
  line-height: 1;
  padding: $small-spacing $base-spacing;
  text-decoration: none;
  transition: background-color $base-duration $base-timing;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  &:not(.link):hover {
    background-color: mix($black, $action-color, 20%);
    color: $white;
  }

  &:not(.link):focus {
    outline: $focus-outline;
    outline-offset: $focus-outline-offset;
  }

  &:not(.link):disabled:hover {
    background-color: $action-color;
  }
}

.button--alt {
  background-color: transparent;
  border: $base-border;
  border-color: $blue;
  color: $blue;
}

.button--danger {
  background-color: $red;

  &:hover {
    background-color: mix($black, $red, 20%);
    color: $white;
  }
}

.button--nav {
  margin-bottom: $base-spacing;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 app/assets/stylesheets/administrate/components/_buttons.scss
administrate-1.0.0.beta2 app/assets/stylesheets/administrate/components/_buttons.scss