forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: [PATCH] customizable skins, greater configurability, image di r fixes, miscellanea
Date Sat, 14 Sep 2002 13:21:47 GMT
On Sat, Sep 14, 2002 at 05:23:20AM -0700, Robert Koberg wrote:
...
> > .menu li  { list-style-image: url('images/label.gif'); font-weight : bold; }
> > .menu ul ul li .sel { list-style-image: url('images/current.gif');
> > font-weight : normal; }
> > .menu ul ul li  { list-style-image: url('images/page.gif');
> > font-weight : normal; }
> >
> > Notice those page-relative images :/ It would be nice if we could have
> > @root@/images/label.gif, and then have @root@ replaced *by the sitemap*
> > when page.css is requested. Hence the possible necessity of something
> > like:
> >
> 
> Won't you have links that work relatively, but nothing else? Why not use the
> same thing you are doing for links for images (and css, js, anything referenced
> by the end result).

Yes, sorry, that's what I meant. In the stylesheets, $root means "path to
root", ie "../" or whatever.

> Of course the above CSS needs to be written in the XSLT to create the
> relative path to the images ref'd there.

Ah, I had forgotten to make the CSS link root-relative too. I've changed
it to:

<link rel="stylesheet" href="{$root}skin/page.css" type="text/css"/>

And now the paths in the CSS are resolved relative to skin/, and work.

--Jeff

> -Rob
> 

Mime
View raw message