mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
* Allow sort by more than one key * created custom tooltip component * remove unused code * fixed style for more layouts * added tooltip to query side panel * tooltips added to setting form * finished settings form * added tooltip for perf impact table headers * tooltip for pack table and user form * tooltip on manage policies page * tooltip for manage schedules * tooltip for automations; spacing for form input * tooltip for automations modal * user form; fixed input with icon component * more user form tooltips * tooltip for homepage; style fixes * replaced many more tooltips with new version * added story for tooltip * added position prop * fixed tests * re-work how we click react-select dropdowns * forcing the update button click * trying a blur * fixed typo * trying blur on another element * temp check-in * replaced tooltip from host details software * more consolidation of tooltip use for software * fixed settings flow test Co-authored-by: Tomas Touceda <chiiph@gmail.com>
90 lines
1.9 KiB
SCSS
90 lines
1.9 KiB
SCSS
.fleet-checkbox {
|
|
@include clearfix;
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&__input {
|
|
opacity: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 2px;
|
|
transform: translateY(3px);
|
|
|
|
&:focus + .fleet-checkbox__tick {
|
|
&::after {
|
|
border-color: $core-vibrant-blue;
|
|
}
|
|
}
|
|
|
|
&:checked + .fleet-checkbox__tick {
|
|
&::after {
|
|
background-color: $core-vibrant-blue;
|
|
border: solid 2px $core-vibrant-blue;
|
|
}
|
|
|
|
&::before {
|
|
@include position(absolute, 50% null null 50%);
|
|
transform: rotate(45deg);
|
|
box-sizing: border-box;
|
|
display: block;
|
|
width: 7px;
|
|
height: 13px;
|
|
margin: -8px 0 0 -3px;
|
|
border: 2px solid $core-white;
|
|
border-top: 0;
|
|
border-left: 0;
|
|
content: "";
|
|
}
|
|
}
|
|
}
|
|
|
|
&__tick {
|
|
@include size(20px);
|
|
@include position(absolute, 50% null null 0);
|
|
transform: translateY(-8px);
|
|
display: inline-block;
|
|
|
|
&::after {
|
|
@include size(20px);
|
|
transition: border 75ms ease-in-out, background 75ms ease-in-out;
|
|
border-radius: $border-radius;
|
|
border: solid 2px $ui-fleet-black-25;
|
|
content: "";
|
|
box-sizing: border-box;
|
|
display: block;
|
|
background-color: $core-white;
|
|
visibility: visible;
|
|
}
|
|
|
|
&--disabled {
|
|
&::after {
|
|
background-color: $ui-fleet-black-25;
|
|
}
|
|
}
|
|
|
|
&--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: "";
|
|
}
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
font-size: $x-small;
|
|
padding-left: $pad-small;
|
|
display: inherit;
|
|
}
|
|
}
|