Created
September 27, 2019 14:41
-
-
Save SeniorFlacko/abc0c727f08b8a0821cb063cb3356a92 to your computer and use it in GitHub Desktop.
This file contains 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
@import '../styles'; | |
%jci-checkbox { | |
display: block; | |
position: relative; | |
padding-left: 22px; | |
cursor: pointer; | |
user-select: none; | |
margin-top: 6px; | |
> .label { | |
line-height: 20px; | |
display: inline-block; | |
vertical-align: middle; | |
} | |
> .label > .input { | |
position: absolute; | |
opacity: 0; | |
cursor: pointer; | |
height: 0; | |
width: 0; | |
} | |
> .label > .checkmark { | |
box-sizing: border-box; | |
cursor: pointer; | |
position: absolute; | |
top: 2px; | |
left: 1px; | |
height: 16px; | |
width: 18px; | |
&::after { | |
position: absolute; | |
content: ""; | |
display: none; | |
left: 9px; | |
top: -6px; | |
width: 6px; | |
height: 21px; | |
border: solid $white; | |
border-width: 0 2px 2px 0; | |
transform: rotate(39deg); | |
} | |
} | |
> .label > .input:checked + .checkmark::after { | |
display: block; | |
} | |
.razzmatazz-background { | |
background: $razzmatazz; | |
} | |
.fuelyellow-background { | |
background: $fuel-yellow; | |
} | |
.atlantis-background { | |
background: $atlantis; | |
} | |
.silver-background { | |
background: $silver; | |
} | |
.white-background { | |
background: $white; | |
} | |
.studio-background { | |
background: $studio; | |
} | |
.java-background { | |
background: $java; | |
} | |
} | |
:host > .wrapper { | |
@extend %jci-checkbox; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment