Any way to add CSS for a single page/node? I'm cleaning up my big crazy style sheets (possibly pertinent to a future question) and I'm wondering the best way to add custom CSS to a specific node or page.
In particular, my work site's home page is a Panel Page and it has a bunch of different styling. Right now the CSS is just included with the main theme style sheet.
Is there a way to say, &quot;if this is node Foo, then add foo.css&quot;? Is CSS Injector what I'm looking for?
I might be interested in generalizing this to other nodes/sections/etc, but at the moment I just want to handle this one item.
This is the sort of thing that I'd do by code, but that's because that's just the way I roll.

In the template.php you will want something like:

function MYTHEME_preprocess_node($vars) {
  if (drupal_get_path_alias("node/{$vars['#node']-&gt;nid}") == 'foo') {
    drupal_add_css(drupal_get_path('theme', 'MYTHEME') . "/css/foo.css");
  }
}


Replace foo with values related to your own code.