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: 0px;
|
2020-04-22 14:37:46 +00:00
|
|
|
flex-grow: 1;
|
2020-04-16 09:33:23 +00:00
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_dotContainer {
|
2020-04-16 09:33:23 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_bar {
|
2020-04-16 09:33:23 +00:00
|
|
|
display: flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
2020-04-23 09:58:00 +00:00
|
|
|
height: 1em;
|
2020-04-16 09:33:23 +00:00
|
|
|
width: 100%;
|
2020-04-23 09:58:00 +00:00
|
|
|
padding: 0 0.5em; // half the width of a dot.
|
2020-04-16 09:33:23 +00:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_bar > hr {
|
2020-04-16 09:33:23 +00:00
|
|
|
width: 100%;
|
2020-05-06 16:25:54 +00:00
|
|
|
border: 0.2em solid $slider-background-color;
|
2020-04-16 09:33:23 +00:00
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_selection {
|
2020-04-16 09:33:23 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-04-23 09:58:00 +00:00
|
|
|
width: calc(100% - 1em); // 2 * half the width of a dot
|
|
|
|
height: 1em;
|
2020-04-16 09:33:23 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_selectionDot {
|
2020-04-16 09:33:23 +00:00
|
|
|
position: absolute;
|
2020-04-23 09:58:00 +00:00
|
|
|
width: 1.1em;
|
|
|
|
height: 1.1em;
|
2020-05-06 16:25:54 +00:00
|
|
|
background-color: $slider-selection-color;
|
2020-04-16 09:33:23 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
box-shadow: 0 0 6px lightgrey;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_selection > hr {
|
2020-04-16 09:33:23 +00:00
|
|
|
margin: 0;
|
2020-05-06 16:25:54 +00:00
|
|
|
border: 0.2em solid $slider-selection-color;
|
2020-04-16 09:33:23 +00:00
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_dot {
|
2020-04-23 09:58:00 +00:00
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
2020-04-16 09:33:23 +00:00
|
|
|
border-radius: 50%;
|
2020-05-06 16:25:54 +00:00
|
|
|
background-color: $slider-background-color;
|
2020-04-16 09:33:23 +00:00
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_dotActive {
|
2020-05-06 16:25:54 +00:00
|
|
|
background-color: $slider-selection-color;
|
2020-04-16 09:33:23 +00:00
|
|
|
}
|
|
|
|
|
2020-04-21 10:01:52 +00:00
|
|
|
.mx_Slider_dotValue {
|
2020-04-16 09:33:23 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2020-05-06 16:25:54 +00:00
|
|
|
color: $slider-background-color;
|
2020-04-16 11:09:36 +00:00
|
|
|
}
|
2020-04-22 10:36:23 +00:00
|
|
|
|
|
|
|
// The following is a hack to center the labels without adding
|
|
|
|
// any width to the slider's dots.
|
|
|
|
.mx_Slider_labelContainer {
|
2020-04-23 09:58:00 +00:00
|
|
|
width: 1em;
|
2020-04-22 10:36:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Slider_label {
|
|
|
|
position: relative;
|
|
|
|
width: fit-content;
|
|
|
|
left: -50%;
|
|
|
|
}
|