Ticket #38392: 38392.3.patch
| File 38392.3.patch, 2.9 KB (added by , 9 years ago) |
|---|
-
src/wp-content/themes/twentyseventeen/assets/js/global.js
10 10 $navWrap = $navigation.find( '.wrap' ), 11 11 $navMenuItem = $navigation.find( '.menu-item' ), 12 12 $menuToggle = $navigation.find( '.menu-toggle' ), 13 $menuScrollDown = $ navigation.find( '.menu-scroll-down' ),13 $menuScrollDown = $body.find( '.menu-scroll-down' ), 14 14 $sidebar = $body.find( '#secondary' ), 15 15 $entryContent = $body.find( '.entry-content' ), 16 16 $formatQuote = $body.find( '.format-quote blockquote' ), … … 143 143 $( document ).ready( function() { 144 144 145 145 // Let's fire some JavaScript! 146 if ( 'true' === twentyseventeenScreenReaderText.has_navigation) {146 if ( $menuScrollDown.length ) { 147 147 148 148 /** 149 149 * 'Scroll Down' arrow in menu area -
src/wp-content/themes/twentyseventeen/style.css
1463 1463 1464 1464 /* Scroll down arrow */ 1465 1465 1466 . navigation-top.menu-scroll-down {1466 .site-header .menu-scroll-down { 1467 1467 display: none; 1468 1468 } 1469 1469 … … 3513 3513 display: none; 3514 3514 } 3515 3515 3516 .site-navigation-fixed. navigation-top.menu-scroll-down {3516 .site-navigation-fixed.site-header.menu-scroll-down { 3517 3517 display: none; 3518 3518 } 3519 3519 3520 3520 /* Scroll down arrow */ 3521 3521 3522 .navigation-top .menu-scroll-down { 3523 color: #767676; 3522 .site-header .menu-scroll-down { 3524 3523 display: block; 3525 3524 padding: 0.5em 0.5em 0.4em; 3526 3525 position: absolute; 3527 3526 right: 0; 3528 top: 0.9em;3529 3527 -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ 3530 3528 -ms-transform: rotate(90deg); /* IE 9 */ 3531 3529 transform: rotate(90deg); 3532 3530 } 3533 3531 3532 .site-header .menu-scroll-down { 3533 color: #fff; 3534 top: 2em; 3535 } 3536 3537 .site-header .navigation-top .menu-scroll-down { 3538 color: #767676; 3539 top: 0.9em; 3540 } 3541 3534 3542 .menu-scroll-down:focus { 3535 3543 outline: thin dotted; 3536 3544 } -
src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
27 27 <?php endif; ?> 28 28 </div><!-- .site-branding-text --> 29 29 30 <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?> 31 <a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'next' ) ); ?><span class="screen-reader-text"><?php _e( 'Scroll Down', 'twentyseventeen' ); ?></span></a> 32 <?php endif; ?> 33 30 34 </div><!-- .wrap --> 31 35 </div><!-- .site-branding -->