Make WordPress Core

Changeset 28691


Ignore:
Timestamp:
06/06/2014 05:30:38 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: Apply max-width values to avoid site title breaking the layout in small screens. Props sixhours, rclations. See #28237.

File:
1 edited

Legend:

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

    r28690 r28691  
    864864        line-height: 48px;
    865865        margin: 0;
    866 }
    867 
     866        overflow: hidden;
     867        text-overflow: ellipsis;
     868        white-space: nowrap;
     869}
     870
     871.site-title,
    868872.site-title a,
    869873.site-title a:hover {
     
    30063010
    30073011@media screen and (max-width: 400px) {
     3012        .site-title {
     3013                max-width: 71%;
     3014        }
     3015
    30083016        .list-view .site-content .post-thumbnail {
    30093017                background: none;
     
    30803088
    30813089@media screen and (min-width: 401px) {
     3090        .site-title {
     3091                max-width: 77%;
     3092        }
     3093
    30823094        a.post-thumbnail:hover img {
    30833095                opacity: 0.85;
     
    32083220
    32093221@media screen and (min-width: 594px) {
     3222        .site-title {
     3223                max-width: 85%;
     3224        }
     3225
    32103226        .site-content .entry-header {
    32113227                padding-right: 30px;
     
    32213237        .header-main {
    32223238                padding: 0 30px;
     3239        }
     3240
     3241        .site-title {
     3242                max-width: 89%;
    32233243        }
    32243244
     
    33583378        }
    33593379
     3380        .site-title {
     3381                max-width: 93%;
     3382        }
     3383
    33603384        .search-toggle {
    33613385                margin-right: 0;
     
    36053629
    36063630@media screen and (min-width: 1008px) {
     3631        .site-title {
     3632                max-width: 95%;
     3633        }
     3634
    36073635        .search-box-wrapper {
    36083636                padding-left: 182px;
     
    41264154        }
    41274155
     4156        .site-title,
    41284157        .site-title a,
    41294158        .entry-meta,
Note: See TracChangeset for help on using the changeset viewer.