Interactive interface for browsing global, full-resolution satellite imagery
@use "variables";
.form-range {
&::-moz-range-track {
height: 6px;
background-color: #4f4f4f;
}
&::-ms-track {
height: 6px;
background-color: #4f4f4f;
}
// Customize the handle
&::-webkit-slider-thumb {
margin-top: -8px;
width: 22px;
height: 22px;
background-color: white;
border: 2px solid #ABE2FB;
border-radius: 50%;
cursor: grab;
}
&::-moz-range-thumb {
width: 22px;
height: 22px;
background-color: white;
border: 2px solid #ABE2FB;
border-radius: 50%;
cursor: grab;
}
&::-ms-thumb {
width: 22px;
height: 22px;
background-color: white;
border: 2px solid #ABE2FB;
border-radius: 50%;
cursor: grab;
}
// Change the color of the selected portion
&::-webkit-slider-runnable-track {
height: 4px;
background: linear-gradient(
to right,
#3e7ac1 0%,
#3e7ac1 var(--value-percent, 0%),
#4f4f4f var(--value-percent, 0%),
#4f4f4f 100%
);
}
&:not(.double-range)::-moz-range-progress {
height: 4px;
background-color: #3e7ac1;
}
}
.form-range.form-range-compact {
height: 14px;
cursor: pointer;
&::-webkit-slider-thumb {
margin-top: -5px;
width: 14px;
height: 14px;
background-color: #444;
border-color: #444;
}
&::-moz-range-thumb {
width: 14px;
height: 14px;
background-color: #444;
border-color: #444;
}
&::-ms-thumb {
width: 14px;
height: 14px;
background-color: #444;
border-color: #444;
}
&::-webkit-slider-runnable-track {
height: 4px;
background: linear-gradient(
to right,
#3e7ac1 0%,
#3e7ac1 var(--value-percent, 0%),
#b5b5b5 var(--value-percent, 0%),
#b5b5b5 100%
);
}
&::-moz-range-track {
height: 4px;
background-color: #b5b5b5;
}
// Only show the focus ring for keyboard focus
&:focus:not(:focus-visible) {
&::-webkit-slider-thumb {
box-shadow: none;
}
&::-moz-range-thumb {
box-shadow: none;
}
}
}
.form-range.range-mobile {
&::-webkit-slider-runnable-track {
height: 10px;
width: 300px;
}
&::-moz-range-track {
height: 10px;
width: 300px;
}
&::-ms-track {
height: 10px;
width: 300px;
}
&::-webkit-slider-thumb {
width: 30px;
height: 30px;
}
&::-moz-range-thumb {
width: 30px;
height: 30px;
}
&::-ms-thumb {
width: 30px;
height: 30px;
}
}
// used in compare mode opacity slider
.range-tooltip {
position: absolute;
left: 50%;
top: -20%;
background-color: #666;
padding: 5px;
border-radius: 4px;
transform: translate(-50%, -100%);
}
.palette-threshold-range {
width: 85% ;
padding-top: 8px;
}
.double-range {
&.start-range::-webkit-slider-runnable-track {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
background: linear-gradient(
to right,
#4f4f4f 0%,
#4f4f4f var(--min-range-percent),
#3e7ac1 var(--min-range-percent),
#3e7ac1 100%
);
}
&.start-range::-moz-range-track {
height: 4px;
border: solid 1px #4f4f4f;
border-left: none;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
background: linear-gradient(
to right,
#4f4f4f 0%,
#4f4f4f var(--min-range-percent),
#3e7ac1 var(--min-range-percent),
#3e7ac1 100%
);
}
&.end-range::-webkit-slider-runnable-track {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background: linear-gradient(
to right,
#3e7ac1 0%,
#3e7ac1 var(--max-range-percent),
#4f4f4f var(--max-range-percent),
#4f4f4f 100%
);
}
&.end-range::-moz-range-track {
height: 4px;
border: solid 1px #4f4f4f;
border-left: none;
border-right: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background: linear-gradient(
to right,
#3e7ac1 0%,
#3e7ac1 var(--max-range-percent),
#4f4f4f var(--max-range-percent),
#4f4f4f 100%
);
}
}