Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How To Combine Multiple Classes into common css rule Reply To: How To Combine Multiple Classes into common css rule

#250245
Atelierbram
Participant

Yes, … well I guess it will have to be some kind of pre- or post-processing build tool (which groups shared CSS property-value pairs on selectors) to solve this problem. Sass, Less, Stylus et. al. can do this with extends. But this is a tricky one I think for it will not working on media-queries, if I’m not mistaken.
You also may want to look into DRY CSS