Changeset 5871
- Timestamp:
- 09/04/2017 03:21:47 AM (7 years ago)
- 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
r5823 r5871 47 47 48 48 // Cacheing hack 49 wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), '20170 717' );49 wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), '20170904' ); 50 50 } 51 51 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\styles', 11 ); 52 52 53 53 function scripts() { 54 wp_enqueue_script( 'wporg-breathe-chapters', get_stylesheet_directory_uri() . '/js/chapters.js', array( 'jquery' ), '20170 113' );54 wp_enqueue_script( 'wporg-breathe-chapters', get_stylesheet_directory_uri() . '/js/chapters.js', array( 'jquery' ), '20170904' ); 55 55 } 56 56 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts', 11 ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/js/chapters.js
r4652 r5871 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 … … 18 18 // Or if wrapped in a div.expandable 19 19 jQuery( '.menu-item-has-children > div > .dashicons' ).click( function() { 20 var menuToggle = jQuery( this ).closest( '.menu-item-has-children' ); 21 20 22 jQuery( this ).parent().siblings( '.children' ).slideToggle(); 21 jQuery( this ).closest( '.menu-item-has-children' ).toggleClass( 'open' ); 23 24 menuToggle.toggleClass( 'open' ); 25 menuToggle.attr( 'aria-expanded', menuToggle.hasClass( 'open' ) ); 22 26 } ); 23 27 } ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css
r5682 r5871 1107 1107 color: #0073aa; 1108 1108 background-color: #fafafa; 1109 border: 0; 1109 1110 border-left: 1px solid rgba(0,0,0,0.05); 1110 } 1111 .menu-table-of-contents-container ul li .dashicons:hover { 1111 border-radius: 0; 1112 box-shadow: none; 1113 -webkit-appearance: none; 1114 } 1115 .menu-table-of-contents-container ul li .dashicons:hover, 1116 .menu-table-of-contents-container ul li .dashicons:focus { 1112 1117 color: #fff; 1113 1118 background-color: #0073aa; … … 1118 1123 border-left: none; 1119 1124 } 1120 .menu-table-of-contents-container .open .expandable .dashicons {1125 .menu-table-of-contents-container .open .expandable .dashicons:not(:focus) { 1121 1126 background: #fff; 1122 1127 color: #0073aa; … … 1128 1133 text-decoration: none; 1129 1134 } 1130 .menu-table-of-contents-container ul a:hover { 1135 .menu-table-of-contents-container ul a:hover, 1136 .menu-table-of-contents-container ul a:focus { 1131 1137 color: #fff; 1132 1138 background-color: #0073aa; … … 1147 1153 } 1148 1154 1149 .menu-table-of-contents-container > ul > li.open > div > a {1155 .menu-table-of-contents-container > ul > li.open > div > a:not(:focus) { 1150 1156 color: #0073aa; 1151 1157 }
Note: See TracChangeset
for help on using the changeset viewer.