Skip to content

Instantly share code, notes, and snippets.

@SeniorFlacko
Created September 27, 2019 14:41
Show Gist options
  • Save SeniorFlacko/abc0c727f08b8a0821cb063cb3356a92 to your computer and use it in GitHub Desktop.
Save SeniorFlacko/abc0c727f08b8a0821cb063cb3356a92 to your computer and use it in GitHub Desktop.
@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