Changeset 33056
- Timestamp:
- 07/03/2015 03:28:15 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/admin-menu.css
r32946 r33056 921 921 box-sizing: border-box; 922 922 } 923 924 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { 925 color: #00b9eb; 926 } 923 927 } 924 928 -
trunk/src/wp-admin/js/common.js
r33016 r33056 753 753 $( '#wp-admin-bar-menu-toggle' ).on( 'click.wp-responsive', function( event ) { 754 754 event.preventDefault(); 755 756 // close any open toolbar submenus 757 $adminbar.find( '.hover' ).removeClass( 'hover' ); 758 755 759 $wpwrap.toggleClass( 'wp-responsive-open' ); 756 760 if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) { -
trunk/src/wp-includes/css/admin-bar.css
r32750 r33056 208 208 } 209 209 210 #wpadminbar .ab-top-menu > li > .ab-item:focus,210 #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, 211 211 #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, 212 #wpadminbar .ab-top-menu > li:hover > .ab-item,212 #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, 213 213 #wpadminbar .ab-top-menu > li.hover > .ab-item { 214 214 background: #32373c; … … 216 216 } 217 217 218 #wpadminbar > #wp-toolbar li:hover span.ab-label,218 #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, 219 219 #wpadminbar > #wp-toolbar li.hover span.ab-label, 220 #wpadminbar > #wp-toolbar a:focus span.ab-label {220 #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { 221 221 color: #00b9eb; 222 222 } … … 285 285 #wpadminbar li:hover #adminbarsearch:before, 286 286 #wpadminbar li #adminbarsearch.adminbar-focused:before { 287 color: #00b9eb; 288 } 289 290 #wpadminbar.mobile .quicklinks .ab-icon:before, 291 #wpadminbar.mobile .quicklinks .ab-item:before { 292 color: #b4b9be; 293 } 294 295 #wpadminbar.mobile .quicklinks .hover .ab-icon:before, 296 #wpadminbar.mobile .quicklinks .hover .ab-item:before { 287 297 color: #00b9eb; 288 298 } -
trunk/src/wp-includes/js/admin-bar.js
r32074 r33056 29 29 e.preventDefault(); 30 30 el.addClass('hover'); 31 } else if ( ! $( e.target ).closest( 'div' ).hasClass( 'ab-sub-wrapper' ) ) { 32 // We're dealing with an already-touch-opened menu genericon (we know el.hasClass('hover')), 33 // so close it on a second tap and prevent propag and defaults. See #29906 34 e.stopPropagation(); 35 e.preventDefault(); 36 el.removeClass('hover'); 31 37 } 32 38 … … 125 131 126 132 $('#wpadminbar').click( function(e) { 127 if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) 128 return; 133 if ( e.target.id != 'wpadminbar' && e.target.id != 'wp-admin-bar-top-secondary' ) { 134 return; 135 } else { 136 adminbar.find( 'li.menupop.hover' ).removeClass( 'hover' ); 137 e.stopPropagation(); 138 return; 139 } 129 140 130 141 e.preventDefault();
Note: See TracChangeset
for help on using the changeset viewer.