I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I like the idea of having a base stylesheet which doesn't use classes, because every time I see someone write something like <div class="nav"> a little piece of my soul departs.
On the other hand, what you're doing is using data attributes instead of classes, which isn't functionally any different, is it?
I split this up into two parts. The classless stylesheet, base.css, doesn't use data attributes and should work with about every HTML document.
I added some more, optional UI components that can be used with data-attributes. Those are available in the complete all.css or with npm. You're right, those data attributes are not functionally different from class names.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think I like this, but I'm not sold.
I like the idea of having a base stylesheet which doesn't use classes, because every time I see someone write something like
<div class="nav">
a little piece of my soul departs.On the other hand, what you're doing is using data attributes instead of classes, which isn't functionally any different, is it?
I split this up into two parts. The classless stylesheet,
base.css
, doesn't use data attributes and should work with about every HTML document.I added some more, optional UI components that can be used with data-attributes. Those are available in the complete
all.css
or with npm. You're right, those data attributes are not functionally different from class names.