Module:RoundN/sandbox: Difference between revisions

Content deleted Content added
resync
add base templatestyles
Line 804:
end
local lock_height = (head_br.count or 0) + 1
local templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:RoundN/styles.css'} }
return templatestyles .. args.scroll_height and
mw.html.create'div'
:addClass'tbr-scroller'
:cssText'border-bottom:1px solid #eee;display:inline-block'
:node(not (p.scroll_head_unlock or p.no_column_head) and mw.html.create'div'
:addClass'tbr-scroller-head'
:css{
-- figure out if this is needed
overflow = 'hidden',
height = lock_height * 1.4 + 1.6 .. 'em',
['border-bottom'] = 'inherit',
['margin-right'] = '17px'
}
:node(mw.clone(tab))
)
:tag'div'
:addClass'tbr-scroller-body'
:css{
['overflow-y'] = 'scroll',
['max-height'] = tonumber(args.scroll_height, 10) and args.scroll_height .. 'px' or args.scroll_height
}