Ticket #24839: 24839.twenty-thirteen.2.diff
File 24839.twenty-thirteen.2.diff, 1.8 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentythirteen/js/functions.js
66 66 } ); 67 67 68 68 /** 69 * Enables dropdown menus on :focus for better accessibility. 70 */ 71 $( '.nav-menu' ).find( 'a' ).on( 'focus blur', function() { 72 $( this ).parents().toggleClass( 'focus' ); 73 } ); 74 75 /** 69 76 * Arranges footer widgets vertically. 70 77 */ 71 78 if ( $.isFunction( $.fn.masonry ) ) { -
wp-content/themes/twentythirteen/style.css
867 867 } 868 868 869 869 .nav-menu li:hover > a, 870 .nav-menu li a:hover { 870 .nav-menu li a:hover, 871 .nav-menu li:focus > a, 872 .nav-menu li a:focus { 871 873 background-color: #220e10; 872 874 color: #fff; 873 875 } … … 877 879 background-color: #220e10; 878 880 border: 2px solid #f7f5e7; 879 881 border-top: 0; 880 display: none;881 882 padding: 0; 882 883 position: absolute; 883 884 left: -2px; 884 885 z-index: 99999; 886 height: 1px; 887 width: 1px; 888 overflow: hidden; 889 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 890 clip: rect(1px, 1px, 1px, 1px) 885 891 } 886 892 887 893 .nav-menu .sub-menu ul, … … 899 905 } 900 906 901 907 ul.nav-menu ul a:hover, 902 .nav-menu ul ul a:hover { 908 .nav-menu ul ul a:hover, 909 ul.nav-menu ul a:focus, 910 .nav-menu ul ul a:focus { 903 911 background-color: #db572f; 904 912 } 905 913 906 914 ul.nav-menu li:hover > ul, 907 .nav-menu ul li:hover > ul { 908 display: block; 915 .nav-menu ul li:hover > ul , 916 ul.nav-menu .focus > ul, 917 .nav-menu .focus > ul { 918 clip: inherit; 919 overflow: inherit; 920 height: inherit; 921 width: inherit; 909 922 } 910 923 911 924 .nav-menu .current_page_item > a,