Sha256: 6fb0ab28d0fa6e7bcdde048fb0c41a2f2942a7d271c645040332b63ebb8bf359

Contents?: true

Size: 1.56 KB

Versions: 6

Compression:

Stored size: 1.56 KB

Contents

%thredded--button {
  appearance: none;
  -webkit-font-smoothing: antialiased;
  background: $thredded-button-background;
  border-radius: $thredded-button-border-radius;
  border: none;
  color: $thredded-button-color;
  cursor: pointer;
  display: inline-block;
  font-family: $thredded-button-font-family;
  font-size: $thredded-button-font-size;
  font-weight: $thredded-button-font-weight;
  line-height: $thredded-button-line-height;
  padding: 0.75em 1em;
  text-decoration: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;

  &:hover,
  &:focus {
    background-color: $thredded-button-hover-background;
    color: $thredded-button-hover-color;
    text-decoration: none;
  }

  &:focus {
    box-shadow: 0 0 3px $thredded-button-background;
    outline: none;
  }

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

    &:hover {
      background: $thredded-button-background;
    }
  }
}

.thredded--button-light {
  background-color: $thredded-button-light-background;
  color: $thredded-button-light-color;

  &:hover,
  &:active,
  &:focus {
    background-color: $thredded-button-light-hover-background;
    color: $thredded-button-light-hover-color;
  }
}

.thredded--button-wide {
  width: 100%;
  text-align: center;
}

%thredded--buttons-list {
  text-align: center;
  a, .button_to {
    display: block;
    margin-top: $thredded-small-spacing;
  }
  @include thredded-media-tablet-and-up {
    a, .button_to {
      display: inline-block;
    }
    a + a, .button_to + .button_to {
      margin-left: $thredded-small-spacing;
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.9.2 app/assets/stylesheets/thredded/base/_buttons.scss
thredded-0.9.1 app/assets/stylesheets/thredded/base/_buttons.scss
thredded-0.8.4 app/assets/stylesheets/thredded/base/_buttons.scss
thredded-0.8.2 app/assets/stylesheets/thredded/base/_buttons.scss
thredded-0.7.0 app/assets/stylesheets/thredded/base/_buttons.scss
thredded-0.6.3 app/assets/stylesheets/thredded/base/_buttons.scss