ThemeShaper Forums » Thematic

[closed]

overflow:hidden for #access in 2c-r-fixed?

(3 posts)
  • Started 4 years ago by flick
  • Latest reply from flick
  • This topic is not a support question
  1. I decided to copy/paste the layout from 2c-r-fixed.css into my child theme style.css (to save overriding) and noticed that that the dropdown menu stopped displaying the sub-menus.

    It turned out that as default.css is normally imported after 2c-r-fixed.css, the overflow:visible in the former usually overrides overflow:hidden in the latter, so there's usually no problem until that part is copied into style.css:

    default.css

    #access {
        border-bottom:1px solid #ccc;
        height:32px;
        font-size:13px;
        overflow:visible;
        z-index:100;
    }

    2c-r-fixed.css

    #access {
        position:relative;
        overflow:hidden;
    }

    I'm not sure if this is a feature or a bug but thought it might be worth posting about it.

    Posted 4 years ago #
  2. Jamie Mitchell
    Member

    hey there

    i use the 2c-r-fixed.css all the time, and i put the code in my childtheme css too and have no problems at all with the menu, it displays just as normal.

    you need to put the 2c-r-fixed.css as is near the top of the childtheme stylesheet.

    copy the default css to your childtheme

    then make a space in the css just above the header styles and below the a:hover...(see below, small section from default) . this way the 2c-r-fixed.css is used first.

    a:link {
        color:#004B91;
    }
    a:visited {
        color:#743399;
    }
    a:active,
    a:hover {
        color: #FF4B33;
    }
    
    /* =PASTE YOUR 2c-r-fixed.css HERE
    -------------------------------------------------------------- */
    
    /* =Header
    -------------------------------------------------------------- */
    #header {
        z-index:2;
    }
    #branding {
        padding:88px 0 44px 0;
    }
    Posted 4 years ago #
  3. @Jamie Mitchell: Thanks :) For some reason I'd not considered copying the default.css over to the childtheme stylesheet, but it does sound like a good idea!

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.