JSFiddle - React, Tailwind, and code Playground

by Blink

HTML

<ol>
    <li><a href="#" class="link">Do something cool</a></li>
    <li><a href="#" class="link">Another cool thing</a></li>
    <li><a href="#" class="link">More things</a></li>
</ol>

CSS

body {
    font-family: "Inconsolata", Andale Mono, Monaco, Monospace;
    font-size: 14px;
    padding: 10px;
}

a {
    text-decoration: none;
}

ol {
    counter-reset: li;
}

li {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    margin-bottom: 5px;
}

li > * {
    flex-grow: 0;
    display: block;
}

li::before {
    content: "§ " counter(li);
    counter-increment: li;
    order: 3;
}

li::after {
    flex-grow: 1;
    order: 2;
    margin: 0 5px;
    background: url(http://requirejs.org/i/dot.png) repeat-x left bottom;
    content: '';
    display: block;
}

.link {
    order: 1;
}