I need to support old and new declarations of pseudo elements on the project I am working on. I am wanting to create an SCSS @mixin
that saves me from having to repeat myself.
I'm wanting to achieve the following:
Declaration:
.selector {
&#{$before} {
content: '';
}
}
Compiled:
.selector:before { content: ''; }
.selector::before { content: ''; }
So I essentially need the @mixin
to @extend
any css properties that follow for both :before
and ::before
.
I have searched high and low, without coming across a solution for this. Are their any Sass wizards able to make my dreams a reality?
Thank you in advance