still kind of a stealthy love ninja (
zvi) wrote in
style_system2009-08-23 04:52 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
set custom_css
If I set the custom_css in a theme layer, will it be used when I create a style with the theme layer?
Will I be able to alter the css in the theme via the wizard?
Will I be able to alter the css in the theme via the wizard?
no subject
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
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
*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
no subject
no subject