2021-08-10 18:25:34 +00:00
|
|
|
.fleet-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 {
|
2021-06-03 17:46:35 +00:00
|
|
|
opacity: 0;
|
2022-01-04 17:49:42 +00:00
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
margin: 2px;
|
|
|
|
|
transform: translateY(3px);
|
2021-06-03 17:46:35 +00:00
|
|
|
|
2021-08-10 18:25:34 +00:00
|
|
|
&:focus + .fleet-checkbox__tick {
|
2021-06-03 17:46:35 +00:00
|
|
|
&::after {
|
|
|
|
|
border-color: $core-vibrant-blue;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-01 18:57:19 +00:00
|
|
|
|
2021-08-10 18:25:34 +00:00
|
|
|
&:checked + .fleet-checkbox__tick {
|
2016-12-01 18:57:19 +00:00
|
|
|
&::after {
|
2021-04-30 21:32:50 +00:00
|
|
|
background-color: $core-vibrant-blue;
|
2021-05-24 17:46:13 +00:00
|
|
|
border: solid 2px $core-vibrant-blue;
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::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;
|
2021-04-30 21:32:50 +00:00
|
|
|
border: 2px solid $core-white;
|
2016-12-01 18:57:19 +00:00
|
|
|
border-top: 0;
|
|
|
|
|
border-left: 0;
|
2021-04-12 13:32:25 +00:00
|
|
|
content: "";
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__tick {
|
|
|
|
|
@include size(20px);
|
2016-12-27 15:32:30 +00:00
|
|
|
@include position(absolute, 50% null null 0);
|
2022-01-04 17:49:42 +00:00
|
|
|
transform: translateY(-8px);
|
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;
|
2021-05-24 17:46:13 +00:00
|
|
|
border-radius: $border-radius;
|
|
|
|
|
border: solid 2px $ui-fleet-black-25;
|
2021-04-12 13:32:25 +00:00
|
|
|
content: "";
|
2016-12-01 18:57:19 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: block;
|
2021-04-30 21:32:50 +00:00
|
|
|
background-color: $core-white;
|
2016-12-01 18:57:19 +00:00
|
|
|
visibility: visible;
|
|
|
|
|
}
|
2016-12-21 17:25:54 +00:00
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
|
&::after {
|
2021-05-24 17:46:13 +00:00
|
|
|
background-color: $ui-fleet-black-25;
|
2016-12-21 17:25:54 +00:00
|
|
|
}
|
|
|
|
|
}
|
2021-06-03 17:46:35 +00:00
|
|
|
|
|
|
|
|
&--indeterminate {
|
|
|
|
|
&::after {
|
|
|
|
|
background-color: $core-vibrant-blue;
|
|
|
|
|
border: solid 1px $core-vibrant-blue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
@include position(absolute, 50% null null 50%);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: block;
|
|
|
|
|
width: 10px;
|
|
|
|
|
margin: -1px 0 0 -5px;
|
|
|
|
|
border: 2px solid $core-white;
|
|
|
|
|
border-top: 0;
|
|
|
|
|
border-left: 0;
|
|
|
|
|
content: "";
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|
2016-12-16 15:54:49 +00:00
|
|
|
|
|
|
|
|
&__label {
|
2021-05-24 17:46:13 +00:00
|
|
|
font-size: $x-small;
|
2021-12-28 18:07:18 +00:00
|
|
|
padding-left: $pad-small;
|
2022-02-28 21:25:06 +00:00
|
|
|
display: inherit;
|
2016-12-16 15:54:49 +00:00
|
|
|
}
|
2016-12-01 18:57:19 +00:00
|
|
|
}
|