diff --git a/wp-content/themes/twentythirteen/js/functions.js b/wp-content/themes/twentythirteen/js/functions.js
index 78c8c84..a66fcd9 100644
a
|
b
|
|
49 | 49 | button.on( 'click.twentythirteen', function() { |
50 | 50 | nav.toggleClass( 'toggled-on' ); |
51 | 51 | } ); |
| 52 | |
| 53 | // Fix sub-menus for touch devices. |
| 54 | if ( 'ontouchstart' in window ) { |
| 55 | menu.find( '.menu-item-has-children > a' ).on( 'touchstart.twentythirteen', function( e ) { |
| 56 | var el = $( this ).parent( 'li' ); |
| 57 | |
| 58 | if ( ! el.hasClass( 'sub-menu-open' ) ) { |
| 59 | e.preventDefault(); |
| 60 | el.toggleClass( 'sub-menu-open' ); |
| 61 | } |
| 62 | } ); |
| 63 | } |
52 | 64 | |
53 | 65 | // Better focus for hidden submenu items for accessibility. |
54 | 66 | menu.find( 'a' ).on( 'focus.twentythirteen blur.twentythirteen', function() { |
diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css
index 28df920..bd340ae 100644
a
|
b
|
ul.nav-menu ul a:focus, |
924 | 924 | ul.nav-menu li:hover > ul, |
925 | 925 | .nav-menu ul li:hover > ul, |
926 | 926 | ul.nav-menu .focus > ul, |
927 | | .nav-menu .focus > ul { |
| 927 | .nav-menu .focus > ul, |
| 928 | .nav-menu .sub-menu-open > ul { |
928 | 929 | clip: inherit; |
929 | 930 | overflow: inherit; |
930 | 931 | height: inherit; |