Module | Compass::SassExtensions::Functions::Selectors |
In: |
lib/compass/sass_extensions/functions/selectors.rb
|
COMMA_SEPARATOR | = | /\s*,\s*/ |
Permute two selectors, the first may be comma delimited. The end result is a new selector that is the equivalent of nesting the second selector under the first one in a sass file and preceding it with an &. To illustrate, the following mixins are equivalent:
#{!selector} &#{!to_append} width: 2px
#{append_selector(!selector, !to_append)} width: 2px
Permute multiple selectors each of which may be comma delimited, the end result is a new selector that is the equivalent of nesting each under the previous selector. To illustrate, the following mixins are equivalent:
#{!selector1} #{selector2} #{selector3} width: 2px
#{nest(!selector, !selector2, !selector3)} width: 2px