Re: Logic for stylesheets

2008-12-10 Thread Daniele Procida
On Wed, Dec 10, 2008, Dave Dash <[EMAIL PROTECTED]> wrote: >I'm curious at what you're trying to ultimately do. > >On one of the projects I work on, we put a class on a encapsulating >div that defines future behavior: > > > > > > >and then we can do a special style for > >.no_content .content {di

Re: Logic for stylesheets

2008-12-10 Thread Daniele Procida
On Wed, Dec 10, 2008, CLIFFORD ILKAY <[EMAIL PROTECTED]> wrote: >In your case, you could have something like the following on that >specific page template, or if you need it for the general case, in your >base page template. > >{% block base_css %} >{% if content %} >href="/site_media/css/sty

Re: Logic for stylesheets

2008-12-10 Thread Dave Dash
I'm curious at what you're trying to ultimately do. On one of the projects I work on, we put a class on a encapsulating div that defines future behavior: and then we can do a special style for .no_content .content {display: none} or whatever we end up deciding to do differently. On Dec 1

Re: Logic for stylesheets

2008-12-10 Thread CLIFFORD ILKAY
Daniele Procida wrote: > In a template I have: > > {% placeholder right-column Textarea %} > > I'd like the template to load stylesheetb.css rather than > stylesheeta.css if that content item is empty. > > I guess I need some logic around the the styles listed in the , > but I don't know wha

Logic for stylesheets

2008-12-10 Thread Daniele Procida
In a template I have: {% placeholder right-column Textarea %} I'd like the template to load stylesheetb.css rather than stylesheeta.css if that content item is empty. I guess I need some logic around the the styles listed in the , but I don't know what it should be, so I'd be grateful for a