hey there!

I really like the idea of a modularized CSS like that. But i think with Zen 2.x it went a little to far. (example: block-editing -> This could merge with blocks.css easily) This is just a suggestion, but i think something like 5-7 CSS Files for a template is a good value. Also i find it a bit confusing to have the typography in html-reset.css.

And a Question here: Is ist possible to make the .css files load on demand? For example: comments.css are just loaded if there are actually comments on the actual page viewed. Or the whole administration-css-stuff is only loaded when you are on a site where it is needed. This would make the zen-Theme more compact for the end-user. (Or is it already working that way?)

Keep on the good work!
Simon

Comments

johnalbin’s picture

Component: CSS/HTML Markup » layout.css
Status: Active » Postponed (maintainer needs more info)

And a Question here: Is ist possible to make the .css files load on demand?

Instead of loading CSS files via the .info file, you can use drupal_add_css(), but with CSS aggregation turned on, that would actually make end-user performance worse since it would need to aggregate a new, large, aggregated CSS file each time there is a page with a different set of CSS files.

but i think something like 5-7 CSS Files for a template is a good value

I'm always open to suggestions. FYI, the discussion about the current division of stylesheets occurred here: #200495: Split up monolithic zen.css into smaller, logical stylesheets

johnalbin’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)