Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Legend inline: Difference between revisions

Template page
Content deleted Content added
add "forced-color-adjust: none" to swatches so they work in high contrast modes (adding inline as property not supported in TemplateStyles yet)
Add "skin-invert" class per request
 
Line 2: Line 2:
--><templatestyles src="Legend/styles.css" /><!--
--><templatestyles src="Legend/styles.css" /><!--
--><span class="legend nowrap"><!--
--><span class="legend nowrap"><!--
--><span class="legend-color mw-no-invert" style="forced-color-adjust: none; <!--
--><span class="legend-color {{#if:{{{invert|}}}|skin-invert|mw-no-invert}}" style="forced-color-adjust: none; <!--
-->{{#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}}}}<!--

Latest revision as of 07:36, 12 February 2026