Skip to content

Instantly share code, notes, and snippets.

@jonathanpath
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanpath/769a7b1b3f114205af55 to your computer and use it in GitHub Desktop.
Save jonathanpath/769a7b1b3f114205af55 to your computer and use it in GitHub Desktop.
Rate module based on ionicons
/* ==|====================
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