Alerts
SkyLineCSS provides utility classes to create alert messages for displaying important information, warnings, or notifications to users. Alerts are commonly used to convey messages that require attention.
Basic Alert
To create a basic alert, use the .alert class:
<div class="alert">
This is a basic alert message.
</div>Alert Colors
SkyLineCSS provides predefined color classes for alerts:
.alert-primary: Primary alert color.alert-secondary: Secondary alert color.alert-success: Success alert color.alert-danger: Danger alert color.alert-warning: Warning alert color
Example:
<div class="alert alert-primary">
This is a primary alert message.
</div>
<div class="alert alert-success">
This is a success alert message.
</div>
<div class="alert alert-danger">
This is a danger alert message.
</div>
<div class="alert alert-warning">
This is a warning alert message.
</div>Dismissible Alerts
You can create dismissible alerts with a close button using the .alert-dismissible class:
Alert Links
You can include links in alerts:
Alert Headings
You can add headings to alerts using the .alert-heading class:
Alert Icons
You can include icons in alerts using popular icon libraries like Font Awesome:
Alert Transitions
SkyLineCSS provides transition effects for alerts:
.alert-fade: Fade in/out effect.alert-slide: Slide up/down effect
Example:
Alert Sizes
You can adjust the size of alerts using the following classes:
.alert-sm: Small alert size.alert-lg: Large alert size
Example:
Complete Example
Here's a complete example combining different alert styles:
These are some of the available alert styling utilities in SkyLineCSS. You can combine these classes to create various types of alert messages for your projects.
Last updated