Sass - @each Directive



Description

SASS provides @each directive with multiple assignments and with maps. We will discuss them one by one from the following table.

S. No. Directive types & Description
1 @each

This variable contains the value of each item in a list.

2 Multiple assignments

Multiple values can also be used with @each directive.

3 Multiple assignments with maps.

Multiple assignment works well with maps and they are considered as lists of pairs.

sass_control_directives_expressions.htm
Advertisements