Template:Banner: Difference between revisions

Jump to navigation Jump to search
Add flex support.
No edit summary
(Add flex support.)
Line 1: Line 1:
<div style="clear: both; min-width: 800px; height: 50px; background-color: {{{bgcolor|#CCC}}}; color: {{{color|black}}}; font-size: 90%; font-weight: bold;">
<div style="clear: both; display: flex; flex-flow: row nowrap; justify-content: space-between; max-width: 100%; height: 50px; background-color: {{{bgcolor|#CCC}}}; color: {{{color|black}}}; font-size: 90%; font-weight: bold;">
<div style="float: left; width: 34%; min-width: 200px;">{{#if:{{{logo|}}}|[[File:{{{logo}}}]]|<span style="display: inline-block; width: 200px; height: 50px;">&nbsp;</span>}}</div>
<div style="float: left; order: 1; flex: 2 0; width: 34%; min-width: 200px;">{{#if:{{{logo|}}}|[[File:{{{logo}}}]]|<span style="display: inline-block; width: 200px; height: 50px;">&nbsp;</span>}}</div>
<div style="float: left; width: 22%; padding: 5px 0px 0px 30px;">{{#if:{{{product|}}}|{{{product}}}{{#if:{{{version|}}}|&nbsp;{{{version}}}|}}<br />|}}{{#if:{{{gecko|}}}|Based on Gecko&nbsp;{{{gecko}}}<br />|}}</div>
<div style="float: left; order: 2; flex: 1; width: 22%; padding: 5px 0px 0px 30px;">{{#if:{{{product|}}}|{{{product}}}{{#if:{{{version|}}}|&nbsp;{{{version}}}|}}<br />|}}{{#if:{{{gecko|}}}|Based on Gecko&nbsp;{{{gecko}}}<br />|}}</div>
<div style="float: right; width: 35%; padding: 5px 0px 0px 0px;">{{#ifeq:{{{type|merge}}}|release|Released on {{{release_date}}}|{{#if:{{{current_channel|}}}|Currently in {{{current_channel}}} channel<br />|}}{{#if:{{{merge_date|}}}{{{merge_week|}}}|Moves to {{{next_channel|another}}} {{#if:{{{merge_date|}}}|on {{{merge_date}}}|{{#if:{{{merge_week|}}}| week of {{{merge_week}}}|next}}}}}}}}</div>
<div style="float: right; order: 3; flex: 1; width: 35%; padding: 5px 0px 0px 0px;">{{#ifeq:{{{type|merge}}}|release|Released on {{{release_date}}}|{{#if:{{{current_channel|}}}|Currently in {{{current_channel}}} channel<br />|}}{{#if:{{{merge_date|}}}{{{merge_week|}}}|Moves to {{{next_channel|another}}} {{#if:{{{merge_date|}}}|on {{{merge_date}}}|{{#if:{{{merge_week|}}}| week of {{{merge_week}}}|next}}}}}}}}</div>
</div>
</div>
canmove, Confirmed users, Bureaucrats and Sysops emeriti
960

edits

Navigation menu