Module:Su: Difference between revisions

Content deleted Content added
Add verticalAlign option
Default sub/sup font-size should match with sub/sup size set in Common.css. That should reduce excess line-height. Use proper monospace 'hack'.
Line 40:
if options.fontSize == 'f' or options.fontSize == 'fixed' then
span:css{
['font-family'] = 'monospace,couriermonospace',
['font-size'] = '8580%'
}
else
span:css('font-size', options.fontSize and options.fontSize or '8580%')
end
if options.align == 'r' or options.align == 'right' then