JSFiddle - React, Tailwind, and code Playground

by Alex Baumgertner

HTML

<ul class="leaders">
    <li>
        <span class="description">Pierwszy element</span>
        <span class="destination">2</span>
    </li>
    <li>
        <span class="description">Drugi punkt</span>
        <span class="destination">5</span>
    </li>
        <li>
        <span class="description">Trzeci</span>
        <span class="destination">6</span>
    </li>
</ul>

CSS

body {
background: #feffff; /* Old browsers */
background: -moz-linear-gradient(left,  #feffff 0%, #ddf1f9 50%, #a0d8ef 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#feffff), color-stop(50%,#ddf1f9), color-stop(100%,#a0d8ef)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left,  #feffff 0%,#ddf1f9 50%,#a0d8ef 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left,  #feffff 0%,#ddf1f9 50%,#a0d8ef 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left,  #feffff 0%,#ddf1f9 50%,#a0d8ef 100%); /* IE10+ */
background: linear-gradient(to right,  #feffff 0%,#ddf1f9 50%,#a0d8ef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#a0d8ef',GradientType=1 ); /* IE6-9 */

}

ul.leaders {
    list-style: none;
    margin-top: -0.3em;
}

ul.leaders li {
    height: 1.2em;
    display: block;
    border-bottom: 1px dotted #000;
}

ul.leaders .description,
ul.leaders .destination {
    display: block;
    margin: 0.3em 0 -0.3em 0;
    background: #fff;
}

ul.leaders .description {
    float: left;
    padding-right: 0.2em;
}

ul.leaders .destination {
    float: right;
    padding-left: 0.2em;
}

JavaScript

// dot leaders