Discussion:
[fossil-users] [UI] Increase font size in side-by-side page?
Gilles
2018-08-03 11:38:47 UTC
Permalink
Hello,

The UI seems the easiest way to diff versions and see what changes were
made to a file between two revisions.

Problem is, the font size is a bit small:

https://postimg.cc/image/wm6lpynzx/

I searched the archives* with "ui font size", but didn't find much.

Is there a way to increase font size, or should I install "Fossil Skins
Extra" (http://fossil.include-once.org/fossil-skins/index) add-on?

Thank you.

* https://www.mail-archive.com/fossil-***@lists.fossil-scm.org/
Joel Dueck
2018-08-03 14:13:08 UTC
Permalink
You can customize pretty much anything without plugins if you can
determine an appropriately specific CSS selector for it.

Assuming you use any modern browser, right click the diff and click
"Inspect Element" to see the see the HTML and CSS used to display it.
With some clicking and scrolling around, you'll find that the diff
text is inside a table with class "sbsdiffcols" and that the default
style includes "font-size: xx-small".

So in mine, I changed the size by adding the following CSS to my current skin:

table.sbsdiffcols {
font-size: x-small;
line-height: 1.3em;
}

When doing changes like this, be sure and look around to see if a rule
for that selector already exists in the CSS; if it does, modify that
one rather than making a new one. It's easier to debug your changes if
you don't have multiple rules potentially conflicting with each other.

Be sure and read this closely to learn more about changing Fossil's
web UI appearance:
https://www.fossil-scm.org/index.html/doc/trunk/www/customskin.md
Post by Gilles
Hello,
The UI seems the easiest way to diff versions and see what changes were
made to a file between two revisions.
https://postimg.cc/image/wm6lpynzx/
I searched the archives* with "ui font size", but didn't find much.
Is there a way to increase font size, or should I install "Fossil Skins
Extra" (http://fossil.include-once.org/fossil-skins/index) add-on?
Thank you.
_______________________________________________
fossil-users mailing list
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Warren Young
2018-08-03 14:19:57 UTC
Permalink
That’s because the default view is side-by-side. Try clicking the Unified Diff link at the top of the Fossil UI diff view.
Gilles
2018-08-03 15:15:41 UTC
Permalink
Post by Warren Young
That’s because the default view is side-by-side. Try clicking the Unified Diff link at the top of the Fossil UI diff view.
Thanks to both. I'll play with skins and see how it goes.

Continue reading on narkive:
Loading...