Changeset 27607
- Timestamp:
- 03/19/2014 05:28:36 AM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentythirteen
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/css/editor-style.css
r24785 r27607 367 367 368 368 .mceTemp + ul, 369 .mceTemp + ol 369 .mceTemp + ol { 370 370 list-style-position: inside; 371 371 } -
trunk/src/wp-content/themes/twentythirteen/css/ie.css
r24542 r27607 221 221 } 222 222 223 .ie7 .nav-menu li ul ul { 224 left: 100%; 225 top: 0; 223 .ie7 .nav-menu .sub-menu, 224 .ie7 .nav-menu .children { 225 display: none; 226 overflow: visible; 227 } 228 229 .ie7 ul.nav-menu li:hover > ul, 230 .ie7 .nav-menu ul li:hover > ul { 231 display: block; 226 232 } 227 233 -
trunk/src/wp-content/themes/twentythirteen/functions.php
r27598 r27607 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. -
trunk/src/wp-content/themes/twentythirteen/js/functions.js
r24514 r27607 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 } ); … … 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. … … 44 47 } 45 48 46 $( '.menu-toggle' ).on( 'click.twentythirteen', function() {49 button.on( 'click.twentythirteen', function() { 47 50 nav.toggleClass( 'toggled-on' ); 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' ); 48 56 } ); 49 57 } )(); … … 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(); -
trunk/src/wp-content/themes/twentythirteen/style.css
r26714 r27607 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 } … … 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; … … 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 … … 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
Note: See TracChangeset
for help on using the changeset viewer.