generalcss
Link
Link styles: underlined, muted, hover-only underline, reset, and parent toggle.
CSS Variables
| Variable | Default | Scope | Description |
|---|---|---|---|
--z-link-font-weight | 500 | .z-link | Font weight of underlined links. |
--z-link-muted-color | var(--z-muted-f) | a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted | Text color of muted links. |
--z-link-muted-color-o | 100% | a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted | Opacity applied to the muted link color. |
--z-link-muted-font-weight | 500 | a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted | Font weight of muted links. |
--z-link-underline-offset | 4px | .z-link | Distance between the text and its underline. |
CSS Classes
| Class | Role | Applies to | Description |
|---|---|---|---|
.z-link | root | .z-link | Underlined link with medium font weight. |
.z-link-muted | modifier | .z-link | Muted-color underlined link; also styles links inside a muted container. |
.z-link-reset | modifier | .z-link | Removes underline and restores normal font weight. |
.z-link-text | modifier | .z-link | Plain text link that underlines on hover. |
.z-link-toggle | modifier | .z-link | Underline-free parent; hovering it underlines .z-link-text children and styles .z-link-muted children. |