Sha256: f175606a34f8d438e6dab1bb0522f0bfb97ca0df0166f81425bab8021d9b2c41

Contents?: true

Size: 1.51 KB

Versions: 160

Compression:

Stored size: 1.51 KB

Contents

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


// 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
  .alert-link {
    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-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
.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-bg, $alert-success-border, $alert-success-text);
}
.alert-info {
  @include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
}
.alert-warning {
  @include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
}
.alert-danger {
  @include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
}

Version data entries

160 entries across 148 versions & 15 rubygems

Version Path
rails_admin-2.3.1 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.3.0 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-3.0.0.beta2 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-3.0.0.beta vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.2.1 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.2.0 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.1.1 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.1.0 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
adhoq-1.0.2 app/assets/stylesheets/adhoq/bootstrap/_alerts.scss
adhoq-1.0.1 app/assets/stylesheets/adhoq/bootstrap/_alerts.scss
rails_admin-2.0.2 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-1.4.3 app/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.0.1 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.0.0 vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.0.0.rc vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
rails_admin-2.0.0.beta app/assets/stylesheets/rails_admin/bootstrap/_alerts.scss
adhoq-1.0.0 app/assets/stylesheets/adhoq/bootstrap/_alerts.scss
adhoq-0.5.0 app/assets/stylesheets/adhoq/bootstrap/_alerts.scss
bootstrap-sass-3.2.0.4 assets/stylesheets/bootstrap/_alerts.scss
rails_admin-1.4.2 app/assets/stylesheets/rails_admin/bootstrap/_alerts.scss