Simple rating on pure CSS, based on tilde (~)
http://yazonnile.github.io/pure-css-rating/
Tilde (~) is sibling selector from CSS3, that selects all siblings elements running after current
<li>item</li>
<li class="current">item</li>
<li>item</li>
<li>item</li>
.current ~ li {
font-weight: bold;
}
- item
- item
- item
- item