Comment

Comment by cfv

But wait, what exactly is so hard about doing something like

    // _profile.scss
    .profile-card {
      @extend .m-5;
      // several more lines of extending
      @extend border-gray-light; 
    }
and just get the best of both worlds? That variant also has the advantage of letting us JS folk use element classes for useful stuff, and makes changing all instances of "profile-card" simultaneously a lot simpler.
parent cfv 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton