WordPress.org

Make WordPress Core

Changeset 31182


Ignore:
Timestamp:
01/15/2015 11:02:24 PM (6 years ago)
Author:
lancewillett
Message:

Twenty Fifteen: remove border on post navigation when post thumbnail is available.

Props jartes, fixes #30918.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r30896 r31182  
    267267        $nextthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $next->ID ), 'post-thumbnail' );
    268268        $css .= '
    269             .post-navigation .nav-next { background-image: url(' . esc_url( $nextthumb[0] ) . '); }
     269            .post-navigation .nav-next { background-image: url(' . esc_url( $nextthumb[0] ) . '); border-top: 0; }
    270270            .post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { color: #fff; }
    271271            .post-navigation .nav-next a:before { background-color: rgba(0, 0, 0, 0.4); }
Note: See TracChangeset for help on using the changeset viewer.