mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
45 lines
930 B
HTML
45 lines
930 B
HTML
<label class="cyberpunk-checkbox-label">
|
|
<input type="checkbox" class="cyberpunk-checkbox">
|
|
Check me</label>
|
|
<style>
|
|
/* From Uiverse.io by adamgiebl - Tags: checkbox */
|
|
.cyberpunk-checkbox {
|
|
appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid #30cfd0;
|
|
border-radius: 5px;
|
|
background-color: transparent;
|
|
display: inline-block;
|
|
position: relative;
|
|
margin-right: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cyberpunk-checkbox:before {
|
|
content: "";
|
|
background-color: #30cfd0;
|
|
display: block;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) scale(0);
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 3px;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.cyberpunk-checkbox:checked:before {
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
|
|
.cyberpunk-checkbox-label {
|
|
font-size: 18px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
</style>
|