diff --git src/wp-content/themes/twentythirteen/style.css src/wp-content/themes/twentythirteen/style.css
index 28df920..3cde0df 100644
|
|
footer.entry-meta { |
2895 | 2895 | color: #141412; |
2896 | 2896 | } |
2897 | 2897 | |
2898 | | .toggled-on .nav-menu li a:hover, |
2899 | | .toggled-on .nav-menu ul a:hover { |
| 2898 | .toggled-on .nav-menu > li a:hover, |
| 2899 | .toggled-on .nav-menu > ul a:hover { |
2900 | 2900 | background-color: #db572f; |
2901 | 2901 | color: #fff; |
2902 | 2902 | } |
diff --git src/wp-content/themes/twentytwelve/js/navigation.js src/wp-content/themes/twentytwelve/js/navigation.js
index 2c32141..383077a 100644
|
|
|
40 | 40 | $( '.main-navigation' ).find( 'a' ).on( 'focus.twentytwelve blur.twentytwelve', function() { |
41 | 41 | $( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' ); |
42 | 42 | } ); |
| 43 | |
| 44 | if ( 'ontouchstart' in window ) { |
| 45 | $( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) { |
| 46 | var el = $( this ).parent( 'li' ); |
| 47 | |
| 48 | if ( ! el.hasClass( 'focus' ) ) { |
| 49 | e.preventDefault(); |
| 50 | el.toggleClass( 'focus' ); |
| 51 | el.siblings( '.focus').removeClass( 'focus' ); |
| 52 | } |
| 53 | } ); |
| 54 | } |
43 | 55 | } )( jQuery ); |