Created
January 23, 2015 21:11
-
-
Save coding-horror/96d0d256bc090bcb98e6 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
<div class="bg">Hello</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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$success: #009900; | |
$secondary: #ffffff; | |
div { | |
background-color: dark-light-diff($success, $secondary, 50%, -35%); | |
width:300px; | |
height: 50px; | |
font-weight: bold; | |
color: #919191; | |
} | |
@function bleh($input) { | |
@return $input; | |
} | |
@function dark-light-diff($adjusted-color, $comparison-color, $lightness, $darkness) { | |
@if brightness($adjusted-color) < brightness($comparison-color) { | |
@return scale-color($adjusted-color, $lightness: $lightness) | |
} @else { | |
@return scale-color($adjusted-color, $lightness: $darkness) | |
} | |
} |
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
div { | |
background-color: dark-light-diff(#009900, #ffffff, 50%, -35%); | |
width: 300px; | |
height: 50px; | |
font-weight: bold; | |
color: #919191; | |
} |
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
<div class="bg">Hello</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment