[[PageOutline(2-5,Contents,pullout)]] = Set styles based on the styling of a single wiki page == Description This plugin allows a user to apply CSS styles which are specified in a wiki page to the entire Trac project. It does so by using the CSS information of the configured wiki page to emulate a global CSS file for the Trac project. A `link` HTML header `[/projectdir]/wikicss.css` is inserted into each page and when the browser tries to read it the contents of the specified wiki page is returned instead. The action can be undone by removing or commenting out the line from the `trac.ini` file, without having to uninstall or deactivate the plugin. This plugin was originally requested through #1714. === Example Add the following to the configured wiki page and every page will have a blue border: {{{ body { border: 2px solid blue; } }}} {{{#!box width=500 ==== Example of custom styling [[Image(wikicss_example.png, width=480)]] }}} == Bugs/Feature Requests Existing bugs and feature requests for WikiCssPlugin are [report:9?COMPONENT=WikiCssPlugin here]. If you have any issues, create a [/newticket?component=WikiCssPlugin new ticket]. [[TicketQuery(component=WikiCssPlugin&group=type,format=progress)]] == Download Download the zipped source from [export:wikicssplugin here]. The plugin is also available on [pypi:TracWikiCssPlugin PyPI]. == Source You can check out WikiCssPlugin from [/svn/wikicssplugin here] using Subversion, or [source:wikicssplugin browse the source] with Trac. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. == Configuration Put the following into your configuration file `trac.ini`: {{{#!ini [wikicss] # configure wiki page to be used as CSS file as `[/projectdir]/wikicss.css`. wikipage = SiteStyle }}} This uses the `wiki:SiteStyle` page for CSS styling. == Recent Changes [[ChangeLog(wikicssplugin, 3)]] == Author/Contributors '''Author:''' [wiki:martin_s] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''