It will be used, if set in the theme layer, and it will also appear in the wizard. If you (or any other user) changes it in the wizard, the change will override the default you wrote into the theme layer.
I was just banging on this the other day; if you need to add a particular bit of css to just one theme, it works much better to use:
function Page::print_custom_head() { print safe """ """; }
If this is css you want to specifically expose for some reason, but don't have a wizard-connected property for, then custom_css may be thing you want.
Hmmm. I think that, for what I want, (I'm moving a lot of the fiddly bits changes I've made to Transmogrified to a custom theme layer, and then I will play with GLORIOUS COLOR in the user layer), that just setting custom CSS will probably do, but I wasn't sure what would happen when I used it.
Thanks!
ETA: Having thought this through a whee tiny bit further ... I want to be able to call color variables in my CSS, can I do that with either of those functions? The stuff they are printing is escaped...
Huh. I have not yet tried calling properties inside custom_head or custom_css. For the universal properties, it should work.
*looks up at her example* Ah, also, since this is going into the head tags of the webpage, any css should be enclosed in < style > and < /style > tags (only of course without the spaces).
Further experimentation reveals that it works in printing the custom head, but not in custom_css. So, yes to properties in functions, no to properties in properties.
no subject
Date: 2009-08-23 09:26 pm (UTC)I was just banging on this the other day; if you need to add a particular bit of css to just one theme, it works much better to use:
function Page::print_custom_head() {
print safe """ """;
}
If this is css you want to specifically expose for some reason, but don't have a wizard-connected property for, then custom_css may be thing you want.
no subject
Date: 2009-08-23 10:06 pm (UTC)Thanks!
ETA: Having thought this through a whee tiny bit further ... I want to be able to call color variables in my CSS, can I do that with either of those functions? The stuff they are printing is escaped...
no subject
Date: 2009-08-23 10:18 pm (UTC)*looks up at her example* Ah, also, since this is going into the head tags of the webpage, any css should be enclosed in < style > and < /style > tags (only of course without the spaces).
no subject
Date: 2009-08-23 10:24 pm (UTC)no subject
Date: 2009-08-24 06:08 pm (UTC)no subject
Date: 2009-08-25 03:16 am (UTC)