Template:Legend: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(remove unnecessary vendor CSS) |
m (reformat code; cleanup whitespace) |
||
Line 1: | Line 1: | ||
<includeonly><!-- |
<includeonly><!-- |
||
--><templatestyles src="Legend/styles.css" /><!-- |
--><templatestyles src="Legend/styles.css" /><!-- |
||
--><div class="legend"> |
--><div class="legend"><!-- |
||
--><span class="legend-color" style="<!-- |
|||
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}} |
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!-- |
||
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!-- |
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!-- |
||
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- |
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- |
||
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}"><!-- |
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}"><!-- |
||
-->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>| }} |
-->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>| }}<!-- |
||
⚫ | |||
--></span><!-- |
|||
⚫ | |||
⚫ | |||
--></div><!-- |
|||
⚫ | |||
{{Documentation}} |
|||
</noinclude> |