JSFiddle - React, Tailwind, and code Playground
by Kocsten
HTML
<div>
<label>
<input type="checkbox" class="sukirsaxrun_kilazsamun checkbox" checked />
Скрипты
</label>
<label>
<input type="checkbox" class="sukirsaxrun_kilazsamun checkbox" />
Дизайна
</label>
<label>
<input type="checkbox" class="sukirsaxrun_kilazsamun checkbox" />
zornet.ru
</label>
</div>
<div>
<label>
<input type="radio" class="sukirsaxrun_kilazsamun radio" name="example" checked />
Шаблоны
</label>
<label>
<input type="radio" class="sukirsaxrun_kilazsamun radio" name="example" />
Дизайна
</label>
<label>
<input type="radio" class="sukirsaxrun_kilazsamun radio" name="example" />
zornet.ru
</label>
</div>
CSS
*{font-family: 'Roboto', sans-serif;}
@keyframes click-wave {
0% {
height: 37px;
width: 37px;
opacity: 0.35;
position: relative;
}
100% {
height: 195px;
width: 195px;
margin-left: -75px;
margin-top: -75px;
opacity: 0;
}
}
.sukirsaxrun_kilazsamun {
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
position: relative;
top: 12px;
right: 0;
bottom: 0;
left: 0;
height: 38px;
width: 38px;
transition: all 0.15s ease-out 0s;
background: #5d6e86;
border: none;
color: #f3f3f7;
cursor: pointer;
display: inline-block;
margin-right: 0.5rem;
outline: none;
position: relative;
z-index: 1000;
border-radius: 78px;
border: 2px solid #f5f8fd;
}
.sukirsaxrun_kilazsamun:hover {
background: #8b97a7;
}
.sukirsaxrun_kilazsamun:checked {
background: #3098cc;
border-radius: 95px;
border: 2px solid #f5f8fd;
}
.sukirsaxrun_kilazsamun:checked::before {
height: 38px;
width: 38px;
position: absolute;
content: '✔';
display: inline-block;
font-size: 27px;
text-align: center;
line-height: 38px;
}
.sukirsaxrun_kilazsamun:checked::after {
-webkit-animation: click-wave 0.65s;
-moz-animation: click-wave 0.65s;
animation: click-wave 0.65s;
background: #40e0d0;
content: '';
display: block;
position: relative;
z-index: 100;
}
.sukirsaxrun_kilazsamunradio {
border-radius: 50%;
}
.sukirsaxrun_kilazsamun.radio::after {
border-radius: 50%;
}
body {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: box;
background: #d4d4d4;
color: #575a5f;
font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
text-align: center;
}
body div {
padding: 5rem;
}
body label {
display: block;
line-height: 38px;
}