Last active
December 12, 2015 06:19
-
-
Save JohnAlbin/4727999 to your computer and use it in GitHub Desktop.
Sass is for Superman – Example 1: Variables and color functions
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
/** | |
* @file | |
* Sass is for Superman - Example 1: Variables and color functions | |
*/ | |
$blue: rgb(0, 121, 178); /* Create a variable. */ | |
.example { | |
color: $blue; /* Use a variable */ | |
} | |
$blue : rgba(#0079b2, 0.5); | |
$dark-blue : darken(blue, 10%); | |
.example-2 { | |
color: $dark-blue; | |
background-color: $blue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment