JSFiddle - React, Tailwind, and code Playground

by Kate Masiuk

HTML

<div class="scale"></div>
<div class="plus-minus">6</div>

CSS

div.scale {
    background: #A4A4A4;
    width: 100%;
    height: 45px;
    border-radius: 5px;
}

div.scale::before {
    content: '9691';
    width: 100px;
    height: 33px;
    color: #fff;
    font-size: large;
    background: #A5D552;
    display: block;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    text-align: center;
    padding-top: 12px;
}

.plus-minus {
    color: #fff;
    float: right;
    margin-right: 15px;
    margin-top: -35px;
}

.plus-minus::before, .plus-minus::after {
    display: inline-block;
    width: 25px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 5px #000;
    font-family: Impact;
}

.plus-minus::before {
    content: '-';
    background: #A43131;
    height: 24px;
    margin-right: 10px;
    padding-top: 1px;
}

.plus-minus::after {
    content: '+';
    margin-left: 10px;
    background: #A5D552;
    height: 23px;
    padding-top: 2px;
}