Page 1 of 1

Style Sheets - Suggestion

Posted: Thu Jun 16, 2005 2:04 am
by seliger
Hi all,

I think I was in the IRC room the other night when a brief discussion regarding templates broke out. In playing with them some, and trying to understand them better, then hearing that they might be reworked a little, I thought I might provide a suggestion for doing templates in a future release...

Currently it works like so: You have a set of templates and you link templates to a given style sheet. For example--

Style Sheet: default_ltblue
        |--------> Default Template
        \-------> Corey's Template


If you do that, and you followed the semantics by using the CSS elements correctly throughout the template, you should get blue highlights, etc.

What if it happened this way: There is a pool of style sheets--
style_font_sans
style_font_serif
style_color_pink
style_color_blue

Then a template--
Default Template

Then at the template level, you linked the style sheets:

Template: Default
    |--------->style_blue
    \--------->style_serif


The template would have it's own style sheet, but portions of it could/would be supersceded by the style sheets as they were imported. And as a bonus, it would really need if you could adjust the "priority" of the style sheets. So have buttons where it would be possible to bump style_serif above style_blue, etc.

If this has already been tossed around, I apologize for the redundancy, but something like this would be pretty sweet if done properly.

Thanks for listening!
Corey

Re: Style Sheets - Suggestion

Posted: Thu Jun 16, 2005 2:42 am
by Ted
Actually, it works both ways.  It's a many to many relationship.  The interface didn't really show that fact until 0.10beta3 or so...

However, the idea of prioritizing stylsheets in relation to templates is pretty interesting.  I never really thought about it like that, but it does make perfect sense.  It's probably one of those things that 95% of the users would even think of using, but it would be good for the power users out there, for sure.