The body class admin-bar
has apparently not been implemented consistently. For style purposes, however, I need this class because parts of my left bar are obscured by the admin bar.
Here is the code I currently use to have the body class admin-bar available everywhere.
add_filter( 'body_class', 'add_body_class' , 11);
function add_body_class ( $classes )
{
if (is_admin_bar_showing())
{
$classes[] = "admin-bar";
}
return $classes;
}
The css:
body.admin-bar .x-bar-left,
body.admin-bar .x-bar-right
{
top: 32px;
}