forked from angular-slider/angularjs-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rzslider.less
99 lines (85 loc) · 1.6 KB
/
rzslider.less
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
/**
* Angular JS slider directive
*
* (c) Rafal Zajac <[email protected]>
* http://github.com/rzajac/angularjs-slider
*
* Licensed under the MIT license
*/
.rounded(@radius: 2px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
@handleActiveColor: #67b700;
@handleHoverColor: #67b700;
@labelTextColor: #67b700;
@handleBgColor: #fff;
@handleInnerColor: #71818e;
@limitLabelTextColor: @labelTextColor;
rzslider {
display: inline-block;
position: relative;
height: 2px;
width: 100%;
margin: 30px 0 15px 0;
vertical-align: middle;
}
rzslider span {
white-space: nowrap;
position: absolute;
display: inline-block;
}
rzslider span.base {
width: 100%;
height: 100%;
padding: 0;
}
rzslider span.bar {
width: 100%;
height: 100%;
z-index: 0;
background: #fff;
}
rzslider span.bar.selection {
width: 0%;
z-index: 1;
background: #67b700;
}
rzslider span.pointer {
cursor: pointer;
width: 32px;
height: 32px;
top: -15px;
background-color: @handleBgColor;
z-index: 2;
.rounded(16px);
}
rzslider span.pointer:after {
content: '';
width: 8px;
height: 8px;
position: absolute;
top: 12px;
left: 12px;
.rounded(4px);
background: @handleInnerColor;
}
rzslider span.pointer:hover:after {
background-color: @handleHoverColor;
}
rzslider span.pointer.active:after {
background-color: @handleActiveColor;
}
rzslider span.bubble {
cursor: default;
top: -32px;
padding: 1px 3px 1px 3px;
color: @labelTextColor;
}
rzslider span.bubble.selection {
top: 15px;
}
rzslider span.bubble.limit {
color: @limitLabelTextColor;
}