Created
June 24, 2015 13:58
-
-
Save Sinkler/099eabd7098c345a91b2 to your computer and use it in GitHub Desktop.
jQuery Bar Rating - stars with CSS3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ '#id_rating' | |
.barrating( | |
wrapperClass: 'rating-bar' | |
showSelectedRating: false | |
initialRating: 5 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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