Module:Horizontal timeline and Module:Horizontal timeline/sandbox: Difference between pages
(Difference between pages)
imported>JAlone Improve dark mode display |
imported>Izno sync |
||
| Line 36: | Line 36: | ||
local cntnt = div_root | local cntnt = div_root | ||
:tag('div') | :tag('div') | ||
:cssText(' | :cssText('text-align:left; padding:1em; font-size:95%; margin:' ..mrgn.. '; background:'..bgCol) | ||
local rowNums = affixNums(args, 'row') -- Gets numbers for row1, row2, etc. with nil arguments removed. | local rowNums = affixNums(args, 'row') -- Gets numbers for row1, row2, etc. with nil arguments removed. | ||
| Line 53: | Line 53: | ||
if args.caption then | if args.caption then | ||
cntnt:tag('div') | cntnt:tag('div') | ||
:cssText('clear:both; text-align:center | :cssText('clear:both; text-align:center') | ||
:wikitext(args.caption) | :wikitext(args.caption) | ||
:done() | :done() | ||
| Line 173: | Line 173: | ||
end | end | ||
p:tag('div') | p:tag('div') | ||
:cssText(" | :cssText("float:left; height:100%; text-align:center; overflow: hidden; background-color:"..bar_colour) | ||
:cssText("width:"..width .."%") | :cssText("width:"..width .."%") | ||
:tag('div') | :tag('div') | ||
| Line 249: | Line 249: | ||
local p = root | local p = root | ||
:wikitext("<div name='line' style='clear:both;width:100%;max-width:100%;border-top:0.1em solid | :wikitext("<div name='line' style='clear:both;width:100%;max-width:100%;border-top:0.1em solid black;height:1em;'></div>") | ||
:tag('div') | :tag('div') | ||
:attr('id', 'Scale') | :attr('id', 'Scale') | ||