JSFiddle - React, Tailwind, and code Playground

by Mr_Vasu

HTML

<div class="mutlit">
    <label>
        <input type="checkbox" />
        <div class="selctBx"><span class="one"></span>Texte</div>
    </label>
</div>
<div class="mutlit">
    <label>
        <input type="checkbox" />
        <div class="selctBx"><span class="one"></span>Texte</div>
    </label>
</div>
<div class="mutlit">
    <label>
        <input type="checkbox" />
        <div class="selctBx"><span class="one"></span>Texte</div>
    </label>
</div>

CSS

body {
    background:skyblue;
}
.mutlit {
    display:inline-block;
    width:100%;
    margin:15px 0;
}
label {
    display:inline-block;
    width:100%;
}
.mutlit input[type="checkbox"] {
    visibility:hidden;
    position:absolute;
    pointer-events:none;
}
:checked + .selctBx {
    background: rgba(255, 255, 255, 0.25);
}
.selctBx {
    border: 1px solid #1a555c;
    background: rgba(0, 0, 0, 0.1);
    height:30px;
    padding:10px;
    position:relative;
}
:checked + .selctBx .one {
    background:green;
    border-radius:50%;
    height:25px;
    width:25px;
    position:absolute;
    top:-6px;
    right:-6px;
}
:checked + .selctBx .one::after {
    content:"";
    position:absolute;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    left: 50%;
    top: 50%;
    -webkit-transform:translate(-50%, -50%) rotate(-46deg) skewX(-2deg);
    -ms-transform: translate(-50%, -50%) rotate(-46deg) skewX(-2deg);
    -o-transform:translate(-50%, -50%) rotate(-46deg) skewX(-2deg);
    -moz-transform:translate(-50%, -50%) rotate(-46deg) skewX(-2deg);
    transform:translate(-50%, -50%) rotate(-46deg) skewX(-2deg);
    z-index: 1;
}