[personal profile] zvi posting in [community profile] style_system
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?

Date: 2009-08-23 09:26 pm (UTC)
branchandroot: oak against sky (Default)
From: [personal profile] branchandroot
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.

Date: 2009-08-23 10:18 pm (UTC)
branchandroot: oak against sky (Default)
From: [personal profile] branchandroot
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).

Date: 2009-08-24 06:08 pm (UTC)
adalger: Earthrise as seen from the moon, captured on camera by the crew of Apollo 16 (Default)
From: [personal profile] adalger
Nice find! I could see that having some nifty uses. :)

Profile

Dreamwidth style system discussion

June 2025

S M T W T F S
12345 67
891011121314
15161718192021
22232425262728
2930     

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 12:09 pm
Powered by Dreamwidth Studios