Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The region.tpl will use ".region-header" for the header region's wrapper div. Unfortunately, admin/build/block also uses ".region-header" for drag-and-drop table rows.
Which means if you set a width on one of your region.tpl's wrapper div, you'll also apply that same with to the table row which can screw up the layout of the blocks admin page.
Comment | File | Size | Author |
---|---|---|---|
#4 | zen-prevent-block-admin-mistyling-686014-4.patch | 759 bytes | barraponto |
Comments
Comment #1
JohnAlbinIts hardly critical since it doesn't break anything. It just causes an odd appearance on the blocks admin page.
Drupal 7's block admin page was re-written to allow D7's region.tpl to use the .region-header/etc classes.
Comment #2
jix_ CreditAttribution: jix_ commentedJust write div.region-[name] :)
Comment #3
shruti.sheth CreditAttribution: shruti.sheth commented1.You can apply css to your block admin page only* as follows
.page-admin-build-block #page-wrapper #header #block-header div.region-header {
// Your css code
}
2. This will have affect to only your block admin page and none other pages.
Comment #4
barraponto CreditAttribution: barraponto commented#3 is hardly the case, but #2 is a proper solution to a problem we introduce in pages.css, since Zen guides the developer to use .header-region as a selector. Patch fixes that.
Comment #5
JohnAlbinComment #6
JohnAlbin