254 karma · joined May 29, 2016
In all sicilianness, the author just wanted an excuse to binge on home-baked pizza. Ugh. Disgusting. I'd do the same.
Next article in the series: "Why does bacon make everything taste better?"
- Steeper learning curve and less accessible than adding a class like "col-3" or "grid--1/2". The latter is almost self-explanatory.
- Requires an existing or new CSS class to bind the styles to. If it's a new class, you have to figure out a good name (which isn't always easy, naming things is hard).
- Requires editing CSS/Less/Sass, which (depending on your setup) can require waiting for it to compile. The wait time for compiling/bundling HTML is usually negligible.
- Traditional grid systems just work, and they work well enough for most things. When you have more important & interesting problems than a CSS grid system, there's a bias towards shipping what works and moving on.
That being said, flexbox is really powerful and a great tool for many things. But for many simple layouts, traditional grid systems can get the job done just fine without requiring much initial investment. On interdisciplinary teams where non-frontend devs can contribute, end-user simplicity is sometimes more important than language sophistication.
<div class="grid--1/2 grid--2/3@M">
<div class="grid--1/3"></div>
<div class="grid--1/3"></div>
<div class="grid--1/3"></div>
</div>
<div class="grid--1/2 grid--1/3@M"></div>