Created
April 16, 2013 12:03
-
-
Save bpainter/5395398 to your computer and use it in GitHub Desktop.
A CodePen by Bermon Painter. Variables
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
<h1>Variables</h1> | |
<p>Think of variables as handy places to store values that you want to reuse over and over again throughout your Sass document. Good examples for using a variable is to store font stacks, common margin and padding, font sizes, & colors.</p> | |
<ol> | |
<li>Sans Serif Font Stack</li> | |
<li>Serif Font Stack</li> | |
<li>Accent Color</li> | |
</ol> |
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
@import "compass"; | |
// Variables | |
$sans-serif-font-stack: "Helvetica Nueue", Arial, Sans Serif; | |
$serif-font-stack: Georgia, "Times New Roman", Serif; | |
$header-font-size: 20px; | |
$text-color: #333; | |
$accent-color: red; | |
$container-width: 500px; | |
// Rules | |
body { | |
color: $text-color; | |
width: $container-width; | |
} | |
h1 { | |
font-size: $header-font-size; | |
} | |
ol { | |
li:first-child { | |
font-famiy: $sans-serif-font-stack; | |
} | |
li:nth-child(2n) { | |
font-family: $serif-font-stack; | |
} | |
li:last-child { | |
color: $accent-color; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment