From cde500a7ad5d2984576b9a5282827b334cc2305f Mon Sep 17 00:00:00 2001 From: Ian Stewart Date: Thu, 27 Nov 2014 20:33:13 +0000 Subject: [PATCH] Twenty Fifteen: minor corrections to borders and post title colors in custom color schemes. Props iamtakashi, fixes #30521. git-svn-id: https://develop.svn.wordpress.org/trunk@30588 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/functions.php | 4 ++-- src/wp-content/themes/twentyfifteen/inc/customizer.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index c998b8589e..04edcc97a5 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -265,7 +265,7 @@ function twentyfifteen_post_nav_background() { $prevthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $previous->ID ), 'post-thumbnail' ); $css .= ' .post-navigation .nav-previous { background-image: url(' . esc_url( $prevthumb[0] ) . '); } - .post-navigation .nav-previous .post-title, .post-navigation .nav-previous .meta-nav { color: #fff; } + .post-navigation .nav-previous .post-title, .post-navigation .nav-previous a:hover .post-title, .post-navigation .nav-previous .meta-nav { color: #fff; } .post-navigation .nav-previous a:before { background-color: rgba(0, 0, 0, 0.4); } '; } @@ -274,7 +274,7 @@ function twentyfifteen_post_nav_background() { $nextthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $next->ID ), 'post-thumbnail' ); $css .= ' .post-navigation .nav-next { background-image: url(' . esc_url( $nextthumb[0] ) . '); } - .post-navigation .nav-next .post-title, .post-navigation .nav-next .meta-nav { color: #fff; } + .post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { color: #fff; } .post-navigation .nav-next a:before { background-color: rgba(0, 0, 0, 0.4); } '; } diff --git a/src/wp-content/themes/twentyfifteen/inc/customizer.php b/src/wp-content/themes/twentyfifteen/inc/customizer.php index 0b70bae7dd..f6b8e7c670 100644 --- a/src/wp-content/themes/twentyfifteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfifteen/inc/customizer.php @@ -486,7 +486,7 @@ function twentyfifteen_color_scheme_css_template() { border-color: {{ data.border_color }}; } - .post-navigation .nav-previous:not(.has-post-thumbnail) .nav-next:not(.has-post-thumbnail) { + .post-navigation div + div { border-color: {{ data.border_color }}; }