Skip to content
npm ↗ GitHub ↗

Documentation

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.

Todos los sistemas operativos
Soporte de lunes a viernes · Contacto
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

Mantenimiento programado el sábado a las 22:00
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

ClassDescription
.cb-topbarContainer with a bottom border and small text.
.cb-topbar__innerCentered row with the container's maximum width.
.cb-topbar__statusMain text with room for the dot.
.cb-topbar__asideSecondary text. Hidden below 600px.
.cb-topbar__linkUnderlined link inside the bar.
.cb-dotPulsing 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.