////
/// @group Selector Utils
/// @link http://www.sitepoint.com/sass-3-4-is-out/
////

/// Add selector to root (requires Libsass 3.3+ or Ruby Sass 3.4+)
/// @param {String} $selector - Selector to add to root
///
@mixin fs-root-add($selector) {
  @at-root #{$selector + &} {
    @content;
  }
}

/// Prepend selector
/// @param {String} $selector - Selector to insert before root
///
@mixin fs-root-before($selector) {
  @at-root $selector #{&} {
    @content;
  }
}

////
/// @group Selector Utils (requires Sass 3.4+)
/// @link http://sass-lang.com/documentation/Sass/Script/Functions.html#selector_functions
////

/// Add selector to root
/// @param {String} $selector - Selector to add to root
///
@mixin fs-root-add($selector) {
  @at-root #{selector-append($selector, &)} {
    @content;
  }
}

/// Prepend selector
/// @param {String} $selector - Selector to insert before root
///
@mixin fs-root-before($selector) {
  @at-root #{selector-nest($selector, &)} {
    @content;
  }
}

Update selector util mixins to use native “selector” functions
Update selector util mixins to use native “selector” functions
