zvi: self-portrait: short, fat, black dyke in bunny slippers (Default)
still kind of a stealthy love ninja ([personal profile] zvi) wrote in [site community profile] dreamscapes 2009-08-31 06:15 am (UTC)

Re: print_default_stylesheet

Okay. If you do NOT want to use the default stylesheet, in either a theme layer or a layout layer, this is what you do:

function Page::print_default_stylesheet {
"""<style type="text/css">""";

start_css();
"""

Insert Your Stylesheet Totally From Scratch Here

""";
end_css();
"""</style>""";
}


(I was told that the start_css stuff is a CSS cleaner.)



If you want to write a LAYOUT, as opposed to a theme layer, you need to copy over the property groups that need to go into the wizard, and then delete the color properties that your style does not use. (The property groups are that long section in Tabula Rasa that starts
##===============================
## Display settings - general
##===============================
Each individual propgroup starts propgroup name_of_property_group { and closes with a }. It's followed with the default settings for the properties in the group.)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting