From 6e1c7ec0bc6610f195716509e61fa7755ecc67ce Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 15 Oct 2013 16:45:42 +0000 Subject: [PATCH] Twenty Fourteen: first pass at CSS revamp, props iamtakashi. See #25592. git-svn-id: https://develop.svn.wordpress.org/trunk@25788 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/functions.php | 7 +- .../themes/twentyfourteen/sidebar.php | 6 +- .../themes/twentyfourteen/style.css | 2891 ++++++++++------- 3 files changed, 1761 insertions(+), 1143 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 8d75e0d66f..13bc2210ea 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -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' ); diff --git a/src/wp-content/themes/twentyfourteen/sidebar.php b/src/wp-content/themes/twentyfourteen/sidebar.php index dcf4bf95f8..d156fe9d62 100644 --- a/src/wp-content/themes/twentyfourteen/sidebar.php +++ b/src/wp-content/themes/twentyfourteen/sidebar.php @@ -17,16 +17,18 @@ -