-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for half stars #26
Comments
Hi @hkhuu1011 , |
Support for displaying half-star ratings via Here are the changes needed to make it happen: @import "starability/starability-scss/starability/growRotate";
.starability-result {
$star-count-result: $star-count - 1;
@while $star-count-result > 0 {
&[data-rating="#{$star-count-result}.5"]::after {
width: $star-count-result * $star-size + $star-size / 2;
}
$star-count-result: $star-count-result - 1;
}
} |
Yep, I need it as well. I must display an average of submitted results. It could be even more flexible / precise than just a half star. Thanks @mislav. |
Hello! Sorry, newbie here. Thanks! |
@zacBkh you can put it in your own CSS anywhere as long as it will come in your stylesheet after CSS from the library, |
Will half star ratings be supported in the near future?
The text was updated successfully, but these errors were encountered: