terribleMia’s avatarterribleMia’s Twitter Archive—№ 6,055

  1. A demonstration of plain CSS "functions" and "mixins": codepen.io/mirisuzanne/pen/BEvjbm?editors=1100 As always, abstractions are only useful when they solve a real problem. I'm not suggesting anyone do this all the time - but it is a way to provide reusable patterns in CSS. /cc #generateconf
    1. …in reply to @TerribleMia
      (When people refer to this sort of example as "added complexity" or "over-engineering" I wonder how a few lines of CSS is more complex than the massive libraries people install every day to solve these same issues. The complexity isn't new: putting it in CSS is…)
      1. …in reply to @TerribleMia
        There’s additional documentation in the pen details…