Sass simple-selectors() Function

Last Updated:

Sass simple-selectors() Function

The simple-selectors() function returns a list of simple selectors in $selector.

Note: The $selector must be a single string that contains a compound selector. This means it may not contains combinators (including spaces) or commas.

Example

SASS TO CSS CONVERTER
#{simple-selectors("a.disabled")} { color: black; } #{simple-selectors("main.blog:after")} { color: black; }

Syntax

simple-selectors($selector)

Parameter Value

ValueTypeExplanation
$selector Required Specifies a css selector.

Return Value

ValueExplanation
list Returns a list of simple selectors in $selector.

Share this Page

Meet the Author