If Drupal provided a blank base starting theme in D7 would it be more important as a designer that it:

Events happening in the community are now at Drupal community events on www.drupal.org.
eclipsegc's picture
support a resonable amount of web standards based classes for styling purposes
95% (36 votes)
be easier to style for legacy browsers such a IE6
5% (2 votes)
Total votes: 38

Comments

context

eclipsegc's picture

Please visit http://drupal.org/node/382870 for more context on this. It's kind of a blocking issue for the further development of the new Stark theme in D7.

Eclipse

wheres the 3 option is so

mortendk's picture

wheres the 3 option
is so clean you can wipe your ass with it ;)

/morten.dk king of rock
morten.dk | geek Royale

/morten.dk king of rock
morten.dk | geek Royale

I completely disagree with

ultimateboy's picture

I completely disagree with this poll. First of all, those two options are not independent of each other, in any way shape or form. Following standards and adding classes does not hinder "making it easier to style for legacy browsers" just as coding for legacy browsers does not mean you cannot have standard classes.

Now, I think the real questions that need answers are really about core, not a base theme.. but anyways, if we are talking about base themes, then the questions that should be asked are:

  • How much HTML should a base theme output (tons of wrapper divs, no wrapper elements of any sort, or somewhere in between)?
  • How many classes should be applied to elements (tons of classes *think zen*, no classes, or somewhere in-between)?
  • How much CSS should come pre-packaged with a base theme (a perfectly styled site, absolutely no css, a reset css, or none)?

Each one of these questions is better answered first for core, then for a base theme.. but regardless. That's my two cents.

--
-- matt tucker
pingVision

--
-- matt tucker

ahh yeah so...

eclipsegc's picture

@ultimateboy

When I said "D7" I meant core... When I mentioned Stark it was also a reference to core7. So with that in mind, this issue is tackling a base theme, provided by core, that provides almost no styling, as little markup as we think is feasible while maintaining its usefulness and (thus our question) some classes. Now the issue is (as illustrated in my comment for more context) that we can provide classes that are more generic, more semantic, and ultimately difficult for IE6 to utilize... or we can provide classes that will make developing with IE6 in mind easier to do... which is where this poll came from.

You're totally right about the questions you wanted to ask, it's just as far as Stark goes, we've already answered all of them but this one which maps pretty closely to your second question (it is indeed the question that I'm asking but we've already rejected "no classes" as an option thus we're left with the other two).

Hope this clears up where I'm headed on this.

Eclipse

Some thoughts

jeff1970's picture

Ok, so thinking out loud for once, dangerous I know:

  1. Class attributes are little more than dumb tokens with no semantic value.
  2. Drupal is contextually rich with class attributes.

The first premise I raise in order to pose a question: if the argument for standards is not about semantics then what is it about?

Secondly, Drupal is contextually rich in attributes—we have page $body_classes, wrappers with id's and classes around nodes, blocks and comments and so on. This rich context makes it It is entirely possible to style Drupal content based on context alone, without the need to add classes to POSH markup. E.g.:

#header h1 {}
.node h2 {}
.node .content h2 {}
.front, .logged-in, .page-node, .one-sidebar, .sidebar-left and so on and so on.

The only definitive reason, afaikt, to to add classes to POSH elements is for style. To make it easier to apply styles to this or that heading, item list or what ever, perhaps even, regardless of the context.

IMO the idea that designers want node, block and comment h2 headings to inherit the same attribute values is an assumption contrary to the rich context that Drupal templates possess. Are we going to argue that all those classes are purely for positioning? I don't think so.

As I have stated previously, to me this is all or nothing. Either we do not add class attributes to headings and get on with much more important task of arguing about semantic markup, or follow through and deliver class attributes that fully support the designer, after all that's the only dam reason to add them in the first place.

I've probably said enough on this subject, so I'll leave it at that, for now;)

right but

eclipsegc's picture

.node h2 would style all h2s... regardless of context. So if a user were to utilize h2s in the .node .content h2 context they would inherit from .node h2... whether you want that or not. Thus the proposal for .title on h2s.

That being said, I understand .node-title on h2s as well, but this is moot if we ignore IE6, which again is not a decision I feel comfortable just imposing (as one of the people pushing to get these tpls done). We knew going into this project it could (would) end up a huge bike shed, but ultimately this is important!

@jmburz

You've made really great points both here and on the node tpl issue, so I respect what you're saying here, I just need to feel comfortable putting this topic to bed and having a place to refer for future reference.

@all

Please pass this around to DESIGNERS and THEMERS. It's their opinion I want to hear so badly. This will be up for a week, after that we're going to evaluate from this position and keep moving because this is a blocking issue for ALL our tpls.

Thanks to everyone I'm really appreciating the feedback.

Eclipse

Win!

emmajane's picture

After much gnashing of teeth I think we've come to a really elegant conclusion on IRC:

(1) Stark means stark. It will be as semantically valid and lovely as possible. All of Stark's tpl.php files will be pulled from core and will not include the current classes which exist only because of limited support for the child selector ( > ) in browsers such as IE6.

(2) Drupal core means more than the modules folder. We need to be careful about language. People get stressed out about "into core" and forget that core includes a whole OTHER sub-directory called "themes."

(3) We need better base themes for IE6 too (you poor suckers) aka "legacy" browsers. A new core theme will be created that alters the Stark (read: core modules folder) tpl.php files and includes the necessary classes to make IE6 output easier. tha_sun/sun will be the lead for this theme as he already has a LOT of experience supporting this browser and is comfortable providing the best starting template for themers working with IE6.

Thanks to EclipseGC for leading the charge on this one! You're helping to make theming the rox0r!!

jquery

whatdoesitwant's picture

And ofcourse there are other ways to cater for ie6 while working on the subthemes.
In the end I can reach all page elements with jquery core. Thus I should be able to introduce inheritance to the ie6 output at a slight performance cost for those ie6 users that have javascript capability.

This is important because a significant group of ie6 users will be located in managed networks in large office environments that dare not upgrade because of critical legacy problems with back-end applications like sap. At the same time javascript is allowed in most of these environments to prevent failure of other (web based) tools.

It is extremely difficult to find exact figures for these controled (often citrix-like) environments. But I believe that a large group of ie6 users can be catered for.

E.g. Here in the Netherlands Getronics is a large player forcing the ie6 set-up.

@whatdoesitwant There's

eclipsegc's picture

@whatdoesitwant

There's already a jquery package that does this making IE6 css standards compliant, however it's not a small amount of code, I don't know what it's licensing is, and I doubt we'd ever get it into core (of course, I'm nothing close to the final arbiter of that decision it's just my suspicion, I've been known to make mistakes).

With that said, the "IE6 business environment" argument is getting tired (though it's admittedly true). 37signals didn't think it was that big of a deal:

http://37signals.blogs.com/products/2008/07/basecamp-phasin.html

All we're doing is providing a base template for css savvy designers to work from instead of needing to learn phptemplate inside and out. This means that it should have a very small effect on businesses of these sorts as they'll have a choice to NOT utilize stark. Other themes will ultimately still do what they feel is right, and most provide their own tpl files to support their own css, etc already. We're not screwing IE6 users with this move, we're simply saying we won't dumb down every single core tpl file for their use (garland's tpl files for example will stay largely, perhaps even completely, the same as they are currently).

Since the theme we're "providing" here doesn't even utilize more than a very minimal css footprint, which is already crossbrowser compatible, this is the right move, and should have little to no impact.

Bottom line, we are tired of holding back progress in this area for businesses that are vendor locked with Microsoft on IE6 and Windows 2000... this is 2009 after all.

Eclipse

second that

whatdoesitwant's picture

I did not mean to disagree. Go progress! I just wanted to point out that other solutions are available for laggers.

Cheers, Willem

Theme development

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week