Thanks! That worked but why not with other globals? Are they not available with the default fossil.exe?
I initially tried this TH1 in the CSS but it failed and assumed it was not allowed? /* This fails */ <th1> if { [ string last "c" $project_name ] == [ string length $project_name ] - 1 } { puts "background: lightyellow;" } else { puts "background: mistyrose;" } </th1> /* This works but not my intended logic */ <th1> if { [ string last "c" $baseurl ] == [ string length $baseurl ] - 1 } { puts "background: lightyellow;" } else { puts "background: mistyrose;" } </th1> Please add a mention of TH1 allowed in CSS. http://fossil.include-once.org/fossil-skins/wiki?name=TH1 "It can be used in the header, footer, or CSS within <th1>...</th1> sections, or in the th1-setup settings textbox." Thanks for Fossil! On Sun, Mar 15, 2015 at 4:57 AM, mario <ma...@include-once.org> wrote: > Sat, 14 Mar 2015 20:06:06 -0400 <sky5w...@gmail.com>: > > > ... > > clones. I understand TH1 only works inside the header/footer > > sections, so is it possible to maybe change just their backgrounds? > > Currently, CSS sets my entire background color. > > You can also use TH1 for the stylesheet (Admin > CSS). It's a proper > template just like header and footer. > > Basically you'd just add something like: > > <th1> > if [regexp "localhost" $baseurl] { > puts "body { background: red; }" > } > </th1> > > Alternatively try Admin > Logo to set a background image. > Your local instance can have a configuration different to your > online version. (Doesn't change until you `fossil config push..`) > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users