Martijn Coppoolse wrote:
On 30-10-2013 12:15, j. van den hoff wrote:
On Wed, 30 Oct 2013 10:49:58 +0100, Richard Hipp <[email protected]> wrote:
== files ==
* it would be nice if directories where differentiated from files
(e.g. in
unix `ls -F' fashion) by trailing `/').
That can be done using CSS, nowadays. Since directories get a class of
"dir", you can specify the following in the CSS to get a trailing slash:
li.dir>a:after {
content: '/';
}
Or, if you’d rather the slash not be part of the link:
li.dir:after {
content: '/';
}
It’s also possible to change the bullet into a circle, for example:
li.dir {
list-style-type: circle;
}
or even into a folder icon:
li.dir {
list-style-image:
url('http://icons.iconarchive.com/icons/deleket/sleek-xp-basic/16/Folder-icon.png');
}
(Of course, deeplinking like this is not recommended, so it would be
preferable to store the icon image in the repository, and refer to that).
I'm stoked that someone else uses (or at least is aware of) this. I
added it a few months back for my own selfish purposes. And, yeah,
replacing the standard bullets with icons is exactly what I do. You can
even add icons based on a file's extension (files with no extension get
the class "file", *.c files get "file-c", *.txt files get "file-txt", etc.).
Also, an alternative to adding the icons to your repository is to embed
them in your stylesheet as data URIs. You can use a site like this to
convert images: http://dataurl.net/#dataurlmaker
That’s why I prefer the current CSS class-based method to hard-coded
inclusion of the trailing slash: it enables fairly extensive
customization. :-)
Agreed, that's why I added it! Although I suppose we can always argue on
what the default style should be (at least until Richard says that the
bike shed will be yellow and that's that).
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users