Have you added your site.css to site.html as described here?
http://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance

I don't think your site.css will be loaded if you don't include it
there.

We use the following

<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:py="http://genshi.edgewall.org/"; py:strip="">

  <!-- Add the site specific stylesheet. -->
  <head py:match="head" py:attrs="select('@*')">
    ${select('*|comment()|text()')}
    <link rel="stylesheet" type="text/css" href="${href.chrome('site/
style.css')}" />
  </head>
</html>

style.css is then located at %TRAC_PROJECT_ROOT%/htdocs/style.css.

On Jul 8, 9:42 am, Roger Oberholtzer <[email protected]>
wrote:
> On Thu, 2010-07-08 at 08:00 -0500, Olemis Lang wrote:
> > On Tue, Jun 29, 2010 at 5:49 AM, Micha <[email protected]> 
> > wrote:
> > > Hi all!
>
> > :)
>
> > > I'm a little confused. On my system (Ubuntu + trac 0.11.7 +
> > > TracMetrixPlugin + several plugins), I've chosen the
> > > ProgressTicketGroupStatsProvider from TracMetrix for the roadmap view.
>
> > > It renders closed tickets green. Ok so far. But inprogress tickets are
> > > rendered white (or no color) and open tickets are rendered light
> > > yellow.
> > > In contrast, on the TracMetrix page, inprogress tickets are yellow and
> > > new ones are white, what I expected.
>
> > I've been able to do things LIKE this by using TracThemeEngine to
> > override default colors in CSS.
>
> > Probably there's a better solution so as to avoid using the hammer
> > (but I don't know of any :( ... )
>
> My question in this thread was why my changes to the site.css file were
> having no effect. I followed the advice on t.e.o, but nada.
>
> I see this in my trac log file:
>
> Trac[main] WARNING: HTTPNotFound: 404 Not Found (No handler matched request 
> to /ticket/site.css)
>
> I have done no customization yet. So what would a pristine site.html and
> site.css look like? And, more interestingly, what changes would be
> needed to get css_class controlling color to work:
>
>        http://trac.edgewall.org/wiki/TracRoadmapCustomGroups242
>
> I have added the suggested lines to my site.css file. But I suspect
> there should be more. And perhaps there is something wrong with my
> site.html file.
>
> I browsed the source on t.e.o to see what a newly installed site.html
> and site.css looks like. I did not see them...
>
> Good thing I have a day job...
>
> --
> Roger Oberholtzer

-- 
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?hl=en.

Reply via email to