[wp-trac] [WordPress Trac] #25091: Setting background-color on body in admin page shows unexpected behaviour

WordPress Trac noreply at wordpress.org
Tue Aug 20 14:11:29 UTC 2013


#25091: Setting background-color on body in admin page shows unexpected behaviour
----------------------------+------------------------------
 Reporter:  pamtbaau        |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.6
 Severity:  normal          |  Resolution:
 Keywords:  ui-focus close  |
----------------------------+------------------------------

Comment (by buffler):

 Doesn't seem like a bug but there are a couple of ways to achieve the
 styling you're looking for pamtbaau -

 You can override {{{body}}}'s height with {{{height: auto; min-height:
 100%}}} (in addition to whatever background color/image) to get what
 you're wanting with the first issue. Or, you can instead apply a
 background to {{{#wpwrap}}}, as it already has {{{height: auto; min-
 height: 100%}}}.

 In core there's no need for {{{z-index}}} on the admin menu because
 there's no background applied to either {{{body}}} or {{{#wpwrap}}}. But
 yes, you can set {{{#adminmenuback, #adminmenuwrap { z-index: 1 } }}} as
 you already have with the second issue if you want {{{body}}} or
 {{{#wpwrap}}} to look better with a background applied.

 In summary, starting {{{custom_wp_admin_css}}} with these rules should get
 you going:

 {{{
 .body {
   height: auto;
   min-height: 100%;
   background: /* whatever background styles you want here */;
 }

 #adminmenuback,
 #adminmenuwrap {
   z-index: 1;
 }
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25091#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list