Changeset 25731
- Timestamp:
- 10/08/2013 05:55:46 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/js/theme.js
r25214 r25731 118 118 } ); 119 119 120 /* Accessibility hover styles for menu. */ 121 $( '.primary-navigation li' ).hover( function() { 122 $( this ).addClass( 'a11y-focus' ); 123 }, function() { 124 $( this ).delay( '250' ).removeClass( 'a11y-focus' ); 125 } 126 ); 127 $( '.primary-navigation li a' ).on( 'focus blur', function() { 128 $( this ).parents().toggleClass( 'a11y-focus' ); 129 } 130 ); 131 120 132 } )( jQuery ); -
trunk/src/wp-content/themes/twentyfourteen/style.css
r25730 r25731 686 686 .primary-navigation ul ul { 687 687 background-color: rgba(0, 0, 0, 0.9); 688 display: none;689 688 float: left; 690 689 position: absolute; 691 690 top: 48px; 692 left: 0;691 left: -999em; 693 692 z-index: 99999; 694 693 } … … 699 698 } 700 699 .primary-navigation ul ul ul { 701 left: 100%;700 left: -999em; 702 701 top: 0; 703 702 } … … 716 715 color: #8c8c8c; 717 716 } 718 .primary-navigation ul li:hover > ul { 719 display: block; 717 .primary-navigation ul li:hover > ul, 718 .primary-navigation ul li.a11y-focus > ul { 719 left: auto; 720 } 721 .primary-navigation ul ul li:hover > ul, 722 .primary-navigation ul ul li.a11y-focus > ul { 723 left: 100%; 720 724 } 721 725 .primary-navigation li.current_page_item > a,
Note: See TracChangeset
for help on using the changeset viewer.