gjunge / rateit.js

Rating plugin for jQuery. Fast, Progressive enhancement, touch support, icon-font support, highly customizable, unobtrusive JavaScript (using HTML5 data-* attributes), RTL support, supports as many stars as you'd like, and also any step size.
MIT License
161 stars 45 forks source link

Star.gif #14

Open jrean opened 7 years ago

jrean commented 7 years ago

Hi,

It would be great to allow to define the path of star.gif directly in the javascript/jquery declaration. I use gulp and a lot of tools and I end with the plugin not displaying the stars because it is looking for the star.gif where my final css build is stored...

I work around but it a suggestion you may consider.

:-)

gjunge commented 7 years ago

We try to seperate CSS and JS as much as possible in RateIt. So the default CSS is just that, a default CSS that should be changed using CSS. So my suggestion is to add another CSS files that overrides those parts that contain a path.

Are you using a preprocessor, like LESS or SASS? We might just create a LESS and SASS file, and this way you just have to change some variables.