diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/js/chapters.js wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/js/chapters.js
index 652cc24..6849863 100644
|
|
jQuery(document).ready(function() { |
4 | 4 | // Add our expandable button |
5 | 5 | jQuery( '.menu-table-of-contents-container > ul > .menu-item-has-children > a' ) |
6 | 6 | .wrap( '<div class="expandable"></div>' ) |
7 | | .before( '<span class="dashicons dashicons-arrow-down-alt2"></span>' ); |
| 7 | .after( '<button class="dashicons dashicons-arrow-down-alt2" aria-expanded="false"></button>' ); |
8 | 8 | |
9 | 9 | // Invisibly open all of the submenus |
10 | 10 | jQuery( '.menu-item-has-children > ul ul' ).addClass( 'default-open' ); |
… |
… |
jQuery(document).ready(function() { |
18 | 18 | // Or if wrapped in a div.expandable |
19 | 19 | jQuery( '.menu-item-has-children > div > .dashicons' ).click( function() { |
20 | 20 | jQuery( this ).parent().siblings( '.children' ).slideToggle(); |
21 | | jQuery( this ).closest( '.menu-item-has-children' ).toggleClass( 'open' ); |
| 21 | var $menu_toggle = jQuery( this ).closest( '.menu-item-has-children' ); |
| 22 | $menu_toggle.toggleClass( 'open' ); |
| 23 | $menu_toggle.attr( 'aria-expanded', 'false' === $menu_toggle.attr( 'aria-expanded' ) ? 'true' : 'false' ); |
22 | 24 | } ); |
23 | 25 | } ); |
24 | 26 | |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css
index 1197e1c..ccc8955 100644
|
|
h2.toc-heading + h3.toc-heading:target { |
1107 | 1107 | color: #0073aa; |
1108 | 1108 | background-color: #fafafa; |
1109 | 1109 | border-left: 1px solid rgba(0,0,0,0.05); |
1110 | | } |
1111 | | .menu-table-of-contents-container ul li .dashicons:hover { |
| 1110 | border-top: 0; |
| 1111 | border-bottom: 0; |
| 1112 | border-radius: 0; |
| 1113 | box-shadow: none; |
| 1114 | -webkit-appearance: none; |
| 1115 | } |
| 1116 | .menu-table-of-contents-container ul li .dashicons:hover, |
| 1117 | .menu-table-of-contents-container ul li .dashicons:focus { |
1112 | 1118 | color: #fff; |
1113 | 1119 | background-color: #0073aa; |
1114 | 1120 | } |
… |
… |
h2.toc-heading + h3.toc-heading:target { |
1127 | 1133 | padding: 8px 40px 8px 8px; |
1128 | 1134 | text-decoration: none; |
1129 | 1135 | } |
1130 | | .menu-table-of-contents-container ul a:hover { |
| 1136 | .menu-table-of-contents-container ul a:hover, |
| 1137 | .menu-table-of-contents-container ul a:focus { |
1131 | 1138 | color: #fff; |
1132 | 1139 | background-color: #0073aa; |
1133 | 1140 | } |