Section 3 Flashcards

1
Q

What is one way of adding a clearfix?

How do you nest

A

using an ::after pseudo element and setting the content to “”, clear to both and display to table.

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

What is a sass variable?

A

pre-fixed with the dollar sign, a variable is a name with a given value. The name is used in the place of the value and thus canbe changed more easily by keepin all the variables in one place

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

What is a @mixin?

A

A mixin is a set of properties that can be added with one line of code.

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

What is an @extend?

A

An @extend places that ruleset inside a ruleset with name prefixed with a % sign.

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

What is a function?

A

a function is declared with the @function then then given a name which is closely followed by parenthesis containing a, and b, perhaps more, which represent the values given in the ruleset that uses the function. Then in squirly braces, after an @return, you declar what you want both values to do.

Example

@function multiply($a, $b) {
@return $a * $b;
}

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