mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
Implements patch policies #31914 - https://github.com/fleetdm/fleet/pull/40816 - https://github.com/fleetdm/fleet/pull/41248 - https://github.com/fleetdm/fleet/pull/41276 - https://github.com/fleetdm/fleet/pull/40948 - https://github.com/fleetdm/fleet/pull/40837 - https://github.com/fleetdm/fleet/pull/40956 - https://github.com/fleetdm/fleet/pull/41168 - https://github.com/fleetdm/fleet/pull/41171 - https://github.com/fleetdm/fleet/pull/40691 - https://github.com/fleetdm/fleet/pull/41524 - https://github.com/fleetdm/fleet/pull/41674 --------- Co-authored-by: Jonathan Katz <44128041+jkatz01@users.noreply.github.com> Co-authored-by: jkatz01 <yehonatankatz@gmail.com> Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Co-authored-by: Jahziel Villasana-Espinoza <jahziel@fleetdm.com>
66 lines
1.3 KiB
SCSS
66 lines
1.3 KiB
SCSS
.fleet-slider {
|
|
transition: background-color 150ms ease-in-out;
|
|
background-color: $ui-fleet-black-50;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
height: 20px;
|
|
min-width: 35px;
|
|
position: relative;
|
|
width: 35px;
|
|
|
|
&:hover {
|
|
background-color: $ui-fleet-black-50;
|
|
}
|
|
|
|
&--active {
|
|
background-color: $core-fleet-green;
|
|
|
|
&:hover {
|
|
background-color: $core-fleet-green;
|
|
}
|
|
}
|
|
|
|
&__wrapper {
|
|
display: flex;
|
|
gap: $pad-small;
|
|
align-items: center;
|
|
height: 24px; // Noticeable with help text below slider
|
|
|
|
&--disabled {
|
|
.fleet-slider {
|
|
@include disabled;
|
|
}
|
|
|
|
.fleet-slider__label {
|
|
@include disabled;
|
|
pointer-events: initial; // Allow label interaction when slider is disabled to view tooltip
|
|
}
|
|
}
|
|
}
|
|
|
|
&__dot {
|
|
@include size(16px);
|
|
@include position(absolute, 2px null null 2px);
|
|
transition: left 150ms ease-in-out;
|
|
border-radius: 50%;
|
|
background-color: $core-fleet-white;
|
|
|
|
&--active {
|
|
left: 17px;
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
display: flex;
|
|
vertical-align: middle;
|
|
gap: $pad-small; // For supporting icons
|
|
font-size: $x-small;
|
|
font-weight: $regular;
|
|
text-align: left;
|
|
}
|
|
|
|
&__help-text {
|
|
@include help-text;
|
|
}
|
|
}
|