Module:Sidebar: Difference between revisions
Appearance
update from sandbox per discussion on talk page |
Per request on module talk page, please please revert if this causes any problems! |
||
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 47: | Line 48: | ||
: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('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') | ||
:cssText(args.bodystyle or args.style) | :cssText(args.bodystyle or args.style) | ||