@charset "UTF-8";

// @description
// * first-last mixin.
// * This mixin provides a convenient way to select the first and last
// * child in the current context.

// @access public

// @version 1.0.0

// @author Lucas Bonomi
// @link: https://github.com/LukyVj/family.scss

// @license MIT

// @repository: https://github.com/Black-Axis/sass-pire

// @namespace children

// @module children/first-last

// @example
// * .example {
// *   .child {
// *     @include first-last {
// *        background-color: #212121;
// *        color: #ffffff;
// *     };
// *   }
// * }

// @output
// * .example .child:first-child,
// * .example .child:last-child {
// *   background-color: #212121;
// *   color: #ffffff;
// * }

@mixin first-last() {
    &:first-child,
    &:last-child {
        @content;
    }
}
