Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Ratings Stars
- (with as little code as possible)
- */
- .rating {
- unicode-bidi: bidi-override;
- direction: rtl;
- text-align: center;
- }
- .rating > span {
- display: inline-block;
- position: relative;
- width: 1.1em;
- }
- .rating > span:hover,
- .rating > span:hover ~ span {
- color: transparent;
- }
- .rating > span:hover:before,
- .rating > span:hover ~ span:before {
- content: "\2605";
- font-size: 50px;
- position: absolute;
- left: 0;
- color: gold;
- }
- body { padding: 100px; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement