Changeset 38909
- Timestamp:
- 10/25/2016 04:50:49 PM (8 years ago)
- Location:
- trunk/src/wp-content/themes/twentyseventeen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js
r38886 r38909 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' ), … … 144 144 145 145 // Let's fire some JavaScript! 146 if ( 'true' === twentyseventeenScreenReaderText.has_navigation) {146 if ( $menuScrollDown.length ) { 147 147 148 148 /** -
trunk/src/wp-content/themes/twentyseventeen/style.css
r38892 r38909 1465 1465 /* Scroll down arrow */ 1466 1466 1467 . navigation-top.menu-scroll-down {1467 .site-header .menu-scroll-down { 1468 1468 display: none; 1469 1469 } … … 3515 3515 } 3516 3516 3517 .site-navigation-fixed. navigation-top.menu-scroll-down {3517 .site-navigation-fixed.site-header.menu-scroll-down { 3518 3518 display: none; 3519 3519 } … … 3521 3521 /* Scroll down arrow */ 3522 3522 3523 .navigation-top .menu-scroll-down { 3524 color: #767676; 3523 .site-header .menu-scroll-down { 3525 3524 display: block; 3526 3525 padding: 0.5em 0.5em 0.4em; 3527 3526 position: absolute; 3528 3527 right: 0; 3529 top: 0.9em;3530 3528 -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ 3531 3529 -ms-transform: rotate(90deg); /* IE 9 */ 3532 3530 transform: rotate(90deg); 3531 } 3532 3533 .site-header .menu-scroll-down { 3534 color: #fff; 3535 top: 2em; 3536 } 3537 3538 .site-header .navigation-top .menu-scroll-down { 3539 color: #767676; 3540 top: 0.9em; 3533 3541 } 3534 3542 -
trunk/src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
r38872 r38909 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 -->
Note: See TracChangeset
for help on using the changeset viewer.