Module:Infobox: Difference between revisions
title width 100% Tags: Mobile edit Mobile web edit |
ehh we're going back to 100% |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
:css('font-size', '90%') | :css('font-size', '90%') | ||
:css('background', 'var(--vw-bg-subtle)') | :css('background', 'var(--vw-bg-subtle)') | ||
:css('padding-bottom', '4px') | |||
if args.title and args.title ~= '' then | if args.title and args.title ~= '' then | ||
root:tag('tr') | root:tag('tr') | ||
| Line 30: | Line 30: | ||
:css('text-align', 'center') | :css('text-align', 'center') | ||
:css('padding', '6px') | :css('padding', '6px') | ||
:wikitext('[[File:' .. args.image .. '| | :wikitext('[[File:' .. args.image .. '|300px]]') | ||
if caption ~= '' then | if caption ~= '' then | ||
root:tag('tr') | root:tag('tr') | ||
| Line 36: | Line 36: | ||
:attr('colspan', '2') | :attr('colspan', '2') | ||
:css('text-align', 'center') | :css('text-align', 'center') | ||
:css('font-size', ' | :css('font-size', '90%') | ||
:css('padding', ' | :css('padding', '0px 6px 4px 6px') | ||
:wikitext(caption) | :wikitext(caption) | ||
end | end | ||
| Line 57: | Line 57: | ||
:css('background', 'var(--vw-bg-heading)') | :css('background', 'var(--vw-bg-heading)') | ||
:css('padding', '4px 6px') | :css('padding', '4px 6px') | ||
:css('font-size', ' | :css('margin', '8px 0px') | ||
:css('font-size', '95%') | |||
:wikitext(header) | :wikitext(header) | ||
elseif data and data ~= '' then | elseif data and data ~= '' then | ||
| Line 64: | Line 65: | ||
row:tag('th') | row:tag('th') | ||
:css('text-align', 'left') | :css('text-align', 'left') | ||
:css('padding', ' | :css('padding', '2px 6px 2px 6px') | ||
:css('background', 'var(--vw-bg-subtle)') | :css('background', 'var(--vw-bg-subtle)') | ||
:css('width', '45%') | :css('width', '45%') | ||
| Line 70: | Line 71: | ||
end | end | ||
row:tag('td') | row:tag('td') | ||
:css('padding', ' | :css('padding', '2px 6px 2px 6px') | ||
:attr('colspan', (label and label ~= '') and '1' or '2') | :attr('colspan', (label and label ~= '') and '1' or '2') | ||
:wikitext(data) | :wikitext(data) | ||