Module:Infobox: Difference between revisions
titlebg light and dark mode |
light dark titlebg |
||
| Line 12: | Line 12: | ||
:css('padding-bottom', '4px') | :css('padding-bottom', '4px') | ||
local light = (args['titlebg-light'] and args['titlebg-light'] ~= '') and args['titlebg-light'] or 'var(--vw-accent-subtle)' | |||
local dark = (args['titlebg-dark'] and args['titlebg-dark'] ~= '') and args['titlebg-dark'] or 'var(--vw-accent-subtle)' | |||
local titlebg = 'light-dark(' .. light .. ', ' .. dark .. ')' | |||
if args.title and args.title ~= '' then | if args.title and args.title ~= '' then | ||
root:tag('tr') | root:tag('tr') | ||