Home › Forums › CSS › SCSS darken by % › Re: SCSS darken by %
May 27, 2012 at 4:59 pm
#103538
Participant
If you replace PCT_AMOUNT_HERE
with $pct
, (hence, background:darken( $snip_bg, $pct );
), the result should be as follows:
h2.item_1 {
background: #4b8db5; }
h2.item_2 {
background: #3c7191; }
h2.item_3 {
background: #2d556d; }
h2.item_4 {
background: #1e3949; }
h2.item_5 {
background: #0f1d25; }
h2.item_6 {
background: #000101; }
h2.item_7 {
background: black; }
h2.item_8 {
background: black; }
h2.item_9 {
background: black; }
h2.item_10 {
background: black; }
Not sure if that’s what you’re after?