forked from mirror/_s
_s: using a simpler and more consistent site-header class
This commit is contained in:
parent
761e93ad32
commit
88b7c401e6
|
@ -47,7 +47,7 @@
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<div id="page" class="hfeed">
|
<div id="page" class="hfeed">
|
||||||
<?php do_action( 'before' ); ?>
|
<?php do_action( 'before' ); ?>
|
||||||
<header id="masthead" role="banner">
|
<header id="masthead" class="site-header" role="banner">
|
||||||
<hgroup>
|
<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>
|
<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>
|
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
||||||
|
@ -59,6 +59,6 @@
|
||||||
|
|
||||||
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
|
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
|
||||||
</nav>
|
</nav>
|
||||||
</header><!-- #masthead -->
|
</header><!-- #masthead .site-header -->
|
||||||
|
|
||||||
<div id="main">
|
<div id="main">
|
|
@ -351,19 +351,19 @@ a:active {
|
||||||
/* =Media
|
/* =Media
|
||||||
----------------------------------------------- */
|
----------------------------------------------- */
|
||||||
|
|
||||||
#masthead img,
|
.site-header img,
|
||||||
.entry-content img,
|
.entry-content img,
|
||||||
.comment-content img,
|
.comment-content img,
|
||||||
.widget img {
|
.widget img {
|
||||||
max-width: 100%; /* Fluid images for posts, comments, and widgets */
|
max-width: 100%; /* Fluid images for posts, comments, and widgets */
|
||||||
}
|
}
|
||||||
#masthead img,
|
.site-header img,
|
||||||
.entry-content img,
|
.entry-content img,
|
||||||
img[class*="align"],
|
img[class*="align"],
|
||||||
img[class*="wp-image-"] {
|
img[class*="wp-image-"] {
|
||||||
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
|
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
|
||||||
}
|
}
|
||||||
#masthead img,
|
.site-header img,
|
||||||
.entry-content img,
|
.entry-content img,
|
||||||
img.size-full {
|
img.size-full {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
Reference in New Issue