You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
1.8 KiB
97 lines
1.8 KiB
3 years ago
|
.checkbox-symbol {
|
||
|
position: absolute;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
pointer-events: none;
|
||
|
user-select: none;
|
||
|
}
|
||
|
|
||
|
.checkbox-container {
|
||
|
box-sizing: border-box;
|
||
|
color: #222;
|
||
|
height: 30px;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
flex-flow: row wrap;
|
||
|
}
|
||
|
|
||
|
.checkbox-container * {
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
.checkbox-input {
|
||
|
position: absolute;
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
|
||
|
.checkbox {
|
||
|
user-select: none;
|
||
|
cursor: pointer;
|
||
|
padding: 6px 8px;
|
||
|
border-radius: 6px;
|
||
|
overflow: hidden;
|
||
|
transition: all 0.3s ease;
|
||
|
display: flex;
|
||
|
}
|
||
|
|
||
|
.checkbox:not(:last-child) {
|
||
|
margin-right: 6px;
|
||
|
}
|
||
|
|
||
|
.checkbox:hover {
|
||
|
background: inherit;
|
||
|
}
|
||
|
|
||
|
.checkbox span {
|
||
|
vertical-align: middle;
|
||
|
transform: translate3d(0, 0, 0);
|
||
|
}
|
||
|
|
||
|
.checkbox span:first-child {
|
||
|
position: relative;
|
||
|
flex: 0 0 18px;
|
||
|
width: 18px;
|
||
|
height: 18px;
|
||
|
border-radius: 4px;
|
||
|
transform: scale(1);
|
||
|
border: 1px solid #cccfdb;
|
||
|
transition: all 0.3s ease;
|
||
|
}
|
||
|
|
||
|
.checkbox span:first-child svg {
|
||
|
position: absolute;
|
||
|
top: 3px;
|
||
|
left: 2px;
|
||
|
fill: none;
|
||
|
stroke: #fff;
|
||
|
stroke-dasharray: 16px;
|
||
|
stroke-dashoffset: 16px;
|
||
|
transition: all 0.3s ease;
|
||
|
transform: translate3d(0, 0, 0);
|
||
|
}
|
||
|
|
||
|
.checkbox span:last-child {
|
||
|
padding-left: 8px;
|
||
|
line-height: 18px;
|
||
|
}
|
||
|
|
||
|
.checkbox:hover span:first-child {
|
||
|
border-color: #06BAC0;
|
||
|
}
|
||
|
|
||
|
.checkbox-input:checked + .checkbox span:first-child {
|
||
|
background: #06BAC0;
|
||
|
border-color: #06BAC0;
|
||
|
animation: zoom-in-out 0.3s ease;
|
||
|
}
|
||
|
|
||
|
.checkbox-input:checked + .checkbox span:first-child svg {
|
||
|
stroke-dashoffset: 0;
|
||
|
}
|
||
|
|
||
|
@keyframes zoom-in-out {
|
||
|
50% {
|
||
|
transform: scale(0.9);
|
||
|
}
|
||
|
}
|