Speeding up Workflow Flashcards

1
Q

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!)

A

$complement: complement(red);

a {
background: desaturate($complement, 10%);
color: lighten(red, 5%);
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The following is the correct syntax for a partial file name:

A

_mixins.scss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Splitting up your stylesheet into multiple files is a good idea because:

A

It helps you find code in your project by having styles in segmented areas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To use the styles from another file in your stylesheet, use:

A

@import

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Vendor prefix mixins, like those found in Bourbon, are useful because:

A

They add in browser-prefixes for CSS features that have different browser implementations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Compass is a library that provides:

A

Many features, including spriting, project layout and mixins

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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; }

A

@function double($input) {
@return $input * 2;
}

div {
font-size: double(5px);
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly