Changeset 20007
- Timestamp:
- 02/28/2012 03:59:47 AM (13 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r19960 r20007 189 189 190 190 /** 191 * Enqueue script for handling navigation. 192 * 193 * @since Twenty Twelve 1.0 194 */ 195 function twentytwelve_scripts() { 196 wp_enqueue_script( 'jquery' ); 197 wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', 'jquery', '20120227', true ); 198 } 199 add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts' ); 200 201 /** 191 202 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. 192 203 * -
trunk/wp-content/themes/twentytwelve/header.php
r19961 r20007 41 41 </hgroup> 42 42 43 <nav class="site-navigation" role="navigation"> 44 <h3 class="assistive-text"><?php _e( 'Main menu', 'twentytwelve' ); ?></h3> 45 <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentytwelve' ); ?>"><?php _e( 'Skip to primary content', 'twentytwelve' ); ?></a></div> 46 <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentytwelve' ); ?>"><?php _e( 'Skip to secondary content', 'twentytwelve' ); ?></a></div> 43 <nav class="site-navigation main-navigation" role="navigation"> 44 <h3 class="assistive-text"><?php _e( 'Menu', 'twentytwelve' ); ?></h3> 45 <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div> 47 46 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> 48 47 </nav> -
trunk/wp-content/themes/twentytwelve/style.css
r19958 r20007 339 339 padding: 0.571428571rem 0.857142857rem; 340 340 width: 90px; 341 } 342 343 /* Small menu */ 344 nav[role="navigation"].main-small-navigation { 345 text-align: left; 346 } 347 .menu-toggle { 348 cursor: pointer; 349 font-size: 12px; 350 font-size: 0.857142857rem; 351 line-height: 1.846153846; 352 } 353 .main-small-navigation .menu { 354 display: none; 355 } 356 @media screen and (max-width: 600px) { 357 nav[role="navigation"] li a { 358 padding: 8px 0; 359 line-height: 1.090909091; 360 } 341 361 } 342 362
Note: See TracChangeset
for help on using the changeset viewer.