Learn to love mixins and placeholders. They’re what allow you to DRY up your Sass / Scss wherever possible.
I forked your pen and wrote a super simple mixin at the top. There’s probably better ways of doing it / more optimizations you could make so tinker around.
Thanks. I never knew about using “.#{$class}” in a mixin. That’s helpful. It makes my SCSS considerably more dry that’s for sure. I’m going to have to play with that. Thanks for the feedback and fork.
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘CSS’ is closed to new topics and replies.