Skip to content

Commit 02e05f3

Browse files
committed
Fixes for issue egorkhmelev#18: sliders wider than 500px don't render properly.
Added "fill" image in centre of sliders and changed background-repeat property for main slider and range indicator; modified sprite PNGs to include a bar suitable for repeating.
1 parent 012b599 commit 02e05f3

9 files changed

+10
-9
lines changed

bin/jquery.slider.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/jquery.slider.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/jslider.css

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
.jslider .jslider-bg { position: relative; }
1414
.jslider .jslider-bg i { height: 5px; position: absolute; font-size: 0; top: 0; }
15-
.jslider .jslider-bg .l { width: 50%; background-position: 0 0; left: 0; }
16-
.jslider .jslider-bg .r { width: 50%; left: 50%; background-position: right 0; }
17-
.jslider .jslider-bg .v { position: absolute; width: 60%; left: 20%; top: 0; height: 5px; background-position: 0 -20px; }
15+
.jslider .jslider-bg .l { width: 10%; background-position: 0 0; left: 0; }
16+
.jslider .jslider-bg .f { width: 80%; left: 10%; background-repeat: repeat-x; background-position: 0 -20px; }
17+
.jslider .jslider-bg .r { width: 10%; left: 90%; background-position: right 0; }
18+
.jslider .jslider-bg .v { position: absolute; width: 60%; left: 20%; top: 0; height: 5px; background-repeat: repeat-x; background-position: 0 -40px; }
1819

19-
.jslider .jslider-pointer { width: 13px; height: 15px; background-position: 0 -40px; position: absolute; left: 20%; top: -4px; margin-left: -6px; cursor: pointer; cursor: hand; }
20-
.jslider .jslider-pointer-hover { background-position: -20px -40px; }
20+
.jslider .jslider-pointer { width: 13px; height: 15px; background-position: 0 -60px; position: absolute; left: 20%; top: -4px; margin-left: -6px; cursor: pointer; cursor: hand; }
21+
.jslider .jslider-pointer-hover { background-position: -20px -60px; }
2122
.jslider .jslider-pointer-to { left: 80%; }
2223

2324
.jslider .jslider-label { font-size: 9px; line-height: 12px; color: black; opacity: 0.4; white-space: nowrap; padding: 0px 2px; position: absolute; top: -18px; left: 0px; }

img/jslider.blue.png

139 Bytes
Loading

img/jslider.plastic.png

186 Bytes
Loading

img/jslider.png

134 Bytes
Loading

img/jslider.round.plastic.png

186 Bytes
Loading

img/jslider.round.png

102 Bytes
Loading

js/jquery.slider.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
'<span class="<%=className%>">' +
171171
'<table><tr><td>' +
172172
'<div class="<%=className%>-bg">' +
173-
'<i class="l"></i><i class="r"></i>' +
173+
'<i class="l"></i><i class="f"></i><i class="r"></i>' +
174174
'<i class="v"></i>' +
175175
'</div>' +
176176

@@ -697,4 +697,4 @@
697697
this.parent.redraw(this);
698698
};
699699

700-
})(jQuery);
700+
})(jQuery);

0 commit comments

Comments
 (0)