Sass selector-nest() Function

Last Updated:

Sass selector-nest() Function

The selector-nest() function combines $selectors as though they were nested within one another in the stylesheet.

Example

SASS TO CSS CONVERTER
#{selector-nest("ul", "li")} { color: black; } #{selector-nest(".bar, .foo", "p")} { color: black; }

Syntax

selector-nest($selectors...)

Parameter Value

ValueTypeExplanation
$selectors... Required Specifies the multiple css selectors.

Return Value

ValueExplanation
selectors Returns the combined $selectors as though they were nested within one another in the stylesheet.

Share this Page

Meet the Author