Alerts

Alert info boxes for various scenarios. Whilst these contain opinionated styling they only posses the minimum of css to allow you to easier hook into and override those styles.

The dismiss functionality is added by a JavaScript plugin which comes with a markup API that allows running the plugin without writing a single line of JavaScript. This is Responsive's first class API and should be your first consideration when using a plugin.


Default

x

Alert block

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Phasellus vitae nibh justo. Integer a ligula vel enim ultricies mollis ut ac tortor.

Success

Add class .alert-success.

x

Success Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Phasellus vitae nibh justo. Integer a ligula vel enim ultricies mollis ut ac tortor.

Warning

Add class .alert-warning.

x

Warning Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Phasellus vitae nibh justo. Integer a ligula vel enim ultricies mollis ut ac tortor.

Error

Add class .alert-error.

x

Error Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Phasellus vitae nibh justo. Integer a ligula vel enim ultricies mollis ut ac tortor.

Info

Add class .alert-info.

x

Info Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Phasellus vitae nibh justo. Integer a ligula vel enim ultricies mollis ut ac tortor.

The Markup

<div class="alert">
    <a data-dismiss-target=".alert" href="#" class="close">x</a>
        <h4 class="alert-heading">Alert block</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
        <p>Phasellus vitae nibh justo. Integer a ligula vel enim ultricies mollis ut ac tortor.</p>
</div>