Make WordPress Core

Changeset 44679


Ignore:
Timestamp:
01/21/2019 10:07:33 PM (6 years ago)
Author:
laurelfulford
Message:

Twenty Seventeen: Update blockquote alignment on load.

The theme uses JavaScript to check if a right-aligned blockquote is below the sidebar content before pushing it outside of the content area. This was originally only firing on browser resize.

Fixes #40103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js

    r39413 r44679  
    209209        adjustHeaderHeight();
    210210        setQuotesIcon();
     211        belowEntryMetaClass( 'blockquote.alignleft, blockquote.alignright' );
    211212        if ( true === supportsInlineSVG() ) {
    212213            document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' );
Note: See TracChangeset for help on using the changeset viewer.