2019-04-25 22:09:48 +08:00
|
|
|
x-range {
|
2019-04-26 19:48:23 +08:00
|
|
|
--thumb-size: 8px;
|
|
|
|
--thumb-color: #fff;
|
|
|
|
--thumb-shadow: #000;
|
|
|
|
--track-size: 4px;
|
|
|
|
--track-color: gray;
|
|
|
|
--elapsed-color: lightgray;
|
|
|
|
--remaining-color: transparent;
|
|
|
|
|
|
|
|
--radius: calc(var(--track-size)/2);
|
|
|
|
|
2019-04-30 15:42:16 +08:00
|
|
|
width: 192px;
|
2019-04-25 22:09:48 +08:00
|
|
|
height: 16px;
|
|
|
|
position: relative;
|
|
|
|
|
2019-04-26 19:48:23 +08:00
|
|
|
.-track, .-elapsed, .-remaining {
|
2019-04-25 22:09:48 +08:00
|
|
|
position: absolute;
|
2019-04-26 19:48:23 +08:00
|
|
|
top: calc(50% - var(--track-size)/2);
|
|
|
|
height: var(--track-size);
|
|
|
|
border-radius: var(--radius);
|
2019-04-25 22:09:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.-track {
|
|
|
|
width: 100%;
|
2019-04-26 19:48:23 +08:00
|
|
|
left: 0;
|
|
|
|
background-color: gray;
|
2019-04-25 22:09:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.-elapsed {
|
2019-04-26 19:48:23 +08:00
|
|
|
left: 0;
|
|
|
|
background-color: var(--elapsed-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.-remaining {
|
|
|
|
right: 0;
|
|
|
|
background-color: var(--remaining-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.-inner {
|
|
|
|
position: absolute;
|
|
|
|
left: var(--thumb-size);
|
|
|
|
right: var(--thumb-size);
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2019-04-25 22:09:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.-thumb {
|
2019-04-26 19:48:23 +08:00
|
|
|
all: unset;
|
2019-04-25 22:09:48 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
2019-04-26 19:48:23 +08:00
|
|
|
transform: translate(-50%, -50%);
|
2019-04-25 22:09:48 +08:00
|
|
|
|
|
|
|
border-radius: 50%;
|
2019-04-26 19:48:23 +08:00
|
|
|
width: calc(2*var(--thumb-size));
|
|
|
|
height: calc(2*var(--thumb-size));
|
|
|
|
background-color: var(--thumb-color);
|
|
|
|
box-shadow: 0 0 2px var(--thumb-shadow);
|
|
|
|
}
|
2019-04-25 22:09:48 +08:00
|
|
|
|
2019-04-26 19:48:23 +08:00
|
|
|
&[disabled] {
|
|
|
|
opacity: 0.5;
|
2019-04-25 22:09:48 +08:00
|
|
|
}
|
|
|
|
}
|