-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery-ui-slider-pips.css
executable file
·92 lines (71 loc) · 3.3 KB
/
jquery-ui-slider-pips.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
/* ui slider pips */
.ui-slider-horizontal.ui-slider-pips { margin-bottom: 1.4em; }
.ui-slider-pips .ui-slider-label,
.ui-slider-pips .ui-slider-pip-hide { display: none; }
.ui-slider-pips .ui-slider-pip-label .ui-slider-label { display: block; }
.ui-slider-pips .ui-slider-pip {
width: 2em; height: 1em; line-height: 1em; position: absolute;
font-size: 0.8em; color: #999; overflow: visible; text-align: center;
top: 20px; left: 20px; margin-left: -1em; cursor: pointer;
}
.ui-slider-pips .ui-slider-line { background: #999; width: 1px; height: 3px; position: absolute; left: 50%; }
.ui-slider-pips .ui-slider-label { position: absolute; top: 5px; left: 50%; margin-left: -1em; width: 2em; }
.ui-slider-pip:hover .ui-slider-label { color: black; font-weight: bold; }
.ui-slider-vertical.ui-slider-pips { margin-bottom: 0; margin-right: 2em; }
.ui-slider-vertical.ui-slider-pips .ui-slider-pip {
text-align: left; top: 20px; left: 20px; margin-left: 0; margin-top: -0.5em;
}
.ui-slider-vertical.ui-slider-pips .ui-slider-line { width: 3px; height: 1px; position: absolute; top: 50%; left: 0; }
.ui-slider-vertical.ui-slider-pips .ui-slider-label { top: 50%; left: 0.5em; margin-left: 0; margin-top: -0.5em; width: 2em; }
.ui-slider-vertical.ui-slider-pip:hover .ui-slider-label { color: black; font-weight: bold; }
/* ui slider float */
.ui-slider-float .ui-slider-handle:focus,
.ui-slider-float .ui-slider-handle:focus .ui-slider-tip,
.ui-slider-float .ui-slider-handle:focus .ui-slider-tip-label { outline: none; }
.ui-slider-float .ui-slider-tip,
.ui-slider-float .ui-slider-tip-label {
position: absolute; visibility: hidden;
top: -40px; display: block;
width: 34px; margin-left: -18px; left: 50%;
height: 20px; line-height: 20px;
background: white; border-radius: 3px;
border: 1px solid #888;
text-align: center;
font-size: 12px;
opacity: 0;
color: #333;
-webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; transition: all 0.2s ease;
}
.ui-slider-float .ui-slider-handle:hover .ui-slider-tip,
.ui-slider-float .ui-slider-handle:focus .ui-slider-tip,
.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label{ opacity: 1; top: -30px; color: #333; visibility: visible; }
.ui-slider-float .ui-slider-pip .ui-slider-tip-label { top: 30px; }
.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label { top: 20px; font-weight: normal; }
.ui-slider-float .ui-slider-tip:after,
.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after {
content: " ";
width: 0; height: 0;
border: 5px solid rgba(255,255,255,0);
border-top-color: rgba(255,255,255,1);
position: absolute;
bottom: -10px; left: 50%; margin-left: -5px;
}
.ui-slider-float .ui-slider-tip:before,
.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before {
content: " ";
width: 0; height: 0;
border: 5px solid rgba(255,255,255,0);
border-top-color: #888;
position: absolute;
bottom: -11px; left: 50%; margin-left: -5px;
}
.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after {
border: 5px solid rgba(255,255,255,0);
border-bottom-color: rgba(255,255,255,1);
top: -10px;
}
.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before {
border: 5px solid rgba(255,255,255,0);
border-bottom-color: #888;
top: -11px;
}