Sha256: 1a0dc4b80fd7ce7b81e98fa47ef2f5fc4c0f9491f9c68106ffd15909d7f94d6d

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

/*

Alerts

Wrap any text and an optional dismiss button in `.alert` for a basic warning alert message.

Markup:
<div class="alert">
  <button type="button" class="close" data-dismiss="alert">&times;</button>
  <strong>Alert!</strong> Best check yourself, you're not looking too good.
</div>

Styleguide 1

*/

@if $alerts {

  .alert {
    padding: $alerts-padding;
    margin-bottom: rhythm();
    @extend %alert;

    p { margin: 0; }

    .close {
      position: relative;
      top: 0;
      right: 0;
    }
  }

/*

Alert Block

For longer messages, increase the padding on the top and bottom of the alert wrapper by adding `.alert-block`.

Markup:
<div class="alert alert--block">
  <button type="button" class="close" data-dismiss="alert">&times;</button>
  <strong>Error</strong>
  <p>The field Number is required and must contain a value.</p>
  <p>The field Product Title is required and must contain a value.</p>
  <p>The field Total Expenses is required and must contain a value.</p>
</div>

Styleguide 1.1

*/


  .alert--block {
    * { margin-bottom: 0; }
    * + * {  margin-top: 5px; }
  }

}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rapido-css-0.2.2 stylesheets/components/_alerts.scss
rapido-css-0.2.1 stylesheets/components/_alerts.scss
rapido-css-0.2.0 stylesheets/components/_alerts.scss
rapido-css-0.1.9 stylesheets/components/_alerts.scss
rapido-css-0.1.8 stylesheets/components/_alerts.scss
rapido-css-0.1.7 stylesheets/components/_alerts.scss
rapido-css-0.1.6 stylesheets/components/_alerts.scss
rapido-css-0.1.5 stylesheets/components/_alerts.scss
rapido-css-0.1.4 stylesheets/components/_alerts.scss
rapido-css-0.1.3 stylesheets/components/_alerts.scss
rapido-css-0.1.2 stylesheets/components/_alerts.scss