TPAC: Centralize font size definitions user/bshum/tpac_proportional_fonts
authorDan Scott <dscott@laurentian.ca>
Mon, 13 Aug 2012 16:32:26 +0000 (12:32 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 16 Aug 2012 15:45:29 +0000 (11:45 -0400)
commita2a9074d0208623a72f77961edaa528793b680a1
tree34f226d9f66109d49dcf4e2fa2bfbe765074e687
parent4f9b04b8c0bdee378838532db3fd825b8b344462
TPAC: Centralize font size definitions

The TPAC CSS had a mix of absolute and proportional font size
definitions, making it impossible to define a single base size and have
the layout adjust appropriately, as well as making it difficult to tweak
sizes to, say, eliminate the distinction between 11px and 12px text.

Accordingly, create a separate TT2 file to define standard font sizes,
define one base font size, and then use proportional percentage-based
size definitions for a set of standard font sizes. This way, a site
could easily adjust the base font size to 15px and the rest of the
layout should automatically adjust, and/or revert to using absolute font
sizes for different categories if they prefer.

Note that I did simplify some of the categories of font sizes, as the
distinction between 111% and 110% was probably not evident to most
humans at most font sizes, and even the distinction between 120% and
125% would be 14.4px vs. 15px given a base size of 12px - which
different user agents could render differently anyway.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/css/fonts.tt2 [new file with mode: 0644]