Template:Event: Difference between revisions

width to min-width
reducing padding
Line 1: Line 1:
<div style="display:inline-block; vertical-align:top; border:1px solid var(--vw-border); padding:0.6em 0.8em 0.8em 0.8em; margin:0.4em; min-width:220px; background: var(--vw-bg-subtle);">
<div style="display:inline-block; vertical-align:top; border:1px solid var(--vw-border); padding:0.6em; margin:0.4em; min-width:220px; background: var(--vw-bg-subtle);">
{{#if:{{{image|}}}|<div style="text-align:center; margin-bottom:0.4em;">[[File:{{{image}}}|210px]]</div>}}
{{#if:{{{image|}}}|<div style="text-align:center; margin-bottom:0.4em;">[[File:{{{image}}}|210px]]</div>}}
<div style="font-weight:bold; font-size:1.15em; line-height:1.15; margin:0.6em 0; text-align:center;">{{{name}}}</div>
<div style="font-weight:bold; font-size:1.15em; line-height:1.15; margin:0.6em 0; text-align:center;">{{{name}}}</div>