2016-12-01 18:57:19 +00:00
|
|
|
.kolide-checkbox {
|
2016-12-16 15:54:49 +00:00
|
|
|
@include clearfix;
|
|
|
|
|
position: relative;
|
2016-12-27 15:32:30 +00:00
|
|
|
display: inline-block;
|
2016-12-16 15:54:49 +00:00
|
|
|
|
2016-12-01 18:57:19 +00:00
|
|
|
&__input {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
margin: 0;
|
2016-12-16 15:54:49 +00:00
|
|
|
position: absolute;
|
2016-12-23 18:40:16 +00:00
|
|
|
z-index: -1;
|
2016-12-01 18:57:19 +00:00
|
|
|
|
|
|
|
|
&:checked + .kolide-checkbox__tick {
|
|
|
|
|
&::after {
|
|
|
|
|
background-color: $brand;
|
|
|
|
|
border: solid 2px $brand;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
@include position(absolute, 50% null null 50%);
|
2019-01-03 20:46:55 +00:00
|
|
|
transform: rotate(45deg);
|
2016-12-01 18:57:19 +00:00
|
|
|
box-sizing: border-box;
|
2017-06-18 18:38:16 +00:00
|
|
|
display: block;
|
2016-12-01 18:57:19 +00:00
|
|
|
width: 7px;
|
|
|
|
|
height: 13px;
|
2017-06-18 18:38:16 +00:00
|
|
|
margin: -8px 0 0 -3px;
|
2016-12-01 18:57:19 +00:00
|
|
|
border: 2px solid $white;
|
|
|
|
|
border-top: 0;
|
|
|
|
|
border-left: 0;
|
|
|
|
|
content: '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__tick {
|
|
|
|
|
@include size(20px);
|
2016-12-27 15:32:30 +00:00
|
|
|
@include position(absolute, 50% null null 0);
|
2019-01-03 20:46:55 +00:00
|
|
|
transform: translateY(-10px);
|
2016-12-01 18:57:19 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
@include size(20px);
|
2019-01-03 20:46:55 +00:00
|
|
|
transition: border 75ms ease-in-out, background 75ms ease-in-out;
|
2016-12-01 18:57:19 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
|
border: solid 2px $border-medium;
|
|
|
|
|
content: '';
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: block;
|
|
|
|
|
background-color: $white;
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
2016-12-21 17:25:54 +00:00
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
|
&::after {
|
|
|
|
|
background-color: $border-medium;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|
2016-12-16 15:54:49 +00:00
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: $normal;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
color: $text-medium;
|
2016-12-27 15:32:30 +00:00
|
|
|
padding-left: 25px;
|
2016-12-16 15:54:49 +00:00
|
|
|
}
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|