Make WordPress Core

Changeset 25758


Ignore:
Timestamp:
10/10/2013 03:35:27 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: improve display for elements in the featured content area by preventing titles from breaking and letting content overflow with an ellipsis. Props obenland, fixes #25053.

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

Legend:

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

    r25754 r25758  
    204204        #secondary .current_page_item > a,
    205205        #secondary .current-menu-item > a,
    206         #featured-content .entry-meta a:hover,
    207         #featured-content .entry-title a:hover,
    208         #featured-content .more-link,
     206        .featured-content a:hover,
     207        .featured-content .more-link,
    209208        .widget-area a:hover {
    210209            color: ' . $accent_much_lighter . ';
  • trunk/src/wp-content/themes/twentyfourteen/rtl.css

    r25756 r25758  
    447447    }
    448448
    449     #featured-content .hentry {
     449    .featured-content .hentry {
    450450        float: right;
    451451    }
     
    629629    }
    630630
    631     #featured-content {
     631    .featured-content {
    632632        padding-right: 222px;
    633633        padding-left: 0;
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r25756 r25758  
    11831183----------------------------------------------- */
    11841184
    1185 #featured-content {
     1185.featured-content {
    11861186    background: #000;
    11871187    background-attachment: fixed;
     
    11941194    width: 100%;
    11951195}
    1196 #featured-content .hentry {
     1196.featured-content .hentry {
    11971197    color: #fff;
    11981198    margin: 0;
    1199     padding: 0;
    1200     position: relative;
    12011199    width: 100%;
    12021200}
     
    12091207    opacity: 0.85;
    12101208}
    1211 #featured-content .entry-wrap {
     1209.featured-content .entry-wrap {
    12121210    background-color: #000;
    12131211    overflow: hidden;
    12141212    padding: 12px 10px;
    12151213}
    1216 #featured-content .entry-meta a,
    1217 #featured-content .entry-title a {
     1214.featured-content a {
    12181215    color: #fff;
    12191216}
    1220 #featured-content .entry-meta a:hover,
    1221 #featured-content .entry-title a:hover {
    1222     color: #5FF23D;
    1223 }
    1224 #featured-content .entry-meta {
     1217.featured-content a:hover {
     1218    color: #5FF23d;
     1219}
     1220.featured-content .entry-meta {
    12251221    font-size: 11px;
    12261222    font-weight: 700;
    12271223    line-height: 1.0909090909;
    12281224}
    1229 #featured-content .cat-links {
     1225.featured-content .cat-links {
    12301226    font-weight: 700;
    12311227}
    1232 #featured-content .entry-title {
     1228.featured-content .entry-title {
    12331229    font-size: 18px;
    12341230    font-weight: 300;
    12351231    line-height: 1.3333333333;
    12361232    margin-bottom: 0;
     1233    overflow: hidden;
     1234    text-overflow: ellipsis;
    12371235    text-transform: uppercase;
    1238 }
    1239 #featured-content .entry-summary {
     1236    white-space: nowrap;
     1237}
     1238.featured-content .entry-summary {
    12401239    background-color: transparent;
    12411240    color: rgba(255, 255, 255, 0.75);
    1242     padding-bottom: 12px;
    1243 }
    1244 #featured-content .entry-summary p {
    12451241    font-size: 11px;
    12461242    line-height: 1.6363636363;
    1247     margin-top: 9px;
    1248     margin-bottom: 0;
    1249 }
    1250 #featured-content .more-link {
    1251     color: #5FF23D;
     1243    padding: 9px 0 12px;
     1244}
     1245.featured-content .more-link {
     1246    color: #5FF23d;
    12521247    font-size: 11px;
    12531248}
     
    23452340        padding: 48px 30px 0;
    23462341    }
    2347     #featured-content .hentry {
     2342    .featured-content .hentry {
    23482343        float: left;
    23492344        width: 50%;
    23502345    }
    2351     #featured-content .hentry:nth-child( 2n+1 ) {
     2346    .featured-content .hentry:nth-child( 2n+1 ) {
    23522347        clear: both;
    23532348    }
    2354     #featured-content .entry-wrap {
     2349    .featured-content .entry-wrap {
    23552350        height: 96px;
    23562351    }
     
    24492444        padding-top: 72px;
    24502445    }
    2451     #featured-content .hentry {
     2446    .featured-content .hentry {
    24522447        width: 33.3333333%;
    24532448    }
    2454     #featured-content .hentry:nth-child( 2n+1 ) {
     2449    .featured-content .hentry:nth-child( 2n+1 ) {
    24552450        clear: none;
    24562451    }
    2457     #featured-content .hentry:nth-child( 3n+1 ) {
     2452    .featured-content .hentry:nth-child( 3n+1 ) {
    24582453        clear: both;
    24592454    }
Note: See TracChangeset for help on using the changeset viewer.