gnucash maint: [html-fonts] Prevent sup/sub from affecting baseline
Christopher Lam
clam at code.gnucash.org
Mon Mar 8 07:58:05 EST 2021
Updated via https://github.com/Gnucash/gnucash/commit/9a6aaacc (commit)
from https://github.com/Gnucash/gnucash/commit/a9dcf0d8 (commit)
commit 9a6aaaccf674c7ecc82a9127e3f3da8c4cb88dab
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sun Mar 7 22:56:36 2021 +0800
[html-fonts] Prevent sup/sub from affecting baseline
Source: https://css-tricks.com/snippets/css/prevent-superscripts-and-subscripts-from-affecting-line-height/
Previously <sup> and <sub> would cause the baseline to move
vertically.
diff --git a/gnucash/report/html-fonts.scm b/gnucash/report/html-fonts.scm
index 5b27e02ed..08d208114 100644
--- a/gnucash/report/html-fonts.scm
+++ b/gnucash/report/html-fonts.scm
@@ -193,5 +193,7 @@
"td.total-number-cell { " total-number-cell-info " }\n"
"td.total-label-cell { " total-label-cell-info " }\n"
"td.centered-label-cell { text-align: center; " centered-label-cell-info " }\n"
+ "sub { top: 0.4em; }\n"
+ "sub, sup { vertical-align: baseline; position: relative; top: -0.4em; }\n"
"@media print { html, body { height: unset; }}\n"
(or (gnc:html-document-style-text doc) "")))))
Summary of changes:
gnucash/report/html-fonts.scm | 2 ++
1 file changed, 2 insertions(+)
More information about the gnucash-changes
mailing list