Alert

Contextual feedback messages with a set of variations to suite messages with some type of intention. For the most basic alert use the pam-Alert attribute with a <h1> as title and <p> as message element.

Default styling

Title

Alert message

primary
This is a primary alert.

Title

Alert message

secondary
This is a secondary alert.

Title

Alert message

info
This is not important but may need your attention.

Title

Alert message

success
Congratulations! You have successfully done something.

Title

Alert message

warning
Wow! You better take a look this needs your attention!

Title

Alert message

danger
Oh no! That did no go so well get another pair of glasses and try again.

Title

Alert message

Markup

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

<div pam-Alert="[modifier attribute]">
    <h1>Title</h1>
    <p>Alert message</p>
</div>

Callout

This variation of alerts has a more emphasized styling and is a alternative way to draw attention to information.

Default styling

Title

Callout message

primary
This is primary callout.

Title

Callout message

secondary
This is secondary callout.

Title

Callout message

info
This is not important information, carry on.

Title

Callout message

success
Something was successfully done!

Title

Callout message

warning
Yes, this is something to pay attention to!

Title

Callout message

danger
That went sideways!

Title

Callout message

Markup

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

<div pam-Alert="callout [modifier attribute]">
    <h1>Title</h1>
    <p>Callout message</p>
</div>


Close

pam-Alert="closeable" Adds styling for closeable alert by expanding the right padding and make place for the close icon position.

Eyy! This alert can be terminated, awesome!

×
Markup

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

<div pam-Alert="closeable">
    <p><strong>Eyy!</strong> This alert can be terminated, awesome!</p>
    <div pam-Close="right">×</div>
</div>

Fully loaded

Combine alert sub-objects, throw in a color modifier and add a transaprent divider to create a fully loaded alert!

Title

×

Oh yeah, all alert features closeable, header and link.

Well, that´s just crazy!

Markup

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

<div pam-Alert="info closeable">
    <h1>Title</h1>
    <div pam-Close>×</div>
    <p><strong>Oh yeah</strong>, all alert features closeable, header and link.</p>
    <div pam-Divider="transparent"></div>
    <p>Well, <a pam-Alert-Link href="#">that´s just crazy!</a></p>
</div>

Hooks

.hook-alert .hook-alert-callout .hook-alert-callout-danger .hook-alert-callout-info .hook-alert-callout-primary .hook-alert-callout-secondary .hook-alert-callout-success .hook-alert-callout-warning .hook-alert-danger .hook-alert-info .hook-alert-link .hook-alert-primary .hook-alert-secondary .hook-alert-success .hook-alert-warning