JSFiddle - React, Tailwind, and code Playground

by DanialQuinn

HTML

<div class="elements">
  <div class="prev"></div>
  <div class="all"></div>
  <div class="next"></div>
</div>

<div class="elements elements-second">
  <div class="prev"></div>
  <div class="all"></div>
  <div class="next"></div>
</div>

<div class="elements elements-third">
  <div class="prev"></div>
  <div class="all"></div>
  <div class="next"></div>
</div>

CSS

.elements {
    margin: 25px 0 0;
    padding: 25px 30px 0;
    width: 800px;
    display: flex;
    border-top: 1px solid #eee;
}
.elements > div {
    position: relative;
    display: flex;
    color: #5e5e5e;
    width: 50px;
    height: 20px;
    justify-content: center;
    order: 2;
}
.all:before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 25%;
  border: 2px solid;
  position: relative;
  top: 2px;
}
.next:before, .prev:before {
    content: '';
    border: solid currentColor;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg) translateY(-50%);
    position: absolute;
    top: 50%;
}
.prev:after,
.next:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 25px;
  height: 2px;
  background-color: currentColor;
}
.next:before {
    border-width: 0 2px 2px 0;
    right: 1px;
}
.next:after {
    right: 5px;
}
.prev:before {
    left: 7px;
    border-width: 2px 0 0 2px;
}
.prev:after {
	left: 5px;
}

.elements-second .prev,
.elements-third .next{
  display:none;
}

.prev {
    align-self: flex-start;
    order: 1;
}
.all {
    align-self: center;
}
.next {
    align-self: flex-end;
    order: 10;
}