Ticket #24839: 24839.twenty-thirteen.4.diff
File 24839.twenty-thirteen.4.diff, 4.8 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentythirteen/css/editor-style.css
366 366 } 367 367 368 368 .mceTemp + ul, 369 .mceTemp + ol 369 .mceTemp + ol { 370 370 list-style-position: inside; 371 371 } 372 372 -
wp-content/themes/twentythirteen/css/ie.css
24 24 text-decoration: none; 25 25 } 26 26 27 .nav-menu .sub-menu, 28 .nav-menu .children { 29 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 30 } 31 27 32 .nav-menu .sub-menu ul, 28 33 .nav-menu .children ul { 29 34 left: 100%; -
wp-content/themes/twentythirteen/functions.php
168 168 wp_enqueue_script( 'jquery-masonry' ); 169 169 170 170 // Loads JavaScript file with functionality specific to Twenty Thirteen. 171 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201 3-07-18', true );171 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2014-03-18', true ); 172 172 173 173 // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. 174 174 wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); -
wp-content/themes/twentythirteen/js/functions.js
16 16 $( function() { 17 17 if ( body.is( '.sidebar' ) ) { 18 18 var sidebar = $( '#secondary .widget-area' ), 19 secondary = ( 0 == sidebar.length ) ? -40 : sidebar.height(),19 secondary = ( 0 === sidebar.length ) ? -40 : sidebar.height(), 20 20 margin = $( '#tertiary .widget-area' ).height() - $( '#content' ).height() - secondary; 21 21 22 if ( margin > 0 && _window.innerWidth() > 999 ) 22 if ( margin > 0 && _window.innerWidth() > 999 ) { 23 23 $( '#colophon' ).css( 'margin-top', margin + 'px' ); 24 } 24 25 } 25 26 } ); 26 27 … … 29 30 */ 30 31 ( function() { 31 32 var nav = $( '#site-navigation' ), button, menu; 32 if ( ! nav ) 33 if ( ! nav ) { 33 34 return; 35 } 34 36 35 37 button = nav.find( '.menu-toggle' ); 36 if ( ! button ) 38 if ( ! button ) { 37 39 return; 40 } 38 41 39 42 // Hide button if menu is missing or empty. 40 43 menu = nav.find( '.nav-menu' ); … … 43 46 return; 44 47 } 45 48 46 $( '.menu-toggle' ).on( 'click.twentythirteen', function() {49 button.on( 'click.twentythirteen', function() { 47 50 nav.toggleClass( 'toggled-on' ); 48 51 } ); 52 53 // Better focus for hidden submenu items for accessibility. 54 menu.find( 'a' ).on( 'focus.twentythirteen blur.twentythirteen', function() { 55 $( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' ); 56 } ); 49 57 } )(); 50 58 51 59 /** … … 58 66 var element = document.getElementById( location.hash.substring( 1 ) ); 59 67 60 68 if ( element ) { 61 if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) 69 if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) { 62 70 element.tabIndex = -1; 71 } 63 72 64 73 element.focus(); 65 74 } -
wp-content/themes/twentythirteen/style.css
753 753 } 754 754 755 755 .wp-caption.alignleft + ul, 756 .wp-caption.alignleft + ol 756 .wp-caption.alignleft + ol { 757 757 list-style-position: inside; 758 758 } 759 759 … … 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) 885 890 } 886 891 887 892 .nav-menu .sub-menu ul, … … 899 904 } 900 905 901 906 ul.nav-menu ul a:hover, 902 .nav-menu ul ul a:hover { 907 .nav-menu ul ul a:hover, 908 ul.nav-menu ul a:focus, 909 .nav-menu ul ul a:focus { 903 910 background-color: #db572f; 904 911 } 905 912 906 913 ul.nav-menu li:hover > ul, 907 .nav-menu ul li:hover > ul { 908 display: block; 914 .nav-menu ul li:hover > ul , 915 ul.nav-menu .focus > ul, 916 .nav-menu .focus > ul { 917 clip: inherit; 918 overflow: inherit; 919 height: inherit; 920 width: inherit; 909 921 } 910 922 911 923 .nav-menu .current_page_item > a,