2020-04-16 09:33:23 +00:00
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider {
|
2020-04-16 09:33:23 +00:00
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
2023-04-12 10:57:31 +00:00
|
|
|
flex-grow: 1;
|
2020-04-22 10:36:23 +00:00
|
|
|
|
2023-04-12 10:57:31 +00:00
|
|
|
input[type="range"] {
|
|
|
|
height: 2.4em;
|
|
|
|
appearance: none;
|
|
|
|
width: 100%;
|
|
|
|
background: none;
|
2024-01-02 18:56:39 +00:00
|
|
|
font-size: 1em; /* set base multiplier for em units applied later */
|
2023-04-12 10:57:31 +00:00
|
|
|
|
|
|
|
--active-color: $accent;
|
2023-05-09 05:16:40 +00:00
|
|
|
--selection-dot-size: 2.4em;
|
2023-04-12 10:57:31 +00:00
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
--active-color: $slider-background-color;
|
|
|
|
}
|
|
|
|
|
2023-09-28 11:52:26 +00:00
|
|
|
&:focus:not(:focus-visible) {
|
2023-04-12 10:57:31 +00:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-slider-runnable-track {
|
|
|
|
width: 100%;
|
|
|
|
height: 0.4em;
|
|
|
|
background: $slider-background-color;
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 0 solid #000000;
|
|
|
|
}
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
border: 0 solid #000000;
|
2023-05-09 05:16:40 +00:00
|
|
|
width: var(--selection-dot-size);
|
|
|
|
height: var(--selection-dot-size);
|
2023-04-12 10:57:31 +00:00
|
|
|
background: var(--active-color);
|
|
|
|
border-radius: 50%;
|
|
|
|
-webkit-appearance: none;
|
2023-05-09 05:16:40 +00:00
|
|
|
margin-top: calc(2px + 1.2em - var(--selection-dot-size));
|
2023-04-12 10:57:31 +00:00
|
|
|
}
|
|
|
|
&:focus::-webkit-slider-runnable-track {
|
|
|
|
background: $slider-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-range-track {
|
|
|
|
width: 100%;
|
|
|
|
height: 0.4em;
|
|
|
|
background: $slider-background-color;
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 0 solid #000000;
|
|
|
|
}
|
|
|
|
&::-moz-range-progress {
|
|
|
|
height: 0.4em;
|
|
|
|
background: var(--active-color);
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 0 solid #000000;
|
|
|
|
}
|
|
|
|
&::-moz-range-thumb {
|
|
|
|
border: 0 solid #000000;
|
2023-05-09 05:16:40 +00:00
|
|
|
width: var(--selection-dot-size);
|
|
|
|
height: var(--selection-dot-size);
|
2023-04-12 10:57:31 +00:00
|
|
|
background: var(--active-color);
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-ms-track {
|
|
|
|
width: 100%;
|
|
|
|
height: 0.4em;
|
|
|
|
background: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
&::-ms-fill-lower,
|
|
|
|
&::-ms-fill-upper {
|
|
|
|
background: $slider-background-color;
|
|
|
|
border: 0 solid #000000;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
&::-ms-thumb {
|
|
|
|
margin-top: 1px;
|
2023-05-09 05:16:40 +00:00
|
|
|
width: var(--selection-dot-size);
|
|
|
|
height: var(--selection-dot-size);
|
2023-04-12 10:57:31 +00:00
|
|
|
background: var(--active-color);
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
&:focus::-ms-fill-upper {
|
|
|
|
background: $slider-background-color;
|
|
|
|
}
|
|
|
|
&::-ms-fill-lower,
|
|
|
|
&:focus::-ms-fill-lower {
|
|
|
|
background: var(--active-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
2024-01-02 18:56:39 +00:00
|
|
|
font-size: 1em; /* set base multiplier for em units applied later */
|
2023-04-12 10:57:31 +00:00
|
|
|
text-align: center;
|
|
|
|
top: 3em;
|
|
|
|
|
|
|
|
.mx_Slider_selection_label {
|
|
|
|
color: $muted-fg-color;
|
2023-06-29 10:30:25 +00:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2023-04-12 10:57:31 +00:00
|
|
|
}
|
|
|
|
}
|
2020-04-22 10:36:23 +00:00
|
|
|
}
|