[wp-trac] [WordPress Trac] #52623: Proposal: Add CSS variable for admin-bar height to core.
WordPress Trac
noreply at wordpress.org
Thu Aug 26 18:24:04 UTC 2021
#52623: Proposal: Add CSS variable for admin-bar height to core.
-------------------------+----------------------
Reporter: nico23 | Owner: ryelle
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Themes | Version: 5.7
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses: ui, css
-------------------------+----------------------
Changes (by ryelle):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"51672" 51672]:
{{{
#!CommitTicketReference repository="" revision="51672"
Toolbar: Provide a CSS custom property for the admin bar height.
This new custom property, `--wp-admin--admin-bar--height`, reflects the
admin bar's height and adjusts responsively on smaller screens. It can be
used to offset content to avoid overlapping the admin bar, without needing
to copy the media query.
This also removes a workaround only needed for Internet Explorer 6 and
below.
Props nico23, sabernhardt.
Fixes #52623.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52623#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list