ThemeShaper Forums » Thematic

Yet another menu question

(4 posts)
  • Started 6 months ago by optriro
  • Latest reply from optriro
  • This topic is resolved

Tags:

  1. optriro
    Member

    I have yet another questions about the menu. My site is pretty much like I want it, layout-wise, but one thing about the menu has me stumped.

    Check this out: http://picz.pxlwrshp.be/lalala.png

    Hovering over 1st lvl items makes text red, background-color is transparent. Hovering on 2nd level is #fc0, text red.

    Problem: when moving mouse from 1st lvl items, the background turns #fafafa, like in default.css, even though I’ve overridden it with background: transparent in my own stylesheet. Also happens when clicking 2nd lvl items.
    Changing the #fafafa to transparent in default.css makes the drop-downs transparent.

    Windows 7, latest (as of November 6th, 2011) versions of Chrome and Firefox.

    Relevant(?) part of style.css follows:


    .sf-menu li {
    background: transparent;
    }
    .sf-menu li li {
    background: transparent;
    }
    .sf-menu li li li {
    background: #9AAEDB;
    }
    .sf-menu li:hover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
    background: transparent;/*url(img/menu-bg.png) top left repeat-x;*/
    outline: 0;
    border-bottom-color:#ccc;
    color:#ec1d24;
    text-shadow: 0px 1px 1px #000;
    filter: dropshadow(color=#000000, offx=0, offy=1);
    }
    .sf-menu li.sfHover li a:hover {background: #fc0;}

    .sf-menu ul {
    border-right:0px solid #ccc;
    border-bottom:0px solid #ccc;
    }
    .sf-menu li:hover ul,
    .sf-menu li.sfHover ul {
    top:48px; /* overriding essential styles */
    }
    .sf-menu ul ul {
    margin-top:0;
    }
    .sf-menu ul a {
    background:#858585;
    border-bottom:none;
    }
    .sf-menu ul a:hover {
    color: #FF4B33;
    }

    I know I probably have a couple of redundant things in there, but I haven't attempted cleaning my code yet.

    Thankful for any help.

    Posted 6 months ago #
  2. check the menu thread:
    http://themeshaper.com/forums/topic/thematic-menus-demystified-1#post-15283

    i think you are probably not accounting for the .sfHover class that is dynamically added to that parent li

    ./* 1st level links, while hovering over sub menu */
    .sf-menu li.sfHover a{
    	color: blue;
    	background-color: pink;
    }
    Posted 6 months ago #
  3. optriro
    Member

    Thanks, I'll check it out.

    Posted 6 months ago #
  4. optriro
    Member

    Well, that solved everything. Thanks a million.

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.