Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKevin Osorio
15,767 PointsStage 3 - Speeding up workflow with sass
I having a problem submitting this code challenge. Can anyone help me and explain what am I doing wrong?
Set the background of the tag to be a 10% desaturated version of the variable, using the desaturate function. (HINT: desaturate works a lot like the lighten function - taking a color, then a percentage!)
$complement: desaturate(red);
a {
color: lighten(red, 5%);
background: desaturate($complement, 10%);
}
eirikvaa
18,015 PointsAh, I was about to comment. Good to hear that you fixed it. You forgot the second argument in the first desaturate function, right?
3 Answers
Kevin Osorio
15,767 Pointsno at the beginning i thought it was that but it wasn't. After the variable complement i had desaturate function and it should of been complement. That's it, simple mistake sass can get complicated at times
eirikvaa
18,015 PointsStrange. I just ran the your code and I got an error with the wrong number of arguments.
Charl Janse van Rensburg
3,426 PointsThis is the correct code:
$color: red; $complement: complement(red);
a { color: lighten($color, 5%); background: desaturate($complement, 10%); }
Kevin Osorio
15,767 PointsReally? that's odd. Going to try and do the same task objectives and see if it works
eirikvaa
18,015 PointsDo that!
Kevin Osorio
15,767 PointsKevin Osorio
15,767 PointsFIXED IT!!! read the instructions carefully