galaxy/Radio-buttons/AmIt-DasIT_neat-turkey-32.html

52 lines
1.1 KiB
HTML

<div class="radio-input">
<label class="label">
<input type="radio" name="radio" checked="">
<span class="check"></span>
</label>
<label class="label">
<input type="radio" name="radio">
<span class="check"></span>
</label>
<label class="label">
<input type="radio" name="radio">
<span class="check"></span>
</label>
</div>
<style>
/* From Uiverse.io by AmIt-DasIT - Tags: dark, shadow, radio, neumorphism */
.radio-input .label input {
display: none;
}
.radio-input {
display: flex;
gap: 20px;
}
.radio-input .label {
display: flex;
}
.radio-input .label .check {
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
cursor: pointer;
transition: 0.3s;
border: 3px solid transparent;
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5),
-1px -1px 4px rgba(255, 255, 255, 0.5);
}
.radio-input .label input:checked + .check {
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5),
-1px -1px 4px rgba(255, 255, 255, 0.5),
inset 3px 3px 6px rgba(0, 0, 0, 0.5),
inset -1px -1px 4px rgba(255, 255, 255, 0.5);
transform: scale(1.1);
}
</style>