Inline Alerts

Inline alerts are little cards with a specific styling and purpose. They are used where you might have prevously used the Bootstrap 3 alert class to make a light blue or light red box to house content you want to call attention to. These are slightly smaller than those, but they have built in icons and flow with the content a bit better than just a large blue box. They have four main configurable parts: icon, content, color, and size. All inline alerts are also dismissable by setting the close buttons data-dismiss attribute to inlinealert.

Icon

The left side of the inline alert can house any text, but is designed to house an icon glyph using font awesome. Any icon should work. Other content can work, but you may need to manually adjust spacing or sizing to make it fit and work inside the element. The left side will always take up 75px so the component generally needs at least 300 or so pixels to fit comfortably.

An inline alert with a font awesome icon.
33
An inline alert that is not using an icon.

Content

The content consists of two parts, a title and a body. The title is optional, but is recommended and will automatically match the color of the inline alert without additional styling needed.

An inline alert without a title.
Inline Alert Title
An inline alert with a title.

Color

The content consists of two parts, a title and a body. The title is optional, but is recommended and will automatically match the color of the inline alert without additional styling needed.

Danger Title
This alert is using the danger class to result in a red color.
Warning Title
This alert is using the warning class to result in an orange color.

Sizing

When you want to put more than just a line or two in the alert, add the inlinealert-large class and the alert will have a bit more spacing and heading size to result in a more dominant page element.

Larger Inline Alert
Note the title and padding around the element is larger for this type of inline alert.