01/Structure
Announcement bar
Top strip for statuses, short notices or contact information. It goes before the navbar.
With status
The cb-dot dot pulses with the accent color. Use cb-dot--static to remove the animation.
HTML
<div class="cb-topbar">
<div class="cb-topbar__inner">
<div class="cb-topbar__status"><span class="cb-dot" aria-hidden="true"></span>Todos los sistemas operativos</div>
<div class="cb-topbar__aside">Soporte de lunes a viernes · <a class="cb-topbar__link" href="#">Contacto</a></div>
</div>
</div>
Color states
HTML
<div class="cb-topbar">
<div class="cb-topbar__inner">
<div class="cb-topbar__status"><span class="cb-dot cb-dot--warning" aria-hidden="true"></span>Mantenimiento programado el sábado a las 22:00</div>
</div>
</div>
Classes and modifiers
| Class | Description |
|---|---|
.cb-topbar | Container with a bottom border and small text. |
.cb-topbar__inner | Centered row with the container's maximum width. |
.cb-topbar__status | Main text with room for the dot. |
.cb-topbar__aside | Secondary text. Hidden below 600px. |
.cb-topbar__link | Underlined link inside the bar. |
.cb-dot | Pulsing indicator. Variants --success, --warning, --danger, --static. |
Accessibility
- Mark the dot with
aria-hidden="true": the text already conveys the status. - The dot animation stops with
prefers-reduced-motion.