wiki:SysCssPlugin

Version 6 (modified by coderanger, 8 years ago) (diff)

Fixing formatting

System-wide CSS modifications for Trac

Description

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 simply use site_css.cs, in /path/to/env/templates/site_css.cs for site-specific, or /usr/share/trac/templates/site_css.cs for system-wide.

You can configure the path to this file in two ways:

  1. Add a line to the [trac] section:
    syscss = /path/to/css/file.css
    
  2. 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.

Bugs/Feature Requests

Existing bugs and feature requests for SysCssPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out SysCssPlugin from here using Subversion, or browse the source with Trac.

Example

Just add the needed CSS to a file, configure it as noted above, and add syscss.* = enabled to each Trac instance.

Recent Changes

[3416] by coderanger on 2008-03-25 07:39:08
Change my email to avoid Yahoo, which decided to brake my scraper script recently.
[1439] by coderanger on 2006-10-23 00:40:39
SysCssPlugin:

Typo fix

[1180] by coderanger on 2006-08-23 17:32:48
SysCssPlugin:

Sanity fix.

Author/Contributors

Author: coderanger
Contributors:

TagIt(plugin,coderanger,0.9)?