[wp-trac] [WordPress Trac] #40236: Sticky Menu in Twenty Seventeen

WordPress Trac noreply at wordpress.org
Wed Mar 22 15:38:13 UTC 2017


#40236: Sticky Menu in Twenty Seventeen
-----------------------------------------+-----------------------------
 Reporter:  dEM0nsTAr                    |      Owner:
     Type:  enhancement                  |     Status:  new
 Priority:  normal                       |  Milestone:  Awaiting Review
Component:  Bundled Theme                |    Version:  4.7
 Severity:  normal                       |   Keywords:
  Focuses:  ui, accessibility, template  |
-----------------------------------------+-----------------------------
 The mobile menu on the Twenty Seventeen theme should be sticky/fixed at
 the top while scrolling and when tapping on an item from the menu the menu
 should be closed automatically instead of tapping again on "Menu".

 Here is a CSS snippet for the first part of the request, thanks to
 @rfortin:

 {{{
 @media screen and (max-width: 767px) {
 .navigation-top {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 99999;
 }
 .admin-bar .navigation-top {
 padding-top: 45px; // Padding to allow space for the admin-bar when
 present
 }
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40236>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list