Making WordPress.org

Changeset 4652


Ignore:
Timestamp:
01/13/2017 12:51:55 AM (9 years ago)
Author:
pento
Message:

Breathe: Open the menu for the current handbook page using CSS instead of JS.

See #1825.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php

    r4636 r4652  
    4747
    4848    // Cacheing hack
    49     wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), '20170112' );
     49    wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), '20170113' );
    5050}
    5151add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\styles', 11 );
    5252
    5353function scripts() {
    54     wp_enqueue_script( 'wporg-breathe-chapters', get_stylesheet_directory_uri() . '/js/chapters.js', array( 'jquery' ), '20170112' );
     54    wp_enqueue_script( 'wporg-breathe-chapters', get_stylesheet_directory_uri() . '/js/chapters.js', array( 'jquery' ), '20170113' );
    5555}
    5656add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts', 11 );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/js/chapters.js

    r4628 r4652  
    1414        .addClass( 'active' )
    1515        .parents( '.menu-item-has-children' )
    16             .toggleClass( 'open' )
    17             .children( '.children' )
    18                 .slideToggle();
     16            .toggleClass( 'open' );
    1917
    2018    // Or if wrapped in a div.expandable
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r4635 r4652  
    909909  border-left: 5px solid #0073aa;
    910910}
     911.menu-table-of-contents-container .current-menu-ancestor ul,
    911912.menu-table-of-contents-container ul.default-open {
    912913  display: block !important;
Note: See TracChangeset for help on using the changeset viewer.