@extend Wrapper aka Mixtend | CSS-Tricks - CSS-Tricks

PHOTO EMBED

Sat Jan 08 2022 02:04:37 GMT+0000 (UTC)

Saved by @wnakswl #html #snipet #sublime

<snippet>
    <content><![CDATA[
@mixin ${1:mixtend}(\$extend: true) {
  @if $extend {
    @extend %${1:mixtend};
  } @else {
    ${2}
  }
}

%${1:mixtend} {
  @include ${1:mixtend}(\$extend: false);
}
]]></content>
    <tabTrigger>mixtend</tabTrigger>
    <scope>source.scss</scope>
</snippet>
content_copyCOPY

https://css-tricks.com/snippets/sass/extend-wrapper-aka-mixtend/