Add CSS class to body for admin-end There are classes in the body like .front and .no-front that are good for styling front page separately and etc.

I am using same theme for front end and back end and would be nice if there was some .admin-end class in the body each time when editing content or just being in admin zone when logged in.
Depending on your theme, you should be able to do something like this:

function YOURTHEME_preprocess_html(&amp;$variables) {
  global $user;

  if ($user-&gt;uid) {

    if (arg(0)=='admin') {
      $variables['classes_array'][] = 'admin-page';
    }
    if (arg(0)=='node' &amp;&amp; arg(2)=='edit') {
      $variables['classes_array'][] = 'node-edit-page';
    }

  }

}