-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrange.css
79 lines (78 loc) · 1.55 KB
/
range.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.range {
width: 100px;
display: inline-block;
vertical-align: top;
position: relative;
}
.range:before {
content : ' ';
vertical-align: middle;
display: inline-block;
height : 4px;
width:100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background-color: #e9e9e9;
border: 1px solid #d9d9d9;
margin-top: -4px;
}
.range > .slider,
.range > .slider:before,
.range > .slider:after {
border: 1px solid #aaa;
background-color: #eee;
}
.range > .slider {
height: 12px;
border-bottom: none;
position: absolute;
top: 1px;
width: 9px;
}
.range > .slider:before,
.range > .slider:after {
height: 0;
width:0;
display:block;
content : '';
top: 12px;
}
.range > .slider:before {
background-color:transparent;
border-top: 6px solid #aaa;
border-left: 6px solid transparent;
border-right: 5px solid transparent;
border-bottom: none;
position: absolute;
left: -1px;
}
.range > .slider:after {
background-color:transparent;
border-top: 4px solid #eee;
border-left: 5px solid transparent;
border-right: 4px solid transparent;
border-bottom: none;
position: absolute;
left: 0px;
}
.range > .slider:hover {
border-color: #9bd;
background-color: #e9f3fc;
}
.range > .slider:hover:before {
border-top-color: #9bd;
}
.range > .slider:hover:after {
border-top-color: #e9f3fc;
}
#min {
width: 50px;
margin: 0;
padding: 0;
}
#max {
margin: 0;
padding: 0;
width: 50px;
}