Skip to content

Instantly share code, notes, and snippets.

@Sinkler
Created June 24, 2015 13:58
Show Gist options
  • Save Sinkler/099eabd7098c345a91b2 to your computer and use it in GitHub Desktop.
Save Sinkler/099eabd7098c345a91b2 to your computer and use it in GitHub Desktop.
jQuery Bar Rating - stars with CSS3
$ '#id_rating'
.barrating(
wrapperClass: 'rating-bar'
showSelectedRating: false
initialRating: 5
)
.rating-bar {
display: block;
overflow: hidden;
.br-widget {
a {
display: block;
float: left;
font-size: 30px;
text-decoration: none;
&:before {
content: '☆';
}
}
a:hover,
a.br-active,
a.br-selected {
&:before {
content: "\2605";
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment