navigationcss
Slide Nav
Arrow-style previous/next buttons for carousels and lightboxes, with a large variant and container positioning.
CSS Variables
| Variable | Default | Scope | Description |
|---|---|---|---|
--z-slidenav-active-bg | var(--z-bg) | .z-slidenav | Active background base color, mixed with transparency using --z-slidenav-active-bg-o. |
--z-slidenav-active-bg-o | 100% | .z-slidenav | Active background opacity percentage used in the mix. |
--z-slidenav-active-color | var(--z-bg-f) | .z-slidenav | Active icon base color, mixed with transparency using --z-slidenav-active-color-o. |
--z-slidenav-active-color-o | 100% | .z-slidenav | Active icon opacity percentage used in the mix. |
--z-slidenav-bg | var(--z-bg) | .z-slidenav | Background base color, mixed with transparency using --z-slidenav-bg-o. |
--z-slidenav-bg-o | 100% | .z-slidenav | Background opacity percentage used in the mix. |
--z-slidenav-border-color | var(--z-border) | .z-slidenav | Border base color, mixed with transparency using --z-slidenav-border-color-o. |
--z-slidenav-border-color-o | var(--z-border-o) | .z-slidenav | Border opacity percentage used in the mix. |
--z-slidenav-border-width | 1px | .z-slidenav | Border width of the arrow button. |
--z-slidenav-height | 2.25rem | .z-slidenav | Height of the arrow button. |
--z-slidenav-hover-bg | var(--z-bg) | .z-slidenav | Hover background base color, mixed with transparency using --z-slidenav-hover-bg-o. |
--z-slidenav-hover-bg-o | 100% | .z-slidenav | Hover background opacity percentage used in the mix. |
--z-slidenav-hover-color | var(--z-bg-f) | .z-slidenav | Hover icon base color, mixed with transparency using --z-slidenav-hover-color-o. |
--z-slidenav-hover-color-o | 100% | .z-slidenav | Hover icon opacity percentage used in the mix. |
--z-slidenav-large-padding | 10px | .z-slidenav-lg | Padding of the large variant. |
--z-slidenav-radius | 9999px | .z-slidenav | Corner radius of the arrow button. |
--z-slidenav-shadow | var(--z-global-shadow-small) | .z-slidenav | Box shadow of the arrow button. |
--z-slidenav-svg-height | 1rem | .z-slidenav | Height of the arrow icon. |
--z-slidenav-svg-width | 1rem | .z-slidenav | Width of the arrow icon. |
--z-slidenav-width | 2.25rem | .z-slidenav | Width of the arrow button. |
CSS Classes
| Class | Role | Applies to | Description |
|---|---|---|---|
.z-slidenav | root | .z-slidenav | Root class of an arrow button. |
.z-slidenav-container | element | .z-slidenav | Wrapper positioning arrows over the content edges. |
.z-slidenav-lg | element | .z-slidenav | Large arrow variant. |
Accessibility
- Carousel/lightbox arrows receive
aria-labelandaria-controlsfrom their controller; standalone arrows need their own labels.