Whenever I apply css to something that will appear in a block, I find that the contextual link function (edit block tool) shows permanently instead of just on mouseover. Moreover, the cogwheel icon also shows in the admin overlay.

I had wondered whether there was some z-index thing going on, but that doesn't explain the mouseover behaviour not working .

The screenshots probably do a better job of explaining than my words.

CommentFileSizeAuthor
Screenshot_2.jpg96.04 KBmrpauldriver
Screenshot_1.jpg147.07 KBmrpauldriver

Comments

mrpauldriver’s picture

Further.

The css used for this block was as follows...
-------------------------------------------------------

#block-system-main-menu {
width: 220px;
padding-bottom: 10px;
position: relative;
left: -22px;
}

#block-system-main-menu ul {
padding-left: 0px;
}

#block-system-main-menu li {
font-size: 16px;
font-weight: bold;
list-style: none;
margin-left: 0px;
}

#block-system-main-menu a {
display: block;
padding-left: 23px;
}

#block-system-main-menu a:link, #block-system-main-menu a:visited {
color: #EB1B15;
text-decoration: none;
}

mrpauldriver’s picture

bump

Does anybody else have this problem?

mrpauldriver’s picture

bump

Does anybody else have this problem?

mengi’s picture

edit:

*nevermind didn't read the OP well enough. Having the same problem though.

fubhy’s picture

Category: bug » support
Status: Active » Closed (fixed)

This is caused by you adding "a" styling to the #block directly which also styles the contextual links "a" => breaks it. Be more specific with your css and it works.

mrpauldriver’s picture

doh!

Thank you

sjhuskey’s picture

Thanks, fubhy! That saved a bunch of my time!