Twenty Fourteen: first pass at CSS revamp, props iamtakashi. See #25592.

Built from https://develop.svn.wordpress.org/trunk@25788


git-svn-id: http://core.svn.wordpress.org/trunk@25700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-10-15 16:46:09 +00:00
parent 592123951b
commit 590b6831dc
3 changed files with 1761 additions and 1143 deletions

View File

@ -100,6 +100,11 @@ function twentyfourteen_setup() {
add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(
'default-color' => 'f5f5f5',
) ) );
/*
* This theme uses its own gallery styles.
*/
add_filter( 'use_default_gallery_style', '__return_false' );
}
endif; // twentyfourteen_setup
add_action( 'after_setup_theme', 'twentyfourteen_setup' );
@ -112,7 +117,7 @@ add_action( 'after_setup_theme', 'twentyfourteen_setup' );
* @return void
*/
function twentyfourteen_content_width() {
if ( is_page_template( 'full-width-page.php' ) || is_attachment() )
if ( is_attachment() )
$GLOBALS['content_width'] = 810;
}
add_action( 'template_redirect', 'twentyfourteen_content_width' );

View File

@ -17,16 +17,18 @@
<?php endif; ?>
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
<nav role="navigation" class="navigation secondary-navigation">
<nav role="navigation" class="navigation site-navigation secondary-navigation">
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
</nav>
<?php endif; ?>
</div><!-- #secondary-top -->
<div id="secondary-bottom" class="widget-area" role="complementary">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
<?php
do_action( 'before_sidebar' );
dynamic_sidebar( 'sidebar-1' );
?>
</div><!-- #secondary-bottom -->
<?php endif; ?>
</div><!-- #secondary -->

File diff suppressed because it is too large Load Diff