[wp-trac] [WordPress Trac] #26691: Admin Color Schemes: generic classes for colors
WordPress Trac
noreply at wordpress.org
Fri Dec 20 15:59:02 UTC 2013
#26691: Admin Color Schemes: generic classes for colors
-----------------------------+-----------------------------
Reporter: coolmann | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Appearance | Version: 3.8
Severity: normal | Keywords:
-----------------------------+-----------------------------
Our team is trying to adapt our plugin to the new admin color schemes. It
would be great if we could have generic CSS class declarations that allow
us to apply the current scheme's background/text colors to our elements.
Something like
.admin-color-flat .sidebar-background-color{ background-color: #.... }
.admin-color-vineyard .sidebar-background-color{ background-color: #.... }
This would allow plugin developers to leverage those schemes without
having to reinvent the wheel every time, and would make their plugins
adapt to any third-party color scheme people may be using on their site.
WordPress already adds the current color schema class to the body tag. But
then I don't see anything in the CSS that I could use to recycle, let's
say, the admin sidebar current background color and use it as the
background color for my metabox headers. Yes, I could do this in jQuery,
but I was hoping for a pure CSS approach.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26691>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list