getdave / Tanlinell

Boilerplate Wordpress theme for rapid development of new WP themes. Based on the great work of the _s ("Underscore") theme.
GNU General Public License v2.0
6 stars 2 forks source link

Second tier sub nav styling #234

Closed getdave closed 10 years ago

getdave commented 10 years ago

The second and third level children of the nav sub need styling.

Ensure this is actioned to hide children by default and only show when you're within that particular seciton.

.nav-sub .children {
    @include list-reset;
    font-size: 0.9em;
    position: absolute;
    left: -999em;

    li:last-child {
        border-bottom: 0;
    }

    a {
        @include rem(padding-left,25px);
        @include opacity(0.9);
    }
}

.nav-sub .current_page_item,
.nav-sub .current_page_ancestor,
.nav-sub .current-cat,
.nav-sub .current-cat-parent {
    .children {
        position: static;
        left: auto;
    }
}