Sha256: 7c10157c9ea30b42b8d6711e7c22531780bca03e30f1d23bfa1e4a220eaabc53

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

// Table of Contents
// ==================================================
// Alert
// Colors
// Styles

// Alert
// ==================================================
.alert {
  background: color(light-haze);
  border: 0;
  border-bottom-width: 1px;
  border-style: solid;
  border-color: dark-color(light-haze);
  box-sizing: border-box;
  color: color(black);
  display: block;
  padding: 13px 20px;
  width: 100%;

  .alert-close {
    float: right;
    margin-left: 15px;
  }

  &.absolute,
  &.fixed { z-index: 2060; }
  &.absolute {
    position: absolute;
    width: inherit;
  }
  &.fixed {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
  }
}

// Colors
// ==================================================
@each $name, $color in $colors {
  .alert-color-#{$name} {
    background: color($name);
    border-color: dark-color($name);
    color: text-color-on($name);

    &.alert-outline {
      border-color: color($name);
      color: color($name);
    }
  }
}

// Styles
// ==================================================
.alert-border {
  border-radius: border-radius(b);
  border-width: 1px;
}
.alert-outline { background: color(transparent); }

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_frontend-15.1.6 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.1.5 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.1.4 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.1.3 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.1.2 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.1.1 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.1.0 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.0.23 vendor/assets/stylesheets/components/_alert.scss
active_frontend-15.0.22 vendor/assets/stylesheets/components/_alert.scss