Feature #898
add project specific css class to body tag
Status: | Closed | Start date: | 2008-03-20 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | UI | |||
Target version: | - | |||
Resolution: |
Description
add the projectname(like in url) as css class to the body or wrapper element. This way one could apply a different layout for each project.
I would need it to add another background image to each header, to customize the logo. But it could also be used to restyle other regions down the cascade.
Related issues
History
#1
Updated by Jos Yule almost 15 years ago
This would be nice - i've had a couple of requests to add logo's for particular projects into the header area.
#2
Updated by Rocco Stanzione almost 15 years ago
- File project_css.diff
added
+1. We don't even need a database field. The attached patch works for me, just create a public/stylesheets/<project identifier>.css.
#3
Updated by Bradley Whittington over 14 years ago
- File per_project_styling.patch
added
This has the cost of a file_exists check for every page load, which is not ideal.
My attached patch just adds an id to the body, which has the drawback of using a single, monolithic css file for styling, but benefits from not adding file_exists checks.
#4
Updated by Toshi MARUYAMA almost 12 years ago
- Category set to UI
#5
Updated by Toshi MARUYAMA almost 12 years ago
- Estimated time deleted (
0.50)
#6
Updated by Mischa The Evil over 9 years ago
- Status changed from New to Closed
#7
Updated by Mischa The Evil over 9 years ago
- Related to Patch #14767: More CSS classes on various fields added