sage icon indicating copy to clipboard operation
sage copied to clipboard

Incorrect usage of .container_12 class on certain <divs> with 960.gs.

Open mason-stewart opened this issue 15 years ago • 3 comments

I double checked this with @nathansmith, and 960.gs isn't intended to have multiple nested .container_12 (or .container_16) divs. It seems however that there are a couple of places where this inevitably happens in Roots.

From header.php :

    <header id="banner" class="<?php echo roots_container_class; ?>" role="banner">
        <div class="container">
            <a id="logo" href="<?php echo home_url(); ?>/"><img src="<?php echo get_template_directory_uri(); ?>/img/logo.png" width="300" height="75" alt="<?php bloginfo('name'); ?>"></a>
            <nav id="nav-main" class="<?php echo roots_container_class; ?>" role="navigation">
                <?php wp_nav_menu(array('theme_location' => 'primary_navigation')); ?>
            </nav>
            <nav id="nav-utility">
                <?php wp_nav_menu(array('theme_location' => 'utility_navigation')); ?>
            </nav>              
        </div>
    </header>

This results in both the

and

nice catch -- would removing the class on #nav-main be good enough? it doesn't appear to affect/break anything

i don't think it occurs anywhere else except here in the header unless i'm missing something

retlehs avatar May 19 '11 18:05 retlehs

Oof. Yeah sorry, I was thinking it was happening in front-page.php and footer.php, but I was mistaken. Just removing

    class="<?php echo roots_container_class; ?>"

would be totally fine, as far as 960 is concerned. This won't affect Blueprint or anything else? If not, I'll be happy to submit a pull req.

mason-stewart avatar May 19 '11 18:05 mason-stewart

tested in blueprint (good) and should be fine in 1140/anything else since #nav-main ul has 100% width

go ahead and i'll merge it in, ty sir :)

retlehs avatar May 19 '11 18:05 retlehs