Ticket #4476: 4467.diff
File 4467.diff, 2.7 KB (added by , 6 years ago) |
---|
-
js/chapters.js
19 19 } 20 20 21 21 // Add our expandable button 22 tocContainer.find( '> ul >.menu-item-has-children > a' )22 tocContainer.find( '> ul .menu-item-has-children > a' ) 23 23 .wrap( '<div class="expandable"></div>' ) 24 24 .after( '<button class="dashicons dashicons-arrow-down-alt2" aria-expanded="false"></button>' ); 25 25 26 26 // Invisibly open all of the submenus 27 jQuery( '.menu-item-has-children > ul ul' ). addClass( 'default-open');27 jQuery( '.menu-item-has-children > ul ul' ).hide(); 28 28 29 29 // Open the current menu 30 30 tocContainer.find( '.current-menu-item a' ).first() … … 34 34 .find( '> div > .dashicons' ) 35 35 .attr( 'aria-expanded', true ); 36 36 37 // Open the current submenu. 38 tocContainer.find( '.current-menu-item > ul' ).show(); 39 37 40 // Or if wrapped in a div.expandable 38 41 jQuery( '.menu-item-has-children > div > .dashicons' ).click( function() { 39 42 var menuToggle = jQuery( this ).closest( '.menu-item-has-children' ); -
package.json
14 14 "matchdep": "~0.3.0" 15 15 } 16 16 } 17 -
scss/main.scss
545 545 width: 640px; 546 546 margin: 0 auto; 547 547 } 548 548 549 549 } 550 550 .color.section { 551 551 color: #fff; … … 1282 1282 .comment-list li.depth-1, 1283 1283 #comment-preview { 1284 1284 border: 1px solid #dfdfdf; 1285 border-radius: 2px; 1285 border-radius: 2px; 1286 1286 width: 100%; 1287 1287 } 1288 1288 … … 1696 1696 a { 1697 1697 font-size: 68.6646px; 1698 1698 font-size: 6.86646rem; 1699 1699 1700 1700 @media (max-width: 500px) { 1701 1701 font-size: 50px; 1702 1702 font-size: 5rem; … … 2131 2131 display: block; 2132 2132 } 2133 2133 .current-menu-ancestor:not(.open) .expandable .dashicons:not(:focus), 2134 .current-menu-item .expandable .dashicons:not(:focus) {2134 .current-menu-item > .expandable .dashicons:not(:focus) { 2135 2135 background: #fff; 2136 2136 color: #0073aa; 2137 2137 } -
stylesheets/main.css
2517 2517 } 2518 2518 2519 2519 div[class*="-table-of-contents-container"] .current-menu-ancestor:not(.open) .expandable .dashicons:not(:focus), 2520 div[class*="-table-of-contents-container"] .current-menu-item .expandable .dashicons:not(:focus) {2520 div[class*="-table-of-contents-container"] .current-menu-item > .expandable .dashicons:not(:focus) { 2521 2521 background: #fff; 2522 2522 color: #0073aa; 2523 2523 }