Skip to content

Instantly share code, notes, and snippets.

@dorinvancea
Created January 10, 2026 05:12
Show Gist options
  • Select an option

  • Save dorinvancea/7626072edb77225bc4ad8564fadbd8cf to your computer and use it in GitHub Desktop.

Select an option

Save dorinvancea/7626072edb77225bc4ad8564fadbd8cf to your computer and use it in GitHub Desktop.
Dividers
.divider-text {
--_divider-text-gap: var(--divider-text-gap, var(--size-8));
display: flex;
align-items: center;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.divider-text::before, .divider-text::after {
content: "";
height: 1px;
background-color: lightgrey;
flex-grow: 1;
}
.divider-text::before {
margin-inline-end: var(--_divider-text-gap);
}
.divider-text::after {
margin-inline-start: var(--_divider-text-gap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment