[wp-trac] [WordPress Trac] #30055: Admin Bar overlapped header/content instead of pushing it down

WordPress Trac noreply at wordpress.org
Fri Jan 16 14:53:24 UTC 2015


#30055: Admin Bar overlapped header/content instead of pushing it down
--------------------------+------------------------------
 Reporter:  Sendoku       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Toolbar       |     Version:  4.0
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:  template
--------------------------+------------------------------
Changes (by valendesigns):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 I don't think this is solvable from our end. The underlying issue, at
 least from my POV, is having a `position: fixed` header or navigation at
 `top: 0`, just like Twenty Fourteen which doesn't respect the admin bar
 unless you add a theme specific fix.

 {{{
 .admin-bar.masthead-fixed .site-header {
     top: 32px;
 }
 }}}

 Without the theme making a specific change adding an arbitrary `relative:
 position` to body or html isn't going to do anything because both the
 admin and navigation will be set to a fixed position of `top: 0`.

 There is a solution, but it's not backwards compatible, so not even a
 little bit viable. For the sake of completeness, the solution would be ...
 {{{
 .admin-bar {
     margin-top: 32px;
 }
 .wpadminbar {
     top: -32px;
 }
 }}}

 I'm going to close this as wontfix, for the reasons I just gave. However,
 if anyone else can think of a viable backwards compatible solution by all
 means please prove me wrong and reopen the ticket.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30055#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list