Created
November 9, 2012 08:08
-
-
Save kaelifa/4044379 to your computer and use it in GitHub Desktop.
A CodePen by kaelifa. Playing with rgba and opacity
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
<div class="example-colour75"> | |
<p>Example colour with 75% opacity</p> | |
</div> | |
<div class="example-colour5"> | |
<p>Example colour with 50% opacity</p> | |
</div> | |
<div class="example-colour5"> | |
<p>Example colour with 25% opacity</p> | |
</div> |
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
@import "compass"; | |
$color-brand-primary: 120, 192, 192; | |
.example-colour75 { | |
background: rgba($color-brand-primary, 0.75); | |
} | |
.example-colour5 { | |
background: rgba($color-brand-primary, 0.5); | |
} | |
.example-colour25 { | |
background: rgba($color-brand-primary, 0.25); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment