Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
So there's a bit of class-itis going on with the block classes that has been there since Zen 5.x-1.x. And I'm not sure why we have it.
We have these classes:
* - region-count-[x]: The position of the block in the list of blocks in the
* current region.
* - region-odd: An odd-numbered block of the list of blocks in the current
* region.
* - region-even: An even-numbered block of the list of blocks in the current
* region.
* - count-[x]: The position of the block in the list of blocks on the current
* page.
* - odd: An odd-numbered block of the list of blocks on the current page.
* - even: An even-numbered block of the list of blocks on the current page.
But now that we have first and last classes (#1046394: First and last classes on blocks in regions), I think we only need:
* - first: The first block in the region.
* - last: The last block in the region.
* - odd: An odd-numbered block in the region's list of blocks.
* - even: An even-numbered block in the region's list of blocks.
Did anyone ever use the odd/even or count-* when it didn't correspond to the position within the region? I guess if you had two regions right on top of each other, it would be useful. But… why not just have one region?
Simplifying the list seems like a no-brainer.
Comments
Comment #1
JohnAlbinFixed. http://drupal.org/cvs?commit=501238