April 2013
Intermediate to advanced
274 pages
5h 39m
English
Compass has another two functions you might find handy: shade and tint. The shade function mixes the color with a percentage of black while tint mixes the color with a percentage of white. Let's adjust the fourth and fifth list item links with these two functions:
&:nth-child(4) a {
background-color: shade($color1,60%);
}
&:nth-child(5) a {
background-color: tint($color1,60%);
}The following screenshot shows what that produces in the browser:

These two functions are handy when it comes to converting graphics composites where designers have added highlight and lowlight lines. Often this is achieved in Photoshop and ...
Read now
Unlock full access