Speeding up Workflow Flashcards
Open a scope for (a) tags and make their color 5% lighter than the standard red.
Set a variable named $complement to be the complement of the standard red.
Set the background of the (a) tag to be a 10% desaturated version of the variable, using thedesaturate function. (HINT: desaturate works a lot like the lighten function - taking a color, then a percentage!)
$complement: complement(red);
a {
background: desaturate($complement, 10%);
color: lighten(red, 5%);
}
The following is the correct syntax for a partial file name:
_mixins.scss
Splitting up your stylesheet into multiple files is a good idea because:
It helps you find code in your project by having styles in segmented areas
To use the styles from another file in your stylesheet, use:
@import
Vendor prefix mixins, like those found in Bourbon, are useful because:
They add in browser-prefixes for CSS features that have different browser implementations
Compass is a library that provides:
Many features, including spriting, project layout and mixins
Write a function, called double, that multiplies its input by 2.
Use the double function you just wrote to refactor this code: div { font-size: 5px * 2; }
@function double($input) {
@return $input * 2;
}
div {
font-size: double(5px);
}