Support from Acquia helps fund testing for Drupal Acquia logo

Comments

makangus’s picture

FileSize
328 bytes
makangus’s picture

cleaned up patch
Sorry this is totally wrong.

makangus’s picture

3rd time the charm

xiukun.zhou’s picture

Status: Needs review » Active

Hi makangus.
Thanks post the patch. but i don't know why need the patch.
CSS:

.block ul.nice-menu ul  ===  ul.nice-menu ul  
makangus’s picture

I should have explained the issue better. But those two selectors are absolutely not equivalent, adding .block applies the style only when it's under a wrapper with .block class, at the same time it increases specificity of the selector.

The Bartik theme puts paddings to .block ul, which means nice-menu always looks broken in the default theme like in the screenshot. Adding .block increases specificity so the padding: 0 gets applied to override the bartik style. I wouldn't normally suggest increasing specificity, but Bartik is the default theme. I think maybe adding an extra style instead of adding specificity is a better route to go. I also haven't touched this issue for a 16 months, I will revisit it and see whether it applies to 7.x-3.x as well or maybe we have already found a solution for this issue.

makangus’s picture

Status: Active » Needs review
FileSize
814 bytes

This describes what the issue is http://monosnap.com/image/mcr5WWQ8VcbcdrwwMBlvhFNgI.png

Attached a new patch to deal with the issue with Bartik separately, which makes a lot more sense than what I originally did.

xiukun.zhou’s picture

Status: Needs review » Fixed

Thanks makangus updated the patch.
commit:
7.x-3.x 664f128
7.x-2.x 2e7e09a

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.