[wp-trac] [WordPress Trac] #15875: Admin bar deforms with :before pseudoselector and content proprierty

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 18 03:37:50 UTC 2010


#15875: Admin bar deforms with :before pseudoselector and content proprierty
--------------------------+----------------------------------------------
 Reporter:  pablox        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  3.1
 Severity:  minor         |   Keywords:  admin bar, :before, content, css
--------------------------+----------------------------------------------
 In a website that I'm developing I had this on my style.css:

 {{{
 ul li:before{
     content: "+ "
 }
 }}}

 Basically I wanted to add a "+" as a list bullet (I know that's a weird
 thing to do, and of course I can add an image; and I think I will). But
 the thing is that results in deforming the admin bar as you can see from
 the screenshot I attach.

 Adding:

 {{{
 #wpadminbar ul li:before {
         content: none;
 }
 }}}

 On wp-includes/css/admin-bar.css solves the issue. Not big deal anyway,
 but has a simple/easy solution :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15875>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list