Joel Bruick schreef op 30-10-2013 18:49:
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.).

Yes, I noticed that. It does make it a tad more complex to add a generic icon for ‘files’: you have to specify a default icon for the list items, then override it for directories (and/or specific file types).

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

Very good point, I’d forgotten about those. Icons usually aren’t too large, so they would likely fit in a data URI without it becoming prohibitively large.

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).

True. Does anybody know what the arguments were in favour of dropping the trailing slash? (Or roughly when the subject was discussed? I can't seem to find the right keywords).
--
Martijn Coppoolse

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to