Stuck in half star rating problem CSS. I take a reference from http://codepen.io/mrk1989/pen/mLeHJ
my Html structure for Star showing is like that
<ul class="rateChange">
<li>
<input type="radio" id="rating10" name="rating" value="10" />
<label for="rating10" title="5 stars"></label>
<input type="radio" id="rating9" name="rating" value="9" />
<label class="half" for="rating9" title="4 1/2 stars"></label>
</li>
<li>
<input type="radio" id="rating8" name="rating" value="8" />
<label for="rating8" title="4 stars"></label>
<input type="radio" id="rating7" name="rating" value="7" />
<label class="half" for="rating7" title="3 1/2 stars"></label>
</li>
<li>
<input type="radio" id="rating6" name="rating" value="6" />
<label for="rating6" title="3 stars"></label>
<input type="radio" id="rating5" name="rating" value="5" />
<label class="half" for="rating5" title="2 1/2 stars"></label>
</li>
<li>
<input type="radio" id="rating4" name="rating" value="4" />
<label for="rating4" title="2 stars"></label>
<input type="radio" id="rating3" name="rating" value="3" />
<label class="half" for="rating3" title="1 1/2 stars"></label>
</li>
<li>
<input type="radio" id="rating2" name="rating" value="2" />
<label for="rating2" title="1 star"></label>
<input type="radio" id="rating1" name="rating" value="1" />
<label class="half" for="rating1" title="1/2 star"></label>
</li>
</ul>
and in my case stars come under ul li tag and how I can change my css to get all css functionality which is given in above link ( like on click all previous and current star is ON and on hover all star previous and current start show hovering effect).
This is jsfiddle link in which I am doing something https://jsfiddle.net/ae0ypksv/ not acheiving full functionality.
Help is really appreciated..!! thanks