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