Created
May 30, 2022 07:33
-
-
Save jenya239/2a692a5a4af069526dda3e5d725d883d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> label { | |
margin-top: 10px; | |
padding-left: 10px; | |
display: grid; | |
grid-template-columns: 12px auto; | |
gap: 12px; | |
input[type='checkbox'] { | |
appearance: none; | |
margin: 0; | |
font: inherit; | |
width: 15px; | |
height: 15px; | |
border: 2px solid #b9b9b9; | |
border-radius: 2px; | |
transform: translateY(1px); | |
outline: none; | |
margin-right: 10px; | |
background-color: transparent; | |
display: grid; | |
place-content: center; | |
&::before { | |
content: ''; | |
width: 0.65em; | |
height: 0.65em; | |
transform: scale(0); | |
transition: 120ms transform ease-in-out; | |
box-shadow: inset 1em 1em #1e1e1e; | |
transform-origin: bottom left; | |
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); | |
} | |
&:checked { | |
background-color: #b9b9b9; | |
} | |
&:checked::before { | |
transform: scale(1); | |
} | |
&:disabled { | |
background-color: #5a5a5a; | |
border: 2px solid #5a5a5a; | |
cursor: not-allowed; | |
} | |
font-style: normal; | |
font-weight: 400; | |
font-size: 12px; | |
line-height: 15px; | |
color: #ffffff; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment