[wp-trac] [WordPress Trac] #36325: Move #wpadminbar above #page
WordPress Trac
noreply at wordpress.org
Fri Mar 25 12:39:54 UTC 2016
#36325: Move #wpadminbar above #page
--------------------------------+-----------------------------
Reporter: wewlad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.4.2
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
Default position of #wpadminbar in your themes is at the top edge of the
site, so if a site uses a style with fixed positions of some elements -
the #wpadminbar might overflow them.
And because #wpadminbar goes after #page - you can't fix that with CSS,
since there's no way to match an element based on sibling elements going
AFTER it.
If you'd swap #wpadminbar and #page positions in HTML code - one could
simply use '#wpadminbar~#page' selector then and change fixed positions
for that case, so that #wpadminbar would never overlap any elements of the
page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36325>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list