jquery-lionbars 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore
CHANGED
@@ -1 +1,417 @@
|
|
1
|
-
(function(
|
1
|
+
(function( $ ) {
|
2
|
+
$.fn.hasScrollBar = function() {
|
3
|
+
return this.get(0).scrollHeight > this.height();
|
4
|
+
};
|
5
|
+
$.fn.lionbars = function(options) {
|
6
|
+
options = options || {};
|
7
|
+
autohide = options.autohide;
|
8
|
+
|
9
|
+
// Flags
|
10
|
+
var timeout,
|
11
|
+
HDragging=false,
|
12
|
+
VDragging=false,
|
13
|
+
activeScroll=0,
|
14
|
+
activeWrap=0,
|
15
|
+
eventX,
|
16
|
+
eventY,
|
17
|
+
mouseX,
|
18
|
+
mouseY,
|
19
|
+
currentRatio,
|
20
|
+
initPos,
|
21
|
+
scrollValue,
|
22
|
+
hideTimeoutSet=false,
|
23
|
+
vEventFired = false,
|
24
|
+
hEventFired = false;
|
25
|
+
|
26
|
+
// Initialization
|
27
|
+
var elements = $(this),
|
28
|
+
id = 0,
|
29
|
+
vScrollWidth=0, hScrollWidth=0,
|
30
|
+
addHScroll=false, addVScroll=false,
|
31
|
+
paddingTop=0, paddingLeft=0, paddingBottom=0, paddingRight=0,
|
32
|
+
borderTop=0, borderRight=0, borderBottom=0, borderLeft=0,
|
33
|
+
scrollHeight=0, scrollWidth=0, offsetWidth=0, offsetHeight=0, clientWidth=0, clientHeight=0,
|
34
|
+
vRatio=0, hRatio=0,
|
35
|
+
vSliderHeight=0, hSliderHeight=0,
|
36
|
+
vLbHeight=0, hLbHeight=0;
|
37
|
+
|
38
|
+
// Main Loop
|
39
|
+
mainLoop();
|
40
|
+
|
41
|
+
function mainLoop() {
|
42
|
+
for (var i=0; elements[i] !== undefined; i++) {
|
43
|
+
if (needScrollbars(elements[i]) && !$(elements[i]).hasClass('nolionbars')) {
|
44
|
+
// add the element to the main array
|
45
|
+
target = elements[i];
|
46
|
+
|
47
|
+
// get some values before the element is wrapped
|
48
|
+
getDimentions(target);
|
49
|
+
|
50
|
+
// wrap the element
|
51
|
+
wrap(target, addVScroll, addHScroll);
|
52
|
+
|
53
|
+
// hide the default scrollbar
|
54
|
+
hideScrollbars(target, addVScroll, addHScroll);
|
55
|
+
|
56
|
+
// Calculate the size of the scrollbars
|
57
|
+
reduceScrollbarsWidthHeight(target);
|
58
|
+
setSlidersHeight(target);
|
59
|
+
|
60
|
+
// Set variables needed to calculate scroll speed, etc.
|
61
|
+
setScrollRatios(target);
|
62
|
+
|
63
|
+
// Set events
|
64
|
+
setEvents(target);
|
65
|
+
|
66
|
+
// prepare for next element
|
67
|
+
resetVars();
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// Set document events
|
73
|
+
$(document).mousemove(function(e) {
|
74
|
+
if (VDragging) {
|
75
|
+
mouseY = e.pageY;
|
76
|
+
activeWrap.scrollTop((initPos + mouseY - eventY) * Math.abs(currentRatio));
|
77
|
+
}
|
78
|
+
if (HDragging) {
|
79
|
+
mouseX = e.pageX;
|
80
|
+
activeWrap.scrollLeft((initPos + mouseX - eventX) * Math.abs(currentRatio));
|
81
|
+
}
|
82
|
+
});
|
83
|
+
$(document).mouseup(function(e) {
|
84
|
+
if (VDragging) {
|
85
|
+
VDragging = false;
|
86
|
+
}
|
87
|
+
if (HDragging) {
|
88
|
+
HDragging = false;
|
89
|
+
}
|
90
|
+
});
|
91
|
+
|
92
|
+
// Core functions
|
93
|
+
function setEvents(elem) {
|
94
|
+
var el = $(elem);
|
95
|
+
|
96
|
+
if (addVScroll || addHScroll) {
|
97
|
+
el.find('.lb-wrap').scroll(function(e) {
|
98
|
+
el.find('.lb-v-scrollbar-slider').css({ "top" : -$(this).scrollTop()/el.attr('vratio') });
|
99
|
+
el.find('.lb-h-scrollbar-slider').css({ "left" : -$(this).scrollLeft()/el.attr('hratio') });
|
100
|
+
|
101
|
+
if (el.find('.lb-v-scrollbar').height() == (parseInt(el.find('.lb-v-scrollbar-slider').css('top')) + el.find('.lb-v-scrollbar-slider').height())
|
102
|
+
&& typeof(options.reachedBottom) == 'function'
|
103
|
+
&& !vEventFired
|
104
|
+
) {
|
105
|
+
vEventFired = true;
|
106
|
+
var self = $(this);
|
107
|
+
|
108
|
+
options.reachedBottom.apply($(this).children('.lb-content'), [function () {
|
109
|
+
getDimentions($(self).parent(), {
|
110
|
+
height: $(self).children('.lb-content').get(0).scrollHeight,
|
111
|
+
width: $(self).children('.lb-content').get(0).scrollWidth
|
112
|
+
});
|
113
|
+
|
114
|
+
// Calculate the size of the scrollbars
|
115
|
+
reduceScrollbarsWidthHeight($(self).parent());
|
116
|
+
setSlidersHeight($(self).parent());
|
117
|
+
|
118
|
+
// Set variables needed to calculate scroll speed, etc.
|
119
|
+
setScrollRatios($(self).parent());
|
120
|
+
|
121
|
+
// prepare for next element
|
122
|
+
resetVars();
|
123
|
+
|
124
|
+
vEventFired = false;
|
125
|
+
}]);
|
126
|
+
}
|
127
|
+
|
128
|
+
if (el.find('.lb-h-scrollbar').width() == (parseInt(el.find('.lb-h-scrollbar-slider').css('left')) + el.find('.lb-h-scrollbar-slider').width())
|
129
|
+
&& typeof(options.reachedRight) == 'function'
|
130
|
+
&& !hEventFired
|
131
|
+
) {
|
132
|
+
hEventFired = true;
|
133
|
+
var self = $(this);
|
134
|
+
|
135
|
+
options.reachedRight.apply($(this).children('.lb-content'), [function () {
|
136
|
+
getDimentions($(self).parent(), {
|
137
|
+
height: $(self).children('.lb-content').get(0).scrollHeight,
|
138
|
+
width: $(self).children('.lb-content').get(0).scrollWidth
|
139
|
+
});
|
140
|
+
|
141
|
+
// Calculate the size of the scrollbars
|
142
|
+
reduceScrollbarsWidthHeight($(self).parent());
|
143
|
+
setSlidersHeight($(self).parent());
|
144
|
+
|
145
|
+
// Set variables needed to calculate scroll speed, etc.
|
146
|
+
setScrollRatios($(self).parent());
|
147
|
+
|
148
|
+
// prepare for next element
|
149
|
+
resetVars();
|
150
|
+
|
151
|
+
hEventFired = false;
|
152
|
+
}]);
|
153
|
+
}
|
154
|
+
|
155
|
+
if (autohide) {
|
156
|
+
el.find('.lb-v-scrollbar, .lb-h-scrollbar').fadeIn(150);
|
157
|
+
clearTimeout(timeout);
|
158
|
+
timeout = setTimeout(function() {
|
159
|
+
el.find('.lb-v-scrollbar, .lb-h-scrollbar').fadeOut(150);
|
160
|
+
}, 2000);
|
161
|
+
}
|
162
|
+
});
|
163
|
+
}
|
164
|
+
|
165
|
+
if (addVScroll) {
|
166
|
+
el.find('.lb-v-scrollbar-slider').mousedown(function(e) {
|
167
|
+
eventY = e.pageY;
|
168
|
+
|
169
|
+
VDragging = true;
|
170
|
+
activeScroll = $(this);
|
171
|
+
activeWrap = el.find('.lb-wrap');
|
172
|
+
currentRatio = activeWrap.parent().attr('vratio');
|
173
|
+
initPos = activeScroll.position().top;
|
174
|
+
return false;
|
175
|
+
});
|
176
|
+
el.find('.lb-v-scrollbar').mousedown(function(e) {
|
177
|
+
if (!$(e.target).hasClass('lb-v-scrollbar-slider')) {
|
178
|
+
el.find('.lb-wrap').scrollTop((e.pageY - $(this).offset().top) * Math.abs(el.attr('vratio')) - $(this).find('.lb-v-scrollbar-slider').height()/2);
|
179
|
+
}
|
180
|
+
return false;
|
181
|
+
});
|
182
|
+
}
|
183
|
+
|
184
|
+
if (addHScroll) {
|
185
|
+
el.find('.lb-h-scrollbar-slider').mousedown(function(e) {
|
186
|
+
eventX = e.pageX;
|
187
|
+
|
188
|
+
HDragging = true;
|
189
|
+
activeScroll = $(this);
|
190
|
+
activeWrap = el.find('.lb-wrap');
|
191
|
+
currentRatio = activeWrap.parent().attr('hratio');
|
192
|
+
initPos = activeScroll.position().left;
|
193
|
+
return false;
|
194
|
+
});
|
195
|
+
el.find('.lb-h-scrollbar').mousedown(function(e) {
|
196
|
+
if (!$(e.target).hasClass('lb-h-scrollbar-slider')) {
|
197
|
+
el.find('.lb-wrap').scrollLeft((e.pageX - $(this).offset().left) * Math.abs(el.attr('hratio')) - $(this).find('.lb-h-scrollbar-slider').width()/2);
|
198
|
+
}
|
199
|
+
return false;
|
200
|
+
});
|
201
|
+
}
|
202
|
+
|
203
|
+
if ((addVScroll || addHScroll) && autohide) {
|
204
|
+
el.find('.lb-v-scrollbar, .lb-h-scrollbar').hide();
|
205
|
+
|
206
|
+
el.hover(function() {
|
207
|
+
}, function() {
|
208
|
+
el.find('.lb-v-scrollbar, .lb-h-scrollbar').fadeOut(150);
|
209
|
+
});
|
210
|
+
}
|
211
|
+
}
|
212
|
+
function setScrollRatios(elem) {
|
213
|
+
vRatio = (offsetHeight - $(elem).find('.lb-wrap').get(0).scrollHeight - borderTop - borderBottom)/(vLbHeight - vSliderHeight);
|
214
|
+
hRatio = (offsetWidth - $(elem).find('.lb-wrap').get(0).scrollWidth - borderLeft - borderRight)/(hLbHeight - hSliderHeight);
|
215
|
+
|
216
|
+
var el = $(elem);
|
217
|
+
el.attr('vratio', vRatio);
|
218
|
+
el.attr('hratio', hRatio);
|
219
|
+
}
|
220
|
+
function setSlidersHeight(elem) {
|
221
|
+
var el = $(elem);
|
222
|
+
var hmin, hmax, gap;
|
223
|
+
|
224
|
+
if (el.find('.lb-v-scrollbar').length != 0) {
|
225
|
+
hmin = 20;
|
226
|
+
gap = offsetHeight - el.find('.lb-v-scrollbar').height();
|
227
|
+
hmax = offsetHeight - gap - hmin;
|
228
|
+
vSliderHeight = Math.round((offsetHeight*hmax)/scrollHeight);
|
229
|
+
vSliderHeight = (vSliderHeight < hmin) ? hmin : vSliderHeight;
|
230
|
+
}
|
231
|
+
|
232
|
+
if (el.find('.lb-h-scrollbar').length != 0) {
|
233
|
+
hmin = 20;
|
234
|
+
gap = offsetWidth - el.find('.lb-h-scrollbar').width();
|
235
|
+
hmax = offsetWidth - gap - hmin;
|
236
|
+
hSliderHeight = Math.round((offsetWidth*hmax)/scrollWidth);
|
237
|
+
hSliderHeight = (hSliderHeight < hmin) ? hmin : hSliderHeight;
|
238
|
+
}
|
239
|
+
el.find('.lb-v-scrollbar-slider').css({ "height" : vSliderHeight });
|
240
|
+
el.find('.lb-h-scrollbar-slider').css({ "width" : hSliderHeight });
|
241
|
+
}
|
242
|
+
function resetVars() {
|
243
|
+
vScrollWidth = 0;
|
244
|
+
hScrollWidth = 0;
|
245
|
+
addHScroll=false;
|
246
|
+
addVScroll=false;
|
247
|
+
paddingTop = 0;
|
248
|
+
paddingLeft = 0;
|
249
|
+
paddingBottom = 0;
|
250
|
+
paddingRight = 0;
|
251
|
+
borderTop = 0;
|
252
|
+
borderLeft = 0;
|
253
|
+
borderBottom = 0;
|
254
|
+
borderRight = 0;
|
255
|
+
scrollHeight = 0;
|
256
|
+
scrollWidth = 0;
|
257
|
+
offsetWidth = 0;
|
258
|
+
offsetHeight = 0;
|
259
|
+
clientWidth = 0;
|
260
|
+
clientHeight = 0;
|
261
|
+
// vRatio = 0;
|
262
|
+
// hRatio = 0;
|
263
|
+
vSliderHeight = 0;
|
264
|
+
hSliderHeight = 0;
|
265
|
+
vLbHeight = 0;
|
266
|
+
hLbHeight = 0;
|
267
|
+
}
|
268
|
+
function reduceScrollbarsWidthHeight(elem) {
|
269
|
+
var el = $(elem);
|
270
|
+
|
271
|
+
if (addVScroll && addHScroll) {
|
272
|
+
vLbHeight = el.height()-12;
|
273
|
+
hLbHeight = el.width()-12;
|
274
|
+
el.find('.lb-v-scrollbar').css({ "height" : vLbHeight });
|
275
|
+
el.find('.lb-h-scrollbar').css({ "width" : hLbHeight });
|
276
|
+
} else {
|
277
|
+
vLbHeight = el.height()-4;
|
278
|
+
hLbHeight = el.width()-4;
|
279
|
+
el.find('.lb-v-scrollbar').css({ "height" : vLbHeight });
|
280
|
+
el.find('.lb-h-scrollbar').css({ "width" : hLbHeight });
|
281
|
+
}
|
282
|
+
}
|
283
|
+
function hideScrollbars(elem, vscroll, hscroll) {
|
284
|
+
var el = $(elem);
|
285
|
+
|
286
|
+
if (vscroll || hscroll) {
|
287
|
+
el.css({ "overflow" : 'hidden' });
|
288
|
+
movePadding(el, el.find('.lb-wrap'));
|
289
|
+
resizeMainBox(el);
|
290
|
+
resizeInnerWrap(el, el.find('.lb-wrap'));
|
291
|
+
}
|
292
|
+
}
|
293
|
+
function resizeMainBox(elem) {
|
294
|
+
var el = $(elem);
|
295
|
+
el.css({ "width" : el.width() + paddingLeft + paddingRight, "height" : el.height() + paddingTop + paddingBottom });
|
296
|
+
}
|
297
|
+
function movePadding(from, to) {
|
298
|
+
var fromEl = $(from);
|
299
|
+
var toEl = $(to);
|
300
|
+
|
301
|
+
fromEl.css({ "padding" : 0 });
|
302
|
+
toEl.css({
|
303
|
+
"padding-top" : paddingTop+'px',
|
304
|
+
"padding-left" : paddingLeft+'px',
|
305
|
+
"padding-bottom" : paddingBottom+'px',
|
306
|
+
"padding-right" : paddingRight+'px'
|
307
|
+
});
|
308
|
+
}
|
309
|
+
function resizeInnerWrap(main, child) {
|
310
|
+
var mainEl = $(main);
|
311
|
+
var childEl = $(child);
|
312
|
+
mainEl.css({ "position" : 'relative' });
|
313
|
+
childEl.css({
|
314
|
+
"width" : mainEl.width()+vScrollWidth - paddingLeft - paddingRight,
|
315
|
+
"height" : mainEl.height()+hScrollWidth - paddingTop - paddingBottom
|
316
|
+
});
|
317
|
+
}
|
318
|
+
function setVScrollbarWidth(elem) {
|
319
|
+
var el = $(elem);
|
320
|
+
el.css({ "overflow" : 'auto' });
|
321
|
+
vScrollWidth = offsetWidth - clientWidth - borderLeft - borderRight;
|
322
|
+
el.css({ "overflow" : 'hidden' });
|
323
|
+
}
|
324
|
+
function setHScrollbarWidth(elem) {
|
325
|
+
var el = $(elem);
|
326
|
+
el.css({ "overflow" : 'auto' });
|
327
|
+
hScrollWidth = offsetHeight - clientHeight - borderTop - borderBottom;
|
328
|
+
el.css({ "overflow" : 'hidden' });
|
329
|
+
}
|
330
|
+
function wrap(elem, vscroll, hscroll) {
|
331
|
+
var el = $(elem);
|
332
|
+
var elemId = el.attr('id');
|
333
|
+
var wrap = 0;
|
334
|
+
|
335
|
+
if (elemId !== undefined) {
|
336
|
+
el.wrapInner('<div class="lb-wrap" id="lb-wrap-'+id+'-'+elemId+'"></div>');
|
337
|
+
wrap = $('#lb-wrap-'+id+'-'+elemId);
|
338
|
+
} else {
|
339
|
+
el.wrapInner('<div class="lb-wrap" id="lb-wrap-'+id+'"></div>');
|
340
|
+
wrap = $('#lb-wrap-'+id);
|
341
|
+
}
|
342
|
+
wrap.wrapInner('<div class="lb-content"></div>');
|
343
|
+
if (vscroll) {
|
344
|
+
el.prepend('<div class="lb-v-scrollbar"></div>');
|
345
|
+
el.find('.lb-v-scrollbar').append('<div class="lb-v-scrollbar-slider"></div>');
|
346
|
+
}
|
347
|
+
if (hscroll) {
|
348
|
+
el.prepend('<div class="lb-h-scrollbar"></div>');
|
349
|
+
el.find('.lb-h-scrollbar').append('<div class="lb-h-scrollbar-slider"></div>');
|
350
|
+
}
|
351
|
+
|
352
|
+
// preparation for the next element
|
353
|
+
id = id + 1;
|
354
|
+
}
|
355
|
+
function needScrollbars(elem) {
|
356
|
+
var el = $(elem);
|
357
|
+
addVScroll = false;
|
358
|
+
addHScroll = false;
|
359
|
+
|
360
|
+
getPadding(el);
|
361
|
+
getBorders(el);
|
362
|
+
|
363
|
+
el.css({ "overflow" : 'hidden' });
|
364
|
+
|
365
|
+
// check for vertical scrollbars
|
366
|
+
if (el.get(0).scrollHeight > el.get(0).clientHeight) {
|
367
|
+
addVScroll = true;
|
368
|
+
// setVScrollbarWidth(el);
|
369
|
+
}
|
370
|
+
|
371
|
+
// check for horizontal scrollbars
|
372
|
+
if (el.get(0).scrollWidth > el.get(0).clientWidth) {
|
373
|
+
addHScroll = true;
|
374
|
+
// setHScrollbarWidth(el);
|
375
|
+
}
|
376
|
+
|
377
|
+
el.css({ "overflow" : 'auto' });
|
378
|
+
|
379
|
+
if (addVScroll || addHScroll) {
|
380
|
+
return true;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
function getPadding(elem) {
|
384
|
+
var el = $(elem);
|
385
|
+
|
386
|
+
paddingTop = parseInt(el.css('padding-top').replace('px', ''));
|
387
|
+
paddingLeft = parseInt(el.css('padding-left').replace('px', ''));
|
388
|
+
paddingBottom = parseInt(el.css('padding-bottom').replace('px', ''));
|
389
|
+
paddingRight = parseInt(el.css('padding-right').replace('px', ''));
|
390
|
+
}
|
391
|
+
function getBorders(elem) {
|
392
|
+
var el = $(elem);
|
393
|
+
|
394
|
+
borderTop = parseInt(el.css('border-top-width').replace('px', ''));
|
395
|
+
borderRight = parseInt(el.css('border-right-width').replace('px', ''));
|
396
|
+
borderBottom = parseInt(el.css('border-bottom-width').replace('px', ''));
|
397
|
+
borderLeft = parseInt(el.css('border-left-width').replace('px', ''));
|
398
|
+
}
|
399
|
+
function getDimentions(elem, scroll) {
|
400
|
+
var el = $(elem).get(0);
|
401
|
+
|
402
|
+
scrollHeight = (typeof(scroll) != 'undefined') ? scroll.height : el.scrollHeight;
|
403
|
+
scrollWidth = (typeof(scroll) != 'undefined') ? scroll.width : el.scrollWidth;
|
404
|
+
clientHeight = el.clientHeight;
|
405
|
+
clientWidth = el.clientWidth;
|
406
|
+
offsetHeight = el.offsetHeight;
|
407
|
+
offsetWidth = el.offsetWidth;
|
408
|
+
|
409
|
+
setVScrollbarWidth($(elem));
|
410
|
+
setHScrollbarWidth($(elem));
|
411
|
+
}
|
412
|
+
|
413
|
+
return this.each(function() {
|
414
|
+
//var $this = $(this);
|
415
|
+
});
|
416
|
+
};
|
417
|
+
})( jQuery );
|
@@ -1,59 +1,15 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
.horizontal {
|
17
|
-
height: 7px;
|
18
|
-
bottom: 2px;
|
19
|
-
left: 2px;
|
20
|
-
}
|
21
|
-
|
22
|
-
.scrollbar_bg {
|
23
|
-
position: absolute;
|
24
|
-
content: "";
|
25
|
-
display: block;
|
26
|
-
border-radius: 100px;
|
27
|
-
opacity: 0;
|
28
|
-
z-index: 99;
|
29
|
-
}
|
30
|
-
|
31
|
-
.scrollbar_bg.horizontal {
|
32
|
-
width: 100%;
|
33
|
-
}
|
34
|
-
|
35
|
-
.scrollbar_bg.vertical {
|
36
|
-
height: 100%;
|
37
|
-
}
|
38
|
-
|
39
|
-
.scrollbar.light {
|
40
|
-
background: rgba(255,255,255,0.5);
|
41
|
-
}
|
42
|
-
|
43
|
-
.scrollbar_bg.light {
|
44
|
-
background: rgba(255,255,255,0.10);
|
45
|
-
}
|
46
|
-
|
47
|
-
|
48
|
-
.scrollbar.dark {
|
49
|
-
background: rgba(0,0,0,0.3);
|
50
|
-
}
|
51
|
-
|
52
|
-
.scrollbar_bg.dark {
|
53
|
-
background: rgba(0,0,0,0.10);
|
54
|
-
}
|
55
|
-
|
56
|
-
.nWrap {
|
57
|
-
overflow: auto;
|
58
|
-
display: inline-block;
|
59
|
-
}
|
1
|
+
.lb-v-dummy { width: 100%; display: block; height: 1px; }
|
2
|
+
.lb-h-dummy { height: 100%; display: block; width: 1px; }
|
3
|
+
.lb-clear { clear: both; }
|
4
|
+
.lb-wrap { z-index: 0; overflow: auto; position: relative; }
|
5
|
+
/*.lb-scrollbar-wrap { position: absolute; left: 0; top: 0; }*/
|
6
|
+
.lb-v-scrollbar { z-index: 1; position: absolute; right: 2px; top: 2px; width: 7px; height: 100%; background: #cfcfcf; opacity: 0.3; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; border-radius: 7px; -webkit-border-radius: 7px; -moz-border-radius: 7px; }
|
7
|
+
.lb-h-scrollbar { z-index: 1; position: absolute; bottom: 2px; left: 2px; width: 100%; height: 7px; background: #cfcfcf; opacity: 0.3; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; border-radius: 7px; -webkit-border-radius: 7px; -moz-border-radius: 7px; }
|
8
|
+
.lb-v-scrollbar-slider { position: absolute; width: 7px; height: 50px; left: 0; top: 0; background: #000; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; border-radius: 7px; -webkit-border-radius: 7px; -moz-border-radius: 7px; }
|
9
|
+
.lb-h-scrollbar-slider { position: absolute; height: 7px; width: 50px; left: 0; top: 0; background: #000; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; border-radius: 7px; -webkit-border-radius: 7px; -moz-border-radius: 7px; }
|
10
|
+
|
11
|
+
<!--[if IE 8]>
|
12
|
+
<style>
|
13
|
+
.lb-v-scrollbar { background: red; }
|
14
|
+
</style>
|
15
|
+
<![endif]-->
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-lionbars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Allen Wei
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-12-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|