Sha256: 96fbca5e0f946804bc2c2ec2acc857fb099293d802c9a7a82253fc4bfcd24e4b

Contents?: true

Size: 995 Bytes

Versions: 12

Compression:

Stored size: 995 Bytes

Contents

@mixin thredded-alert($font-color, $background-color, $border-color: lighten($font-color, 50%)) {
  background: $background-color;
  border-color: $border-color;
  color: $font-color;

  a {
    color: darken($font-color, 10%);
    text-decoration: underline;

    &:focus,
    &:hover {
      color: darken($font-color, 15%);
    }
  }
}

%thredded--alert {
  border: solid 1px;
  border-radius: 3px;
  margin-bottom: $thredded-base-spacing;
  padding: $thredded-small-spacing;
  text-decoration: none;
}

%thredded--alert--success {
  @include thredded-alert($thredded-alert-success-color, $thredded-alert-success-background);
}

%thredded--alert--danger {
  @include thredded-alert($thredded-alert-danger-color, $thredded-alert-danger-background);
}

%thredded--alert--info {
  @include thredded-alert($thredded-alert-info-color, $thredded-alert-info-background);
}

%thredded--alert--warning {
  @include thredded-alert($thredded-alert-warning-color, $thredded-alert-warning-background);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
thredded-0.7.0 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.6.3 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.6.2 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.6.1 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.6.0 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.5.1 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.5.0 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.4.0 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.3.2 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.3.1 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.3.0 app/assets/stylesheets/thredded/base/_alerts.scss
thredded-0.2.2 app/assets/stylesheets/thredded/base/_alerts.scss