Skip to content

Instantly share code, notes, and snippets.

@kaelifa
Created November 9, 2012 08:08
Show Gist options
  • Save kaelifa/4044379 to your computer and use it in GitHub Desktop.
Save kaelifa/4044379 to your computer and use it in GitHub Desktop.
A CodePen by kaelifa. Playing with rgba and opacity
<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>
@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