News for hackers. Stuff that matters.
Re:Mvp.css – build your landing page with only semantic HTML by OscarTheGrinch on Saturday November 21, 2020 @04:04AM (#25168611)
I dont understand your objection. This is a lightweight starting framework aimed at rapid prototyping, there is nothing stopping you from adding your own classes to refine or override as necessary.

I agree that semantic only would be a big limitation in production, but that's always been the chasm of web dev: taking your hacky "bash it together" code and massaging it into something durable, without wasting time over engineering everything from day 1.

Re:Mvp.css – build your landing page with only semantic HTML by chrismorgan on Saturday November 21, 2020 @04:35AM (#25168691)
My issue with it is that it’s saying that only semantic HTML will be used in mvp.css. Thus, divs and spans and class attributes are forbidden (again, in mvp.css). I am not finding fault with semantic HTML elements (I choose my own markup very carefully), but with this abuse of semantic HTML elements—so that the touted “semantic HTML” is actually “HTML with incorrect (or at best convoluted and dubious) semantics”.

If you’re wanting a lightweight starting point for rapid prototyping, <div class="card"> is much nicer and more obvious than sticking an <aside> inside… hang on, was it an <article> or a <section> that I had to put it inside to make it a card?

So largely I’m saying that for something targeting the space mvp.css is targeting, rabidly avoiding classes is a bizarre and pretty much indefensible choice.

Re:Mvp.css – build your landing page with only semantic HTML by smichel17 on Saturday November 21, 2020 @08:15AM (#25169555)
I built a site using this framework recently and that's exactly what I did.

Copied the css file into my source

    s/aside/\.card/g
Tada!

I viewed mvp.css as a starting point that'll get something looking nice enough on top of my raw html, and then I can (did) make tweaks from there.