Make WordPress Core

Ticket #25938: 25938.diff

File 25938.diff, 1.8 KB (added by taupecat, 12 years ago)

Here's the patch. Had to add yet another class onto the body. :-/

  • wp-content/themes/twentyfourteen/functions.php

    diff --git wp-content/themes/twentyfourteen/functions.php wp-content/themes/twentyfourteen/functions.php
    index 5b8c6c4..73e2137 100644
    function twentyfourteen_body_classes( $classes ) { 
    402402        if ( is_singular() )
    403403                $classes[] = 'singular';
    404404
     405        if ( twentyfourteen_has_featured_posts() )
     406                $classes[] = 'has-featured-content';
     407
    405408        if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) )
    406409                $classes[] = 'slider';
    407410        elseif ( is_front_page() )
  • wp-content/themes/twentyfourteen/style.css

    diff --git wp-content/themes/twentyfourteen/style.css wp-content/themes/twentyfourteen/style.css
    index d7021a3..5067bf1 100644
    a.post-thumbnail:hover { 
    17561756        margin-top: -24px;
    17571757}
    17581758
     1759.singular .featured-content .hentry.has-post-thumbnail {
     1760        margin-top: 0;
     1761}
     1762
    17591763
    17601764/**
    17611765 * 6.14 Comments
    a.post-thumbnail:hover { 
    31023106        .featured-content {
    31033107                margin-bottom: 48px;
    31043108        }
     3109
     3110        .singular.has-featured-content .hentry.has-post-thumbnail {
     3111                margin-top: -72px;
     3112        }
     3113
     3114        .singular .featured-content .hentry.has-post-thumbnail {
     3115                margin-top: 0;
     3116        }
    31053117}
    31063118
    31073119@media screen and (min-width: 594px) {
    a.post-thumbnail:hover { 
    31713183                margin-top: -48px;
    31723184        }
    31733185
     3186        .full-width.singular.has-featured-content .hentry.has-post-thumbnail {
     3187                margin-top: -72px;
     3188        }
     3189
     3190        .full-width.singular .featured-content .hentry.has-post-thumbnail {
     3191                margin-top: 0;
     3192        }
     3193
    31743194        #secondary,
    31753195        #supplementary {
    31763196                padding: 0 30px;
    a.post-thumbnail:hover { 
    34623482                margin-top: -72px;
    34633483        }
    34643484
     3485        .full-width.singular .featured-content .hentry.has-post-thumbnail {
     3486                margin-top: 0;
     3487        }
     3488
    34653489        .featured-content {
    34663490                margin-bottom: 0
    34673491        }