Created
February 15, 2016 20:41
-
-
Save rohanthewiz/daafb522754398a6b728 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$acolor: rgba(#040708, 0.76); | |
@function rgba_blend($fore, $back) { | |
$ored: ((1 - alpha($fore)) * red($back) ) + (alpha($fore) * red($fore)); | |
$ogreen: ((1 - alpha($fore)) * green($back) ) + (alpha($fore) * green($fore)); | |
$oblue: ((1 - alpha($fore)) * blue($back) ) + (alpha($fore) * blue($fore)); | |
@return rgb($ored, $ogreen, $oblue); | |
} | |
$acolor: rgba(#040708, 0.76); // build a test color with alpha | |
#a_div { | |
background-color: rgba_blend($acolor, white); | |
} |
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
#a_div { | |
background-color: #404343; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment