-
Notifications
You must be signed in to change notification settings - Fork 64
/
slider.css
169 lines (162 loc) · 4.15 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*
Slider CSS, style as you please.
Note: The png images used for this demo were originally located at http://www.schillmania.com/
Remove the -moz & -khtml styles if you want the css to validate.
Change the image paths to suit you installation.
*/
/* Styles for the horizontal slider */
.fd-slider
{
position:relative;
width:100%;
height:20px;
text-align:center;
border:0 none;
text-decoration:none;
display:block;
-moz-user-select:none;
-khtml-user-select:none
cursor:pointer;
}
.fd-slider-inner
{
position:relative;
display:block;
z-index:1;
height:18px;
text-align:left;
background:#fcfcfc;
border:1px solid #ccc;
border-radius:5px;
-moz-border-radius:5px;
}
.fd-slider-bar
{
position:absolute;
display:block;
z-index:2;
height:2px;
border:1px solid #bbb;
border-bottom:1px solid #aaa;
border-right:1px solid #aaa;
background:#ddd;
margin:0;
padding:0;
overflow:hidden;
line-height:4px;
top:8px;
bottom:none;
left:10px;
right:10px;
border-radius:2px;
-moz-border-radius:2px;
}
/* Styles for the vertical slider */
.fd-slider-vertical
{
position:relative;
border:0 none;
text-decoration:none;
display:block;
width:20px;
height:100%;
text-align:center;
-moz-user-select:none;
-khtml-user-select:none
cursor:pointer;
cursor:hand;
}
.fd-slider-vertical .fd-slider-inner
{
display:block;
width:18px;
height:100%;
text-align:left;
background:#fcfcfc;
border:1px solid #ccc;
}
.fd-slider-vertical .fd-slider-bar
{
width:2px;
top:10px;
bottom:10px;
left:8px;
right:none;
height:auto;
}
.fd-slider-vertical .fd-slider-handle
{
cursor:N-resize;
}
.focused .fd-slider-inner
{
background:#eee !important;
border:1px solid #aaa !important;
}
/* black handle, no glow */
.fd-slider-handle
{
position:absolute;
display:block;
padding:0;
border:0 none;
margin:0;
z-index:3;
top:0;
left:0;
width:20px;
height:20px;
outline:0px none;
background:transparent url(../images/slider/slider-disabled.png) no-repeat 0px 0px;
cursor:W-resize;
line-height:20px;
font-size:20px;
-webkit-user-select: none;
-moz-user-select:none;
-moz-user-focus:none;
-moz-outline:0px none;
}
.fd-slider-handle:focus
{
outline:0px none;
border:0 none;
-moz-user-focus:normal;
}
button.fd-slider-handle:focus::-moz-focus-inner { border-color: transparent; }
/* black handle, glow */
.fd-slider-hover .fd-slider-handle
{
background:transparent url(../images/slider/slider-disabled-1.png) no-repeat 0px 0px;
}
/* blue handle, no glow */
.focused .fd-slider-handle
{
background:transparent url(../images/slider/slider.png) no-repeat 0px 0px;
}
/* blue handle glow */
.focused.fd-slider-hover .fd-slider-handle
{
background:transparent url(../images/slider/slider-1.png) no-repeat 0px 0px;
}
body.slider-drag-vertical
{
cursor:N-resize !important;
}
body.slider-drag-horizontal
{
cursor:W-resize !important;
}
.fd_hide_slider_input
{
display:none;
}
/* Disabled Sliders */
.slider-disabled
{
opacity:.8;
filter:alpha(opacity=80);
}
.slider-disabled .fd-slider-handle
{
cursor:auto !important;
}