mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 07:58:31 +00:00
67 lines
1.4 KiB
SCSS
67 lines
1.4 KiB
SCSS
.kolide-checkbox {
|
|
@include clearfix;
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&__input {
|
|
visibility: hidden;
|
|
margin: 0;
|
|
position: absolute;
|
|
z-index: -1;
|
|
|
|
&:checked + .kolide-checkbox__tick {
|
|
&::after {
|
|
background-color: $brand;
|
|
border: solid 2px $brand;
|
|
}
|
|
|
|
&::before {
|
|
@include transform(rotate(45deg));
|
|
@include position(absolute, 50% null null 50%);
|
|
box-sizing: border-box;
|
|
display: table;
|
|
width: 7px;
|
|
height: 13px;
|
|
margin: -8px 0 0 -4px;
|
|
border: 2px solid $white;
|
|
border-top: 0;
|
|
border-left: 0;
|
|
content: '';
|
|
}
|
|
}
|
|
}
|
|
|
|
&__tick {
|
|
@include size(20px);
|
|
@include position(absolute, 50% null null 0);
|
|
@include transform(translateY(-10px));
|
|
display: inline-block;
|
|
|
|
&::after {
|
|
@include transition(border 75ms ease-in-out, background 75ms ease-in-out);
|
|
@include size(20px);
|
|
border-radius: 2px;
|
|
border: solid 2px $border-medium;
|
|
content: '';
|
|
box-sizing: border-box;
|
|
display: block;
|
|
background-color: $white;
|
|
visibility: visible;
|
|
}
|
|
|
|
&--disabled {
|
|
&::after {
|
|
background-color: $border-medium;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
font-size: 13px;
|
|
font-weight: $normal;
|
|
line-height: 20px;
|
|
letter-spacing: 0.5px;
|
|
color: $text-medium;
|
|
padding-left: 25px;
|
|
}
|
|
}
|