From 4ba9e8a062362e2d8dbab430447207abb647f18d Mon Sep 17 00:00:00 2001 From: obenland Date: Mon, 6 Jul 2015 17:26:02 +0000 Subject: [PATCH] Twenty Fifteen: Display sidebar background color with Header Image. If the header image has a transparent background, the sidebar background color should be visible. With the `background` shorthand it could never be over set on the front-end however. Props valendesigns. Fixes #31460. git-svn-id: https://develop.svn.wordpress.org/trunk@33092 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfifteen/inc/custom-header.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php index 34994a9f1c..10d0ef1a09 100644 --- a/src/wp-content/themes/twentyfifteen/inc/custom-header.php +++ b/src/wp-content/themes/twentyfifteen/inc/custom-header.php @@ -133,7 +133,14 @@ function twentyfifteen_header_style() { if ( ! empty( $header_image ) ) : ?> .site-header { - background: url() no-repeat 50% 50%; + + /* + * No shorthand so the Customizer can override individual properties. + * @see https://core.trac.wordpress.org/ticket/31460 + */ + background-image: url(); + background-repeat: no-repeat; + background-position: 50% 50%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; @@ -142,7 +149,14 @@ function twentyfifteen_header_style() { @media screen and (min-width: 59.6875em) { body:before { - background: url() no-repeat 100% 50%; + + /* + * No shorthand so the Customizer can override individual properties. + * @see https://core.trac.wordpress.org/ticket/31460 + */ + background-image: url(); + background-repeat: no-repeat; + background-position: 100% 50%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;