Created
October 13, 2015 15:04
-
-
Save nathania/3f49063fbc0ad0bdc4c7 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | |
<div class="rating"> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
</div> |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$light: rgba(100,100,100,0.5); | |
$dark: #007AA3; | |
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; | |
} | |
.rating > span { | |
display: inline-block; | |
position: relative; | |
font-size:1.5em; | |
width: 0.8em; | |
color: $light; | |
} | |
.rating > span:hover { | |
color: $dark; | |
} | |
.rating > span:hover, | |
.rating > span:hover ~ span { | |
color: $dark; | |
} | |
body { padding: 100px; } |
This file contains hidden or 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
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; | |
} | |
.rating > span { | |
display: inline-block; | |
position: relative; | |
font-size: 1.5em; | |
width: 0.8em; | |
color: rgba(100, 100, 100, 0.5); | |
} | |
.rating > span:hover { | |
color: #007AA3; | |
} | |
.rating > span:hover, | |
.rating > span:hover ~ span { | |
color: #007AA3; | |
} | |
body { | |
padding: 100px; | |
} |
This file contains hidden or 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
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | |
<div class="rating"> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
<span><i class="fa fa-male"></i></span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment