|Version 4 (modified by coderanger, 8 years ago) (diff)|
System-wide CSS modifications for Trac
This is a simple plugin to allow you to have both system-wide and site-specific CSS. If you only need one or the other, you can simple use site_css.cs, in /path/to/env/templates/site_css.cs for site-specific, and /usr/share/trac/templates/site_css.cs for system-wide.
You can configure the path to this file in two ways:
- Add a line to the [trac] section:
syscss = /path/to/css/file.css
- Create a file "syscss_file.py", and place it anywhere it can be imported by python. This file should contain a single line:
file = "/path/to/css/file.css"
The default file is /usr/share/trac/templates/sys_css.css.
Security Warning: Any file in the same directory as where you place your CSS file will be accesible under /chrome/syscss/, so do not use a directory with sensitive files in it.
If you have any issues, create a new ticket.
Download the zipped source from here.
Just add the needed CSS to a file, configure it as noted above, and add syscss.* = enabled to each Trac instance.