fleet/frontend/components/forms/fields/Slider/_styles.scss

61 lines
1.2 KiB
SCSS

.fleet-slider {
transition: background-color 150ms ease-in-out;
background-color: $core-fleet-black;
border-radius: 12px;
border: 1px solid #eaeaea;
cursor: pointer;
display: inline-block;
height: 22px;
min-width: 40px;
position: relative;
width: 40px;
box-shadow: inset 0 1px 6px 0 rgba(0, 0, 0, 0.2);
&:hover {
background-color: $core-fleet-black;
box-shadow: inset 0 1px 6px 0 rgba(0, 0, 0, 0.2);
}
&--active {
background-color: $core-vibrant-blue;
&:hover {
background-color: $core-vibrant-blue;
}
}
&__wrapper {
display: flex;
align-items: center;
height: 40px;
}
&__dot {
@include size(14px);
@include position(absolute, 0 null null 5px);
transition: left 150ms ease-in-out;
margin-top: 3px;
border-radius: 50%;
background-color: $core-white;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.25);
&--active {
left: 21px;
}
}
&__label {
font-size: $small;
font-weight: $regular;
text-align: left;
vertical-align: text-bottom;
margin-right: 10px;
color: $core-fleet-blue;
&--active {
color: $core-vibrant-blue;
margin-right: 0;
margin-left: 10px;
}
}
}