Last active
August 29, 2015 14:22
-
-
Save jonathanpath/769a7b1b3f114205af55 to your computer and use it in GitHub Desktop.
Rate module based on ionicons
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
/* ==|==================== | |
Module/Rate | |
Is used for add a rate | |
thanks to https://css-tricks.com/star-ratings/ | |
======================= */ | |
.rate { | |
font-size: 40px; | |
white-space: nowrap; | |
direction: rtl; | |
display: inline-block; | |
} | |
.rate-star { | |
margin-right: 3px; | |
color: #ffb64f; | |
&:before { | |
content: "\f4b2"; | |
} | |
&:hover { | |
&:before { | |
content: "\f4b3"; | |
} | |
& ~ .rate-star { | |
&:before { | |
content: "\f4b3"; | |
} | |
} | |
} | |
&.is-selected { | |
&:before { | |
content: "\f4b3"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment