Closed (fixed)
Project:
Zen
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2007 at 11:56 UTC
Updated:
13 Dec 2007 at 04:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
johnalbinYes, there's a better way.
Originally the Zen theme had very minimal CSS, but when trying to get it into Drupal 5.x core, people thought it was too basic to include in core; so they added more style.
Unfortunately, that means that Zen is no longer the ultimate starting theme it purports to be. See the discussion at http://groups.drupal.org/node/6353
I think we should strip down the style to a bare minimum and put the existing style in a sub-theme: zen-classic.
Comment #2
brenda003I totally agree - I use a modified, stripped down version of Zen as my base theme as it is.
Comment #3
steinmb commentedTrackin. I think it is a good idea.
Comment #4
zirafa commentedHi, I wrote/ported most of the CSS for the original zen. I myself am tired of the styles, and would prefer something more minimal.
However the strength in zen is mostly on documentation and having a reference point for beginning - I see it more of a learning tool than anything else.
With this in mind, my personal ideal for a starting theme is:
1) have empty CSS classes defined, so you can just start tweaking from scratch. I want to minimize time using firebug off the bat. It's easy to just delete or ignore empty CSS classes you aren't using at the end.
2) use neutral colors when possible by default
3) a kickass README.txt with PHP snippets to quickly add to template.php. Before the strategy was just to include example overrides and such, but this makes it kinda meaty to start with. I think we can achieve a nice compromise by leaving the actual working code fairly empty but having lots of useful snippets bundled with the theme.
Personally I say scrap the current style and don't have any subthemes.
I was planning on starting another theme project with these principles in mind and based on Zen + useful fixes people have submitted.
Farsheed
Comment #5
johnalbinI really like the idea of a having empty CSS rules in the base theme. But I also think that an example sub-theme with the rules flushed out would be useful to look at; even if no one uses that sub-theme for anything else.
I agree that the template.php is a bit too beefy to start with. I'll try to brainstorm on that as well. Perhaps split it up into separate files and include() statements?
Comment #6
Steven_NC commentedThe open styles make sense. One of the reasons I use Zen is because it has all of the IDs and classes laid out clearly. Then its a matter of styling it to your needs. This makes the theme easy for people with html/css backgrounds to get started with Drupal without having to become a programmer. I think this is extremely important if Drupal is to gain momentum.
I have no problem with separate Zen-based themes rather than actual sub-themes. I was just trying to find a more effective way to keep a highly customized version "zenish".
Comment #7
matt@antinomia commentedAttached is a patch which moves the font-normalization from zen.css into fonts.css, and then moves the rest of zen.css into a zen-classic subtheme. It also creates a zen-starter subtheme with empty selectors to hint at what needs to be themed, as Farsheed suggested. I followed the 'zen subtheme' format of attaching the stylesheets using template.php, is that necessary in these cases? "No code was harmed in the creation of this patch. (just moved around a bit)"
Comment #8
johnalbinHi Matt,
Thanks for the patch, but several hunks FAILED to apply. Can you re-roll so I can get a better look at what this does?
- John
Comment #9
matt@antinomia commentedHey John, try this one instead...
Comment #10
matt@antinomia commentedThird time's the charm?
Comment #11
Duncan Pierce commentedSubscribing, and +1 to the truly minimal main theme with prettier sub-theme idea.
Comment #12
matt@antinomia commentedRerolled with icons.css and images folder moved into subtheme.
Comment #13
johnalbinThe old style is now a sub-theme in 5.x-1.x-dev.
So, the base Zen theme is extremely bare bones.
In fact, it needs a better page.tpl.php (source ordered) and a layout.css that doesn't break in IE with wide content. I'm going to leave this issue open until those two issues are addressed. http://drupal.org/node/121991 and http://drupal.org/node/110897 respectively.
Comment #14
johnalbinThe two issues I mentioned in my last posting are now fixed. yeah!
Farsheed, #1 (empty styles with comments), #2 (neutral colors) and #3 (README file) of your request have also been added to Zen!
So the main Zen theme is still basic but it is much more useful than its previous skeletal state.
I also like your idea of having snippets available for people to easily add to Zen. But putting them in the README file limits the number of people who could contribute. So, instead, I've created a page in the handbook where we can put tips, techniques, snippets, etc that are specific to the Zen theme: http://drupal.org/node/193318
Comment #15
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.