WordPress.org

Make WordPress Core

Ticket #22025: 22025.diff

File 22025.diff, 1.9 KB (added by lancewillett, 19 months ago)
  • wp-content/themes/twentytwelve/style.css

     
    460460} 
    461461 
    462462/* Assistive text */ 
    463 .skip-link, 
    464 .screen-reader-text, 
    465463.assistive-text { 
    466464        position: absolute !important; 
    467465        clip: rect(1px, 1px, 1px, 1px); 
    468466} 
     467.main-navigation .assistive-text:hover, 
     468.main-navigation .assistive-text:active, 
     469.main-navigation .assistive-text:focus { 
     470        background: #fff; 
     471        border: 2px solid #333; 
     472        border-radius: 3px; 
     473        clip: auto !important; 
     474        color: #000; 
     475        font-size: 12px; 
     476        padding: 12px; 
     477        position: absolute; 
     478        top: 5px; 
     479        left: 5px; 
     480        z-index: 100000; /* Above WP toolbar */ 
     481} 
    469482 
     483 
    470484/* Page structure */ 
    471485.site { 
    472486        padding: 0 24px; 
     
    16561670/* =IE 7 and 8 
    16571671----------------------------------------------- */ 
    16581672 
    1659 .ie .skip-link, 
    1660 .ie .screen-reader-text, 
    16611673.ie .assistive-text { 
    16621674        clip: rect(1px 1px 1px 1px); /* IE7 */ 
    16631675} 
  • wp-content/themes/twentytwelve/header.php

     
    3838 
    3939                <nav id="site-navigation" class="main-navigation" role="navigation"> 
    4040                        <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3> 
    41                         <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> 
     41                        <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a> 
    4242                        <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?> 
    4343                </nav><!-- #site-navigation --> 
    4444