Last active
September 28, 2016 15:55
-
-
Save netmagik/136d61c7e271bf97ac8af91619cf251a to your computer and use it in GitHub Desktop.
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
/** | |
* | |
* Reviews Us Example | |
* | |
*/ | |
#rating::before { | |
content: 'RATE US'; | |
margin-top: 15px; | |
margin-right: 15px; | |
position: relative; | |
top: -8px; | |
font-size: 1.5em; | |
} | |
#rating { | |
list-style: none; | |
padding: 0; | |
text-align: center; | |
} | |
#rating li { | |
padding-right: 10px; | |
padding-top: 5px; | |
cursor: default; | |
display: inline-block; | |
font-size: 3.5em; | |
list-style-type: none; | |
} | |
#rating li a { | |
text-decoration: none; | |
} | |
.star a, | |
#rating:not(.vote-cast):hover .star:hover ~ .star a, | |
#rating.vote-cast .star.selected ~ .star a | |
{ | |
/* normal state */ | |
color: #357CB7; | |
} | |
#rating:hover .star a, | |
#rating.vote-cast .star a | |
{ | |
/* highlighted state */ | |
color: rgba(255, 183, 57, 0.98); | |
} | |
@media screen and (max-width: 1288px){ | |
#rating li { | |
font-size: 2em; | |
} | |
#rating::before { | |
font-size: 1em; | |
top: -3px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment