-
Notifications
You must be signed in to change notification settings - Fork 2
/
quinn.css
199 lines (165 loc) · 4.02 KB
/
quinn.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/**
* SLIDER STYLES
* =============
*/
.quinn { position: relative; }
/* Elements with sprited backgrounds. */
.quinn .bar .left, .quinn .bar .main, .quinn .bar .right,
.quinn .delta-bar .left, .quinn .delta-bar .main, .quinn
.delta-bar .right, .quinn .handle,
.quinn .reset, .quinn .minus, .quinn .plus, .quinn .help {
/* If you change the image URL, be sure to also change the URL for the
* HiDPI sprite at the bottom of this CSS file. */
background-image: url(images/default.png);
background-repeat: no-repeat;
}
/* Slider height */
.quinn, .quinn .bar, .quinn .delta-bar {
height: 5px;
}
/* Float clearing */
.quinn {
padding: 3px 0;
zoom: 1;
}
.quinn:after {
content: "";
display: table;
clear: both;
}
/**
* Slider bar components
* ---------------------
*
* The left, main, and right elements are purely visual, and display the
* curve to the left, the main slider bar background, and the curve to
* the right. They're positionned absolutely to the .quinn element.
*
* An extra 12px space is added to the left and right, since the handle
* width is 24px; this allows the handle to look correct when the slider
* is all the way to the left or right.
*/
.quinn .bar, .quinn .delta-bar {
float: left;
position: absolute;
}
.quinn .bar {
width: 100%;
}
.quinn .bar .left, .quinn .bar .main, .quinn .bar .right,
.quinn .delta-bar .left, .quinn .delta-bar .main,
.quinn .delta-bar .right {
height: 5px;
position: absolute;
z-index: 1;
}
.quinn .bar .left, .quinn .bar .right,
.quinn .delta-bar .left, .quinn .delta-bar .right {
height: 5px;
width: 4px
}
.quinn .bar .left, .quinn .delta-bar .left {
background-position: -50px -25px;
left: 0;
}
.quinn .bar .main, .quinn .delta-bar .main {
background-position: 0 -150px;
background-repeat: repeat-x;
left: 4px;
right: 4px;
}
.quinn .bar .right, .quinn .delta-bar .right {
background-position: -56px -25px;
right: 0px;
}
/**
* Delta bar
* ---------
*
* The delta bar is a style applied to the area to the bar on the left
* of the handle.
*/
.quinn .delta-bar {
overflow: hidden;
width: auto;
z-index: 5;
}
.quinn .delta-bar .left,
.quinn .delta-bar .main,
.quinn .delta-bar .right {
z-index: 2;
}
.quinn .delta-bar .left {
background-position: -70px -25px;
}
.quinn .delta-bar .main {
background-position: 0 -200px;
right: 4px;
}
.quinn .delta-bar .right {
background-position: -76px -25px;
right: 0px;
}
/**
* Slider handle
* -------------
*
* The slider handle is the main button on which the user may click and
* drag in order to adjust the slider value.
*/
.quinn .handle {
background-position: 0 0;
cursor: default;
height: 21px;
left: 0%;
margin: -8px -8px 0 -8px;
outline: none;
position: absolute;
width: 21px;
z-index: 5;
}
.quinn .handle:active, .quinn .handle.active {
background-position: 0 -30px;
}
.quinn.disabled .handle:active {
background-position: 0 0;
}
.quinn .handle:focus {
background-position: 0 -60px;
}
/**
* Multiple-value sliders
* ----------------------
*
* Styles specific to sliders which instead of having a single value,
* represent a range by having two values (a minimum and maximum).
*/
.quinn.multiple .handle {
background-position: -100px 0;
height: 26px;
margin-top: -9px;
width: 19px;
}
.quinn.multple .handle.active {
background-position: -100px -30px;
}
.quinn.multiple .handle:focus {
background-position: -100px -60px;
}
/**
* HiDPI sprite
* ------------
*/
@media only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-devicepixel-ratio: 1.5),
only screen and (min-resolution: 1.5dppx) {
.quinn .bar .left, .quinn .bar .main, .quinn .bar .right,
.quinn .delta-bar .left, .quinn .delta-bar .main, .quinn
.delta-bar .right, .quinn .handle,
.quinn .reset, .quinn .minus, .quinn .plus, .quinn .help {
background-image: url(images/default-hidpi.png);
background-size: 130px 250px;
}
}