Created
February 20, 2015 04:25
-
-
Save jpdevries/912d345fc695e7843186 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
// ---- | |
// libsass (v3.1.0) | |
// ---- | |
$white:rgb(250,250,250); | |
.my-component { | |
background:lighten(purple,30%); | |
color:purple; | |
body.inverted & { // when in invert mode accommodate with high contrast | |
background:transparent; | |
color:$white; // in _vars.scss we define $white as a near-white value | |
} | |
} |
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
.my-component { | |
background: #ff1aff; | |
color: purple; } | |
body.inverted .my-component { | |
background: transparent; | |
color: #fafafa; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment