site_css.cs is already wrapped in style tags, so just put CSS in it.
Also put it outside of the <?cs ?>, as those are tags to indicate
dynamic templating directives.
--Noah
David Van Maren wrote:
>
> Emmanuel Blot wrote:
>>> I am a new user to Trac so please excuse my ignorance here but can
>>> anyone please point me in the direction of instructions/details on how
>>> to use the chrome template that seems to be on so many Trac powered
>>> sites(including the Trac site itself).
>> Can you elaborate on your needs, i.e. what to you want to achieve?
>>
>> If you simply want to customize the look of your Trac installation,
>> the easiest may is to create your own .css file, and add a link to
>> this stylesheet in the site_css.cs file (which is located in your
>> <project>/templates dir).
>
> I'm also interested in tweaking some of this.
>
> We have about 6 separate trac projects, and I'd like to set the
> background color differently on each of the, so that users following
> cross-project links will be clearly reminded that they've changed
> projects.
>
> I'm new to CSS, but I tried to follow the wikipedia's examples by
> placing a <style> block in one of the project's template/site_css.cs
> files, and I cannot seem to get it to show up in the HTML that gets
> shipped to a browser.
>
> Would anyone be williing to give me some help?
>
> 1. What would an appropriate style block look like? My understanding
> is that simply modifying the style of the body may not do what I'd
> like.
>
> 2. How should it be put into the site_css.cs file? Is it OK to embed
> it, or should I link to a separate .css file?
>
> Here's what I've tried so far, in proj/templates/site_css.cs:
> ----
> <?cs
> ##################################################################
> # Site CSS - Place custom CSS, including overriding styles here.
> <style type="text/css">
> body {
> background: green;
> color: blue;
> }
> </style>
> ?>
> ----
>
> Am I even close?
>
> Thanks for any help anyone can give me.
> DVM
>
>
> - what
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-users
-~----------~----~----~----~------~----~------~--~---