In this latest project I had to modify the colours of the top menu bar. Easy enough, but I noticed when I viewed the dropdowns that if the submenu text was too long, it caused discolourations to appear in the flyout menu.

Notice that there is a light blue bar next to the submenu item I was hovering over. Personally I think with the default SharePoint colour scheme this looks quite nice. However, as I was asked to make the row all the same colour, I had to modify the menu flyout classes as follows:
.ms-topNavFlyOuts tr td
{
background-color: #C0C0C0;
}
.ms-topNavFlyOuts a:visited
{
background-color: #C0C0C0;
color: white;
}
.ms-topNavFlyOuts a:link
{
background-color: #C0C0C0;
color: white;
}
.ms-topNavFlyOutsHover a:link
{
background-color: #ffeaad;
color: black;
}
.ms-topNavFlyOutsHover a:hover
{
background-color: #ffeaad;
color: black;
}
.ms-topNavFlyOutsHover a:visited
{
background-color: #ffeaad;
color: black;
}
.ms-topNavFlyOutsHover tr td
{
background-color: #ffeaad;
}
The final result:

really helped me a lot
ReplyDeleteThank you for the feedback, Kris. Glad it helped.
ReplyDeleteGood find- I left this item as the last to tweak on my customized portal since it proved so annoying. :)
ReplyDeleteAdding the .ms-topNavFlyOutsHover tr td{ } passage in my custom CSS did the trick. The original theme was bleeding through until I explicitly overrode the tr and td styles.
Thanks!
You're very welcome, Chris. I appreciate the positive feedback.
ReplyDelete