Sha256: 7a8fe9a3b3cab9e48c2f37397d7a93d6c95fb0527b8c00aabb957711f8b44580

Contents?: true

Size: 1.51 KB

Versions: 6

Compression:

Stored size: 1.51 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.2

-------------------------------------------------------------------------------------------------------------------- */


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

}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rapido-css-0.1.1 stylesheets/components/_alerts.scss
rapido-css-0.1.0 stylesheets/components/_alerts.scss
rapido-css-0.0.7 stylesheets/components/_alerts.scss
rapido-css-0.0.6 stylesheets/components/_alerts.scss
rapido-css-0.0.5 stylesheets/components/_alerts.scss
rapido-css-0.0.4 stylesheets/components/_alerts.scss