Sha256: c77901abe8d7eec03a4bb84eb5b28c5b2de740aa8f73b5fc032587e338dacb6a

Contents?: true

Size: 1.68 KB

Versions: 7

Compression:

Stored size: 1.68 KB

Contents

//
// Alerts
// --------------------------------------------------

// Mixin
@mixin alert-variant($background, $border, $text-color) {
  background-color: $background;
  border-color: $border;
  color: $text-color;

  hr { border-top-color: darken($border, 5%); }
  a { color: darken($text-color, 10%); }
}


// Base styles
// -------------------------

.alert {
  padding: $alert-padding;
  margin-bottom: $line-height-computed;
  border: 1px solid transparent;
  border-radius: $alert-border-radius;

  // Headings for larger alerts
  h4 {
    margin-top: 0;
    // Specified for the h4 to prevent conflicts of changing $headings-color
    color: inherit;
  }
  // Provide class for links that match alerts
  a{
    font-weight: $alert-link-font-weight;
  }

  // Improve alignment and spacing of inner content
  > p,
  > ul {
    margin-bottom: 0;
  }
  > p + p {
    margin-top: 5px;
  }
}

// Dismissible alerts
//
// Expand the right padding and account for the close button's positioning.
.alert.dismissible {
  padding-right: ($alert-padding + 20);

  // Adjust close link position
  .close {
    position: relative;
    top: -2px;
    right: -21px;
    color: inherit;
  }
}

// Alternate styles
//
// Generate contextual modifier classes for colorizing the alert.

.alert{
  &.success {@include alert-variant($alert-success-background, $alert-success-border, $alert-success-text); }
  &.info    {@include alert-variant($alert-info-background,    $alert-info-border,    $alert-info-text);    }
  &.warning {@include alert-variant($alert-warning-background, $alert-warning-border, $alert-warning-text); }
  &.danger  {@include alert-variant($alert-danger-background,  $alert-danger-border,  $alert-danger-text);  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mice-0.2.10 vendor/assets/stylesheets/mice/_alerts.scss
mice-0.2.9 vendor/assets/stylesheets/mice/_alerts.scss
mice-0.2.8 vendor/assets/stylesheets/mice/_alerts.scss
mice-0.2.7 vendor/assets/stylesheets/mice/_alerts.scss
mice-0.2.5 vendor/assets/stylesheets/mice/_alerts.scss
mice-0.2.4 vendor/assets/stylesheets/mice/_alerts.scss
mice-0.2.3 vendor/assets/stylesheets/mice/_alerts.scss