Jump to content


Photo
- - - - -

Admin CSS Issue, PageLines 2.4.4 w/ WordPress 3.5.2

admin css background

  • Please log in to reply
3 replies to this topic

#1 ghostdancer

ghostdancer

    Newbie

  • Members
  • 2 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 17 July 2013 - 02:44 PM

PageLines admin.css overrides WordPress CSS; background CSS shorthand property assigns explicit given values and sets missing properties to their initial values.
 
Due to the added <body> class 'toplevel_page_PageLines-Admin'...
 
<body class="wp-admin wp-core-ui js pagelines_ui toplevel_page_PageLines-Admin folded auto-fold admin-bar branch-3-5 version-3-5-2 admin-color-fresh locale-en-us no-customize-support">
 
...the PageLines CSS...
 
./wp-content/themes/pagelines/admin/css/admin.css?ver=2.4.4 (line 127)
 
.toplevel_page_PageLines-Admin .wp-menu-image{
background: transparent url('../images/favicon-pagelines.png') no-repeat 50% 50%;
background-size: 20px 20px;
}
 
...is overriding WordPress CSS, changing the background style for ALL elements with the wp-menu-image class on the admin page (not just PageLines elements), and resulting in corrupted admin menu backgrounds.
 
Given the PageLines HTML...
 
<li id="toplevel_page_PageLines-Admin" class="wp-has-submenu wp-has-current-submenu wp-menu-open menu-top toplevel_page_PageLines-Admin menu-top-first menu-top-last">
<a class="wp-has-submenu wp-has-current-submenu wp-menu-open menu-top toplevel_page_PageLines-Admin menu-top-first menu-top-last" href="admin.php?page=PageLines-Admin">
<div class="wp-menu-arrow"><div></div></div>
<div class="wp-menu-image"><br></div>
<div class="wp-menu-name">PageLines</div>
</a>
...
...changing the PageLines CSS by adding the anchor element, or using the id attribute of the li element instead of the class attribute, resolves the issue...
 
./wp-content/themes/pagelines/admin/css/admin.css?ver=2.4.4 (line 127)
 
a.toplevel_page_PageLines-Admin .wp-menu-image{
background: transparent url('../images/favicon-pagelines.png') no-repeat 50% 50%;
background-size: 20px 20px;
}
 
Is this a PageLines bug or am I missing something?
 


#2 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 17 July 2013 - 11:29 PM

Hi there,

 

I'll ask one of our developers to take a look at the code you've provided, if you could send a screenshot of how it's displaying as well we'll forward this over to them as well.



#3 ghostdancer

ghostdancer

    Newbie

  • Members
  • 2 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 18 July 2013 - 01:36 PM

Images attached. As per code in earlier post, the PageLines admin.css replaces the WordPress styles for WordPress items when the PageLines menu page is selected.

Attached Files



#4 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2411 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 18 July 2013 - 06:06 PM

Thanks for the update 







Also tagged with one or more of these keywords: admin, css, background