Sass simple-selectors() Function
You are Here:
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
Value | Type | Explanation |
---|---|---|
$selector | Required | Specifies a css selector. |
Return Value
Value | Explanation |
---|---|
list | Returns a list of simple selectors in $selector. |
Reminder
Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in Sass.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.