-
Notifications
You must be signed in to change notification settings - Fork 247
/
Copy pathform-range.scss
64 lines (58 loc) · 1.18 KB
/
form-range.scss
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
63
64
@import "vars";
@import "mixins";
.range-wrapper {
@include user-select(none);
display: inline-block;
position: relative;
width: 100%;
height: 26px;
padding-top: 24px;
}
input[type='range'] {
display: inline-block;
-webkit-appearance: none !important;
background-color: rgba(0,0,0,0.05);
height: 2px;
border-radius: $radius*10 !important;
outline: 0;
vertical-align: middle;
width: 100%;
}
input[type='range']::-webkit-slider-thumb {
background-color: $medium;
border-radius: $radius;
-webkit-appearance: none !important;
height:44px;
width:44px;
border-radius: 100%;
background-clip: content-box;
border: 13px solid transparent;
// &:after {
// content: "100%";
// display: block;
// }
&:active{
background-color: $darker !important;
}
}
.output-wrapper {
position: absolute;
top: 0px;
left: 0px;
right: 60px;
width: auto;
}
output {
font-size: 11px;
line-height: 1;
background-clip: padding-box;
color: #999;
font-family: Avenir;
position: absolute;
display: inline-block;
top: 0;
right: 0;
pointer-events: none;
vertical-align: middle;
letter-spacing: 0.1em;
}