branchandroot: oak against sky (Default)
Branch ([personal profile] branchandroot) wrote in [community profile] style_system2009-08-21 09:25 pm

Adding a snippet of css in a theme

So let us suppose that I'm making a theme for a layout that already uses the print_stylesheet function (a theme for Modish, in the event). Let us further suppose that I want to add a little bit of css to this theme without copying the whole inherited stylesheet just to change one line. Does anyone know of a good way to do this?
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2009-08-22 01:50 pm (UTC)(link)
I'd use print Page::print_custom_head() { }

Edit: Hmm. Wait. I'm not sure if it's printed before or after print_stylesheet.

Edit2: It's printed before print_stylesheets so you may have to use !important. I don't know if that works with all browsers.
Edited 2009-08-22 13:54 (UTC)