Make WordPress Core

Ticket #30521: 30521.diff

File 30521.diff, 1.9 KB (added by iamtakashi, 10 years ago)
  • src/wp-content/themes/twentyfifteen/functions.php

     
    265265                $prevthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $previous->ID ), 'post-thumbnail' );
    266266                $css .= '
    267267                        .post-navigation .nav-previous { background-image: url(' . esc_url( $prevthumb[0] ) . '); }
    268                         .post-navigation .nav-previous .post-title, .post-navigation .nav-previous .meta-nav { color: #fff; }
     268                        .post-navigation .nav-previous .post-title, .post-navigation .nav-previous a:hover .post-title, .post-navigation .nav-previous .meta-nav { color: #fff; }
    269269                        .post-navigation .nav-previous a:before { background-color: rgba(0, 0, 0, 0.4); }
    270270                ';
    271271        }
     
    274274                $nextthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $next->ID ), 'post-thumbnail' );
    275275                $css .= '
    276276                        .post-navigation .nav-next { background-image: url(' . esc_url( $nextthumb[0] ) . '); }
    277                         .post-navigation .nav-next .post-title, .post-navigation .nav-next .meta-nav { color: #fff; }
     277                        .post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { color: #fff; }
    278278                        .post-navigation .nav-next a:before { background-color: rgba(0, 0, 0, 0.4); }
    279279                ';
    280280        }
  • src/wp-content/themes/twentyfifteen/inc/customizer.php

     
    486486                border-color: {{ data.border_color }};
    487487        }
    488488
    489         .post-navigation .nav-previous:not(.has-post-thumbnail) .nav-next:not(.has-post-thumbnail) {
     489        .post-navigation div + div {
    490490                border-color: {{ data.border_color }};
    491491        }
    492492