powerange.css
1.6 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/**
*
* Main stylesheet for Powerange.
* http://abpetkov.github.io/powerange/
*
*/
/**
* Horizontal slider style (default).
*/
.range-bar {
background-color: #a9acb1;
border-radius: 15px;
display: block;
height: 4px;
position: relative;
width: 100%;
}
.range-quantity {
background-color: #017afd;
border-radius: 15px;
display: block;
height: 100%;
width: 0;
}
.range-handle {
background-color: #fff;
border-radius: 100%;
cursor: move;
height: 30px;
left: 0;
top: -13px;
position: absolute;
width: 30px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.range-min,
.range-max {
color: #181819;
font-size: 12px;
height: 20px;
padding-top: 4px;
position: absolute;
text-align: center;
top: -9px;
width: 24px;
}
.range-min {
left: -30px;
}
.range-max {
right: -30px;
}
/**
* Vertical slider style.
*/
.vertical {
height: 100%;
width: 4px;
}
.vertical .range-quantity {
bottom: 0;
height: 0;
position: absolute;
width: 100%;
}
.vertical .range-handle {
bottom: 0;
left: -13px;
top: auto;
}
.vertical .range-min,
.vertical .range-max {
left: -10px;
right: auto;
top: auto;
}
.vertical .range-min {
bottom: -30px;
}
.vertical .range-max {
top: -30px;
}
/**
* Style for disabling text selection on handle move.
*/
.unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/**
* Style for handle cursor on disabled slider.
*/
.range-disabled {
cursor: default;
}