On 3/24/2014 6:44 PM, Andy Bradford wrote:
Thus said Andy Goth on Mon, 24 Mar 2014 17:14:58 -0500:

At present, the only way to distinguish between files and directories in
flat view is to check whether their link URL goes to dir or finfo.

Will this work?

http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg13816.html

Thanks for the suggestion. This works, and it's easy to add to the CSS via the administration interface.

My only complaint is that this approach involves putting each of the long-ish data URIs in the CSS twice. CSS selectors should be flexible enough to avoid this duplication, but the administration interface doesn't let me edit all of the CSS. More stuff gets appended after the end of the editable portion. In my case, the extra stuff starts with the line "/* The nomenclature sidebox for branches,.. */". I'm guessing this comes from the skin mechanism, which I know nothing about.

/* Flat view file and directory icons */
ul.browser li.file {
list-style-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP///yEhIf///wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14GqFXImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==");
}
ul.browser li.dir {
list-style-image: url("data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiIv///wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+jUs6b5Z/K4siDu5RPUFADs=");
}

--
Andy Goth | <andrew.m.goth/at/gmail/dot/com>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to