Opened 17 years ago

Last modified 13 years ago

#186 new Enhancement

Facilitate use of more than one CSS file at the same time

Reported by: Eric Myers Owned by: Rytis
Priority: Minor Milestone: Undetermined
Component: Web - Project Version:
Keywords: CSS Cc:

Description

Right now one can only specify one CSS stylesheet file for the entire web site. It would be useful to be able to specify several, eg one for the whole web site theme, one for forums, one for some special functionality (I have in mind some CSS I have to facilitate pop-up menus).

One way to do this would be to make STYLESHEET a comma separated list.

In any case, keep in mind that the order of loading style sheets matters, so any mechanism should be documented and mention that fact.

Change History (5)

comment:1 Changed 17 years ago by Rytis

I don't see the use for that; what's wrong with using @import "stylesheet2.css"; in primary CSS file?

comment:2 in reply to:  1 ; Changed 17 years ago by Eric Myers

Replying to Rytis:

I don't see the use for that; what's wrong with using @import "stylesheet2.css"; in primary CSS file?

Because I didn't know about that <shrug>. Now I do.

So if we can document this well enough then that is a better alternative.

comment:3 in reply to:  2 Changed 17 years ago by Eric Myers

Replying to Eric Myers:

Replying to Rytis:

I don't see the use for that; what's wrong with using @import "stylesheet2.css"; in primary CSS file?

Because I didn't know about that <shrug>. Now I do.

So if we can document this well enough then that is a better alternative.

Also, there seem to be a lot of quirks with @import, so this would add some flexibility.

Comma, semicolon, or space separated list? I can implement it and you can review my work.

comment:4 Changed 16 years ago by Eric Myers

Sure, comma, semicolon, or space as separator. Why require one when you can honor all?

comment:5 Changed 15 years ago by Nicolas

Since r17819, BOINC uses main.css (hardcoded) + STYLESHEET.

Note: See TracTickets for help on using tickets.