Section 3 Flashcards
What is one way of adding a clearfix?
How do you nest
using an ::after pseudo element and setting the content to “”, clear to both and display to table.
What is a sass variable?
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
What is a @mixin?
A mixin is a set of properties that can be added with one line of code.
What is an @extend?
An @extend places that ruleset inside a ruleset with name prefixed with a % sign.
What is a function?
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;
}