Make WordPress Core

Changeset 26249


Ignore:
Timestamp:
11/18/2013 07:20:28 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: remove singular body class when a page is set to be the front page, and minor style tweaks. Props iamtakashi, see #25946.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
3 edited

Legend:

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

    r26227 r26249  
    400400                $classes[] = 'footer-widgets';
    401401
    402         if ( is_singular() )
     402        if ( is_singular() && ! is_front_page() )
    403403                $classes[] = 'singular';
    404404
  • trunk/src/wp-content/themes/twentyfourteen/rtl.css

    r26117 r26249  
    1414 * 2.0 - Repeatable Patterns
    1515 * 4.0 - Header
    16  * 5.0 - Navigations
     16 * 5.0 - Navigation
    1717 * 6.0 - Content
    1818 *   6.4 - Entry Content
    … …  
    104104
    105105/**
    106  * 5.0 Navigations
     106 * 5.0 Navigation
    107107 * -----------------------------------------------------------------------------
    108108 */
    … …  
    163163.page-links > .page-links-title {
    164164        padding-right: 0;
    165         padding-left: 9px;
    166 }
    167 
    168 .more-link .meta-nav,
    169 .post-format-archive-link .meta-nav {
    170         right: 0;
    171         left: auto;
    172 }
    173 
    174 .more-link:hover .meta-nav,
    175 .post-format-archive-link:hover .meta-nav {
    176         right: 5px;
    177         left: auto;
     165        padding-left: 7px;
    178166}
    179167
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r26150 r26249  
    2121 * 3.0 - Basic Structure
    2222 * 4.0 - Header
    23  * 5.0 - Navigations
     23 * 5.0 - Navigation
    2424 * 6.0 - Content
    2525 *   6.1 - Post Thumbnail
    … …  
    902902
    903903/**
    904  * 5.0 Navigations
     904 * 5.0 Navigation
    905905 * -----------------------------------------------------------------------------
    906906 */
    … …  
    10011001
    10021002.content-area {
    1003         padding-top: 24px;
     1003        padding-top: 48px;
    10041004}
    10051005
    … …  
    13641364        height: auto;
    13651365        margin: 0;
    1366         padding-right: 9px;
     1366        padding-right: 7px;
    13671367        width: auto;
    1368 }
    1369 
    1370 /* More link */
    1371 
    1372 .post-format-archive-link {
    1373         font-size: 14px;
    1374         text-transform: uppercase;
    1375         white-space: pre;
    1376 }
    1377 
    1378 .more-link .meta-nav,
    1379 .post-format-archive-link .meta-nav {
    1380         position: relative;
    1381         left: 0;
    1382 }
    1383 
    1384 .more-link:hover .meta-nav,
    1385 .post-format-archive-link:hover .meta-nav {
    1386         left: 5px;
    13871368}
    13881369
    … …  
    17541735 */
    17551736
    1756 .singular .hentry.has-post-thumbnail {
    1757         margin-top: -24px;
     1737.singular .site-content .hentry.has-post-thumbnail {
     1738        margin-top: -48px;
    17581739}
    17591740
    … …  
    17721753.comment-reply-title,
    17731754.comments-title {
    1774         font-size: 16px;
    1775         font-weight: 900;
    1776         line-height: 1.5;
     1755        font: 900 16px/1.5 Lato, sans-serif;
    17771756        margin: 0;
    17781757        text-transform: uppercase;
    … …  
    18301809
    18311810.comment-list > li:first-child > article,
    1832 .comment-list > li:first-child > .pingback,
    1833 .comment-list > li:first-child > .trackback {
     1811.comment-list > .pingback:first-child,
     1812.comment-list > .trackback:first-child {
    18341813        border-top: 0
    18351814}
    … …  
    19621941.comment-reply-title small a {
    19631942        color: #2b2b2b;
     1943        display: inline-block;
    19641944        float: right;
    19651945        height: 24px;
    … …  
    23662346.widget_twentyfourteen_ephemera .post-format-archive-link {
    23672347        font-weight: 700;
     2348        text-transform: uppercase;
    23682349}
    23692350
    … …  
    24132394/* RSS Widget */
    24142395
    2415 .widget_rss .rsswidget img {
     2396.rsswidget img {
    24162397        margin-top: -4px;
    24172398}
    24182399
    2419 .widget_rss .rss-date {
     2400.rssSummary {
     2401        margin: 9px 0;
     2402}
     2403
     2404.rss-date {
    24202405        display: block;
    24212406}
    … …  
    31323117                margin-bottom: 24px;
    31333118        }
    3134 
    3135         .featured-content {
    3136                 margin-bottom: 48px;
    3137         }
    31383119}
    31393120
    … …  
    31643145        .content-area {
    31653146                float: left;
    3166                 padding-top: 48px;
    31673147                width: 100%;
    31683148        }
    … …  
    31893169        }
    31903170
    3191         .singular .hentry.has-post-thumbnail {
     3171        .singular .site-content .hentry.has-post-thumbnail {
    31923172                margin-top: 0
    31933173        }
    … …  
    31973177        }
    31983178
    3199         .full-width .site-content .has-post-thumbnail .entry-header {
    3200                 margin-top: -48px;
    3201         }
    3202 
     3179        .full-width .site-content .has-post-thumbnail .entry-header,
    32033180        .full-width.singular .site-content .hentry.has-post-thumbnail {
    32043181                margin-top: -48px;
    … …  
    32163193                padding: 48px 30px 24px;
    32173194                width: 33.33333333%;
    3218         }
    3219 
    3220         .featured-content {
    3221                 margin-bottom: 24px;
    32223195        }
    32233196
    … …  
    37023675        .primary-sidebar .widget .widget-title {
    37033676                font-size: 11px;
    3704                 font-weight: 700;
     3677                font-weight: 900;
    37053678                line-height: 1.6363636363;
    37063679                margin-bottom: 18px;
    … …  
    37413714        }
    37423715
     3716        .footer-sidebar .widget_recent_entries li,
     3717        .primary-sidebar .widget_recent_entries li {
     3718                margin-bottom: 18px;
     3719        }
     3720
    37433721        #supplementary {
    37443722                padding: 0;
    … …  
    40344012        }
    40354013
    4036         .singular .hentry.has-post-thumbnail {
     4014        .singular .site-content .hentry.has-post-thumbnail {
    40374015                margin-top: 0;
    40384016        }
Note: See TracChangeset for help on using the changeset viewer.