Make WordPress Core


Ignore:
Timestamp:
04/23/2019 07:47:14 PM (7 years ago)
Author:
laurelfulford
Message:

Twenty Nineteen: Prevent too-long strings from causing horizontal scrolling.

Add hyphen and word-wrap styles to the site title, comments, and widget areas to break too-long strings and prevent horizontal scrolling.

Props ianbelanger, dswebsme, mukesh27.
Fixes #46704.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/site/footer/_site-footer.scss

    r44149 r45258  
    1616                flex-wrap: wrap;
    1717                .widget {
     18                        -webkit-hyphens: auto;
     19                        -moz-hyphens: auto;
     20                        -ms-hyphens: auto;
     21                        hyphens: auto;
    1822                        width: 100%;
     23                        word-wrap: break-word;
    1924                        @include media(desktop) {
    2025                                margin-right: calc(3 * #{$size__spacing-unit});
     
    2631        .site-info {
    2732                color: $color__text-light;
     33                -webkit-hyphens: auto;
     34                -moz-hyphens: auto;
     35                -ms-hyphens: auto;
     36                hyphens: auto;
     37                word-wrap: break-word;
    2838
    2939                a {
Note: See TracChangeset for help on using the changeset viewer.