DEV Community

Discussion on: What's the weirdest coding practice you've seen?

Collapse
 
moopet profile image
Ben Sinclair

How about this:

Start with several CSS files called (for example) grid-768.css, grid-1024.css, etc.

Legacy is as legacy is, and they ended up with grid-768 starting with a media query for 790px widths.

Each stylesheet was filled with classes like .fl-17 { width: 17px; }, .fl-18 { width: 18px ; } and so on all the way up to 1920px. Those styles were liberally added to elements by the CMS.

Legacy is as legacy is, and they ended up with values like .fl-200 { width: 257px; } and so on.

I believe this was all to "avoid using inline styles".

Collapse
 
felipperegazio profile image
Felippe Regazio

Oh man S:

Collapse
 
ben profile image
Ben Halpern