Module:Sidebar: Difference between revisions

Per request on module talk page, please please revert if this causes any problems!
Undid revision 953293631 by Plastikspork (talk)
Line 40: Line 40:
if not child then
if not child then
root  
root  
:addClass('infobox')
:addClass('vertical-navbox')
:addClass('vertical-navbox')
:addClass(args.wraplinks ~= 'true' and 'nowraplinks' or nil)
:addClass(args.wraplinks ~= 'true' and 'nowraplinks' or nil)
Line 48: Line 47:
:css('width', args.width or '22.0em')
:css('width', args.width or '22.0em')
:css('margin', args.float == 'left' and '0 1.0em 1.0em 0' or '0 0 1.0em 1.0em')
:css('margin', args.float == 'left' and '0 1.0em 1.0em 0' or '0 0 1.0em 1.0em')
:css('background', '#f9f9f9')
:css('border', '1px solid #aaa')
:css('border', '1px solid #aaa')
:css('padding', '0.2em')
:css('padding', '0.2em')
Line 53: Line 53:
:css('text-align', 'center')
:css('text-align', 'center')
:css('line-height', '1.4em')
:css('line-height', '1.4em')
:css('font-size', '88%')
:cssText(args.bodystyle or args.style)
:cssText(args.bodystyle or args.style)