|
|
@ -1,12 +1,9 @@ |
|
|
|
.checkbox-symbol { |
|
|
|
.checkbox-symbol { |
|
|
|
position: absolute; |
|
|
|
|
|
|
|
width: 0; |
|
|
|
|
|
|
|
height: 0; |
|
|
|
|
|
|
|
pointer-events: none; |
|
|
|
pointer-events: none; |
|
|
|
user-select: none; |
|
|
|
user-select: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox-container { |
|
|
|
.checkbox-container { |
|
|
|
box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
color: #222; |
|
|
|
color: #222; |
|
|
|
height: 30px; |
|
|
|
height: 30px; |
|
|
@ -14,18 +11,18 @@ |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
flex-flow: row wrap; |
|
|
|
flex-flow: row wrap; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox-container * { |
|
|
|
.checkbox-container * { |
|
|
|
box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox-input { |
|
|
|
.checkbox-input { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
visibility: hidden; |
|
|
|
visibility: hidden; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox { |
|
|
|
.checkbox { |
|
|
|
user-select: none; |
|
|
|
user-select: none; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
padding: 6px 8px; |
|
|
|
padding: 6px 8px; |
|
|
@ -33,22 +30,22 @@ |
|
|
|
overflow: hidden; |
|
|
|
overflow: hidden; |
|
|
|
transition: all 0.3s ease; |
|
|
|
transition: all 0.3s ease; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox:not(:last-child) { |
|
|
|
.checkbox:not(:last-child) { |
|
|
|
margin-right: 6px; |
|
|
|
margin-right: 6px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox:hover { |
|
|
|
.checkbox:hover { |
|
|
|
background: inherit; |
|
|
|
background: inherit; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox span { |
|
|
|
.checkbox span { |
|
|
|
vertical-align: middle; |
|
|
|
vertical-align: middle; |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox span:first-child { |
|
|
|
.checkbox span:first-child { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
flex: 0 0 18px; |
|
|
|
flex: 0 0 18px; |
|
|
|
width: 18px; |
|
|
|
width: 18px; |
|
|
@ -57,9 +54,9 @@ |
|
|
|
transform: scale(1); |
|
|
|
transform: scale(1); |
|
|
|
border: 1px solid #cccfdb; |
|
|
|
border: 1px solid #cccfdb; |
|
|
|
transition: all 0.3s ease; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox span:first-child svg { |
|
|
|
.checkbox span:first-child svg { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 3px; |
|
|
|
top: 3px; |
|
|
|
left: 2px; |
|
|
|
left: 2px; |
|
|
@ -69,29 +66,29 @@ |
|
|
|
stroke-dashoffset: 16px; |
|
|
|
stroke-dashoffset: 16px; |
|
|
|
transition: all 0.3s ease; |
|
|
|
transition: all 0.3s ease; |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox span:last-child { |
|
|
|
.checkbox span:last-child { |
|
|
|
padding-left: 8px; |
|
|
|
padding-left: 8px; |
|
|
|
line-height: 18px; |
|
|
|
line-height: 18px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox:hover span:first-child { |
|
|
|
.checkbox:hover span:first-child { |
|
|
|
border-color: #0077ff; |
|
|
|
border-color: #0077ff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox-input:checked + .checkbox span:first-child { |
|
|
|
.checkbox-input:checked + .checkbox span:first-child { |
|
|
|
background: #0077ff; |
|
|
|
background: #0077ff; |
|
|
|
border-color: #0077ff; |
|
|
|
border-color: #0077ff; |
|
|
|
animation: zoom-in-out 0.3s ease; |
|
|
|
animation: zoom-in-out 0.3s ease; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.checkbox-input:checked + .checkbox span:first-child svg { |
|
|
|
.checkbox-input:checked + .checkbox span:first-child svg { |
|
|
|
stroke-dashoffset: 0; |
|
|
|
stroke-dashoffset: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@keyframes zoom-in-out { |
|
|
|
@keyframes zoom-in-out { |
|
|
|
50% { |
|
|
|
50% { |
|
|
|
transform: scale(0.9); |
|
|
|
transform: scale(0.9); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|