Drupal core markup and styling
I recently found that Drupal uses a lot of nested HTML elements with the same classnames, then, in CSS, elements are targeted very specifically. For example take a look at this:
<div class="tabledrag-changed-warning messages warning">
<span class="warning tabledrag-changed">*</span> Changes made in this table will not be saved until the form is submitted.
</div>
Read morediv.warning {
background-image: url(../../misc/message-24-warning.png);
border-color: #ED5;
}
Core template conversion methodology - cart before the horse?
The way we have been approaching changes to core templates has, at least afaict, been a piecemeal affair - we change one or two templates at a time working through the various markup issues until such time as we have some broad consensus and ta da, here's our new template.
This bottom-up-esque methodology seems reasonable because we we are not overhauling the entire system at any one time and are just looking to adjust or tweak parts of it.
I think this has worked OK in the past, however I tend to think this methodology has a few drawbacks.
Read moreRecommended Markup Guide for Modules
I'm referencing the Drupal Markup Style Guide g.d.o wiki in the Definitive Guide to Drupal 7 and it hasn't been updated in a couple years so i wanted to give all interested parties, especially HTML5 folk, foreknowledge to update it (or link it to a d.o equivalent?).
Advice is sound and it's the most comprehensive take i've seen from a module developer's perspective, so that's why i'm providing the link: http://groups.drupal.org/node/6355
Read morePanels to access drupal regions out of $content
Two days ago i was working on a page and introduced Panels 3. The page was designed without panels and already provided specific design regions such as the right and left column. So panels was ought to improve the situation...
But then suddenly it came clear there's some mismatch with those two.
If you have blocks enabled - panels will remain in the content part and your ability to modify the whole presentation is pretty limited.