elmarsto / sbstr8

A nearly-unstyled, hackable, ultra-modern, ultra-clean scaffold for rich, interactive storytelling, journalism and blogging. Fork this repo and get to work.
https://sbstr8.lizmars.net
GNU General Public License v3.0
4 stars 0 forks source link

CSS selector pattern is redundant and ignores CSS strengths #52

Open elmarsto opened 1 year ago

elmarsto commented 1 year ago

Currently I'm using stupidly long class names to pick out specific elements. This was done to make styling easy for newbies. But tbh newbies aren't really our main audience.

This is clumsy:

.s8-page-header-nav-menu-item-icon { /*rules*/ }

This is better:

s8-page s8-header s8-icon { /*rules*/ }

So: The TODO is to revise the theming system to use 'atomic' CSS.