How to override some admin theme CSS rules? Is there a way to override just some CSS rules used by the admin theme, without touching the admin theme itself (via some theme functions or module hooks)? For example, I'd like to add a text-align: right to every integer field in admin forms (and in edit nodes too).
I did it just using:

function mymodule_preprocess_html(&amp;$variables) {

  global $theme;

  if ($theme === variable_get('admin_theme', 'seven')) {

    // Reference your custom stylesheet.
    drupal_add_css(drupal_get_path('module', 'mymodule') . '/css/mymodule.css', array('weight' =&gt; CSS_THEME));
  }
}


That's a bit more readable for me.