This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slider.css
154 lines (123 loc) · 2.61 KB
/
slider.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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
.time-slider {
margin: 0 .6em .6em .6em;
padding-top: 3em;
cursor: pointer;
position: relative;
}
.time-slider .slider .area {
position: relative;
border: 1px solid #707077;
border-left: none;
z-index: 2;
height: .4em;
top: -.3em;
cursor: pointer;
background: #707077;
}
.time-slider .slider .slice {
background: #6c6;
background: linear-gradient(to bottom, #6c6 0%, #1c1 100%);
left: 0px;
right: 0px;
height: 0.4em;
position: absolute;
/* click events should happen only in the slider to get the correct coordinates */
pointer-events: none;
}
.time-slider .slider .handle {
position: absolute;
width: .5em;
height: .5em;
border: .3em solid #707077;
border-radius: .8em;
background: #6c6;
background: linear-gradient(to bottom, #6c6 0%, #1c1 100%);
z-index: 3;
top: -.39em;
margin-right: -.5em;
margin-bottom: -.6em;
cursor: ew-resize;
}
.time-slider .slider .handle.active {
border-color: #6c6;
background: #e0e0e0;
}
.time-slider .slider .handle.from {
margin-left: .6em;
}
.time-slider .slider .handle.until {
}
/* Axis */
.time-slider .axis {
stroke-width: 2px;
}
.time-slider .axis path {
stroke-width: 0;
fill: none;
}
.time-slider .axis line {
fill: none;
stroke: #aaa;
shape-rendering: crispEdges;
}
.time-slider .axis text {
font-size: .7em;
}
/* Tooltips */
.time-slider .tooltips {
}
.time-slider .tooltips a {
color: #66f;
visibility: hidden;
}
.time-slider .tooltips a:hover {
color: #00f;
text-decoration: underline;
}
.time-slider .tooltips div:hover a {
visibility: visible;
}
.time-slider .tooltips > div {
position: absolute;
top: 0;
}
.time-slider .tooltips .dt {
background: #fbfbfb;
padding: .6em;
font-size: .7em;
vertical-align: middle;
line-height: 1em;
white-space: nowrap;
border-radius: .3em;
border: 1px solid transparent;
}
.time-slider .tooltips span, .time-slider .tooltips a {
/* float: left;*/
/* clear: both;*/
}
.time-slider .tooltips .active {
}
.time-slider .tooltips .active .dt {
border-color: #e0e0e0;
background: #f0f0f0;
}
.time-slider .tooltips .from {
left: 0;
/*padding-left: 0;*/
/*border-right: 1px dotted #e0e0e0;*/
}
.time-slider .tooltips .until {
right: 0;
/*padding-right: 0;*/
/*border-left: 1px dotted #e0e0e0;*/
}
.time-slider .tooltips .mouse {
border: 1px solid #ddd;
background: #fafafa;
top: 65px;
color: #000;
margin-left: 20px;
pointer-events: none;
visibility: hidden;
opacity: .7;
}