Skip to content

Instantly share code, notes, and snippets.

@florianpircher
Created September 23, 2018 16:56
Show Gist options
  • Save florianpircher/e64b49f7f381c3550e95728330323b83 to your computer and use it in GitHub Desktop.
Save florianpircher/e64b49f7f381c3550e95728330323b83 to your computer and use it in GitHub Desktop.
hr {
--line-color: currentColor;
--line-length: 4.5rem;
--line-offset: 1.5rem;
position: relative;
color: var(--color-cc05);
border: none;
margin-top: 1em;
margin-bottom: 1em;
}
hr::after {
display: block;
font-size: 1.75rem;
text-align: center;
content: '❦';
}
hr::before {
position: absolute;
content: '';
width: var(--line-length);
height: 1px;
background-color: var(--line-color);
margin-left: calc(-1 * var(--line-offset) - var(--line-length));
box-shadow: calc(2 * var(--line-offset) + var(--line-length)) 0 0 var(--line-color);
top: 50%;
left: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment