The primary menu has a padding definition at style.css:342:

ul.primary li a,
[...]
{
padding: 7px 20px 5px 20px; 
[...]
}

But on admin/structure/menu/manage/management/list&destination=node (that's the only place I found the bug, but there could be more)
reset.css:10 overrides it to 0.
But only if it's not hovered, if I hover it looks like it should be.

I saw it on Chromium 5.0.308.0 (37385) and Firefox 3.6 on linux.

Maybe later I have time to debug this, but take a look, it's an interesting theming problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Coornail’s picture

Issue tags: +padding, +admin theme
FileSize
6.21 KB

Forgot the screenshot after the preview.

seutje’s picture

once again, screwed by the overpowering reset :/

since the active-trail classes don't persist to the <a> but only to the <li> and de reset resets the padding on ul.primary li.active a (023 specificity) to 0, the later defined padding on ul.primary li a (013 specificity) in style.css doesn't override it. If the active class would persist to the <a> like it does on a link to the currently active page, then the padding on ul.primary li a.active(specificity 023) in style.css would override it

I see 3 options,

  1. Nerf this berserker reset.css or or at least remove the comment that it's based on Meyer's -> #723392: Tame seven's reset.css
  2. Have active trail persist to the <a>, this would make it rather hard for themes that have a separate styling on active trails compared to the active page
  3. Add ul.primary li a.active to the selector list for the padding in style.css (see patch)
seutje’s picture

Version: 7.0-alpha2 » 7.x-dev

bumping version

cosmicdreams’s picture

I can't reproduce this issue. Can anyone else? There have been a lot of changes lately, so maybe this is not an issue any longer.

webchick’s picture

Status: Active » Closed (cannot reproduce)

Nope.