selector_extend

selector_extend($selector, $extendee, $extender)

Returns a new version of $selector with $extendee extended with $extender. This works just like the result of

$selector { ... }
$extender { @extend $extendee }

Examples:

selector-extend(".a .b", ".b", ".foo .bar") => .a .b, .a .foo .bar, .foo .a .bar

Returns A list of lists of strings representing the result of the extension. This is in the same format as a selector returned by &.

Parameters:

  • $selector (String, List) The selector within which $extendee is extended with $extender. This can be either a string, a list of strings, or a list of lists of strings as returned by &.
  • $extendee (String, List) The selector being extended. This can be either a string, a list of strings, or a list of lists of strings as returned by &.
  • $extender (String, List) The selector being injected into $selector. This can be either a string, a list of strings, or a list of lists of strings as returned by &.

Returns:

  • (List) A list of lists of strings representing the result of the extension. This is in the same format as a selector returned by &.

Raises:

  • (ArgumentError) if the extension fails
doc_Sass
2016-11-11 13:09:23
Comments
Leave a Comment

Please login to continue.