Make WordPress Core

Changeset 29096


Ignore:
Timestamp:
07/11/2014 06:00:28 PM (10 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: more graceful handling of super-long site titles in small screens: add an ellipsis and adjust max-width more carefully.

Props celloexpressions, schoenwaldnils, and obenland -- fixes #28237.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/css/ie.css

    r27117 r29096  
    2828textarea:focus {
    2929    border: 1px solid #b2b2b2;
     30}
     31
     32.site-title {
     33    max-width: 71%;
    3034}
    3135
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r28756 r29096  
    864864    line-height: 48px;
    865865    margin: 0;
     866
     867    /* Nav-toggle width + search-toggle width - gutter = 86px */
     868    max-width: -webkit-calc(100% - 86px);
     869    max-width:         calc(100% - 86px);
     870}
     871
     872.site-title a,
     873.site-title a:hover {
     874    color: #fff;
     875    display: block;
    866876    overflow: hidden;
    867877    text-overflow: ellipsis;
    868878    white-space: nowrap;
    869 }
    870 
    871 .site-title,
    872 .site-title a,
    873 .site-title a:hover {
    874     color: #fff;
    875879}
    876880
     
    30813085
    30823086@media screen and (max-width: 400px) {
    3083     .site-title {
    3084         max-width: 71%;
    3085     }
    3086 
    30873087    .list-view .site-content .post-thumbnail {
    30883088        background: none;
     
    31593159
    31603160@media screen and (min-width: 401px) {
    3161     .site-title {
    3162         max-width: 77%;
    3163     }
    3164 
    31653161    a.post-thumbnail:hover img {
    31663162        opacity: 0.85;
     
    32913287
    32923288@media screen and (min-width: 594px) {
    3293     .site-title {
    3294         max-width: 85%;
    3295     }
    3296 
    32973289    .site-content .entry-header {
    32983290        padding-right: 30px;
     
    33083300    .header-main {
    33093301        padding: 0 30px;
    3310     }
    3311 
    3312     .site-title {
    3313         max-width: 89%;
    33143302    }
    33153303
     
    34453433
    34463434@media screen and (min-width: 783px) {
     3435    .site-title {
     3436        /* Search-toggle width = 48px */
     3437        max-width: -webkit-calc(100% - 48px);
     3438        max-width:         calc(100% - 48px);
     3439    }
     3440
    34473441    .header-main {
    34483442        padding-right: 0;
    3449     }
    3450 
    3451     .site-title {
    3452         max-width: 93%;
    34533443    }
    34543444
     
    37003690
    37013691@media screen and (min-width: 1008px) {
    3702     .site-title {
    3703         max-width: 95%;
    3704     }
    3705 
    37063692    .search-box-wrapper {
    37073693        padding-left: 182px;
     
    42254211    }
    42264212
    4227     .site-title,
    42284213    .site-title a,
    42294214    .entry-meta,
Note: See TracChangeset for help on using the changeset viewer.