_s: using a simpler and more consistent site-header class

This commit is contained in:
Ian Stewart 2012-02-01 16:49:05 +00:00
parent 761e93ad32
commit 88b7c401e6
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@
<body <?php body_class(); ?>>
<div id="page" class="hfeed">
<?php do_action( 'before' ); ?>
<header id="masthead" role="banner">
<header id="masthead" class="site-header" role="banner">
<hgroup>
<h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
@ -59,6 +59,6 @@
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
</header><!-- #masthead -->
</header><!-- #masthead .site-header -->
<div id="main">

View File

@ -351,19 +351,19 @@ a:active {
/* =Media
----------------------------------------------- */
#masthead img,
.site-header img,
.entry-content img,
.comment-content img,
.widget img {
max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
#masthead img,
.site-header img,
.entry-content img,
img[class*="align"],
img[class*="wp-image-"] {
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
#masthead img,
.site-header img,
.entry-content img,
img.size-full {
max-width: 100%;