Created
February 20, 2014 13:55
-
-
Save laurend/9114086 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div class="green">Home</div> | |
<div class="gray"></div> |
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
// ---- | |
// Sass (v3.3.0.rc.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$green: #1eb478; | |
$green-dark: darken($green, 4); | |
$gray: #6a737b; | |
$gray-dark: darken($gray, 4); | |
div { | |
width: 12em; | |
height: 3em; | |
transition: background-color 50ms ease-in-out; | |
color: white; | |
text-align: center; | |
line-height: 3em; | |
text-transform: uppercase; | |
font-family: "bentonsans"; | |
font-weight: bold; | |
-webkit-font-smoothing: antialiased; | |
letter-spacing: .03em | |
} | |
.green { | |
background-color: $green; | |
&:active { | |
background-color: $green-dark; | |
} | |
} | |
.gray { | |
background-color: $gray; | |
&:active { | |
background-color: $gray-dark; | |
} | |
} |
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
div { | |
width: 12em; | |
height: 3em; | |
transition: background-color 50ms ease-in-out; | |
color: white; | |
text-align: center; | |
line-height: 3em; | |
text-transform: uppercase; | |
font-family: "bentonsans"; | |
font-weight: bold; | |
-webkit-font-smoothing: antialiased; | |
letter-spacing: 0.03em; | |
} | |
.green { | |
background-color: #1eb478; | |
} | |
.green:active { | |
background-color: #1ba36c; | |
} | |
.gray { | |
background-color: #6a737b; | |
} | |
.gray:active { | |
background-color: #616970; | |
} |
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
<div class="green">Home</div> | |
<div class="gray"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment