File size: 1,132 Bytes
0bfe2e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.slider {
  width: 100%;
  margin: 10px 0;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #1b1b1b 0%,
    #d3d3d3 var(--currentSliderValue),
    #1a1a1a var(--currentSliderValue),
    #1a1a1a 100%
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0.85;
  border-radius: var(--borderRadius);
  height: 15px;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  background: #dfdfdf;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.slider:hover {
  opacity: 1;
}

.slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  background: #dfdfdf;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.slider::-webkit-slider-thumb:active {
  transform: scale(0.9);
}

.slider::-moz-range-thumb:active {
  transform: scale(0.9);
}