JSFiddle - React, Tailwind, and code Playground
HTML
<div class="mwrating">
<div class="wmminus tooltips" title="Не нравится">−</div>
<div class="mwrat">+1</div>
<div class="wmplus tooltips" title="Нравится">+</div>
</div>
CSS
.mwrating {float:right; margin-top:5px;margin-right:1px;
display: inline-block;
width: 88px;
height: 18px;
}
.wmminus, .wmplus {
width: 19px;
height: 18px;
}
.mwrat {
width: 38px;
height: 18px;
}
.wmminus, .mwrat, .wmplus {
display: inline-block;
float: left;
text-align: center;
line-height: 21px;
position: relative;
}
.wmminus a {
transition: all 0.2s;
display: block;
position: absolute;
top: 0px;
left: 0px;
width: 19px;
height: 18px;
line-height: 16px;
text-align: center;
background: linear-gradient(to bottom, #ff3019 0%,#C20F0F 100%);
border-radius: 50%;
border: 1px solid #D60A07;
border-right: 0px;
box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.24);
font-family: 'Tahoma';
font-size: 15px;
font-weight: 400;
color: #fff;
text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.62);
text-decoration: none;
}
.wmplus a {
transition: all 0.2s;
display: block;
position: absolute;
top: 0px;
left: 0px;
width: 19px;
height: 18px;
line-height: 17px;
text-align: center;
background: linear-gradient(to bottom, #97d624 0%,#00A501 100%);
border-radius: 50%;
border: 1px solid #7EBE0C;
border-left: 0px;
box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.24);
font-family: 'Tahoma';
font-size: 15px;
font-weight: 700;
color: #fff;
text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.33);
text-decoration: none;
}
.wmminus a:hover, .wmplus a:hover {
text-decoration: none;transition: all 0.2s;
text-shadow: 0px 0px 5px #fff;
opacity: 0.8;}
.wmminus a:active, .wmplus a:active {
opacity: 0.5;
}
.mwrat {
font-family: 'Arial';
font-weight: 600;
font-size: 14px;
text-shadow: 0px 1px 1px #fff;
}