Template:Shade and Template:Shade/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value. This template has always assumed that the bgcolor contrasts well with black text. |
m Simpler and more correct color interpolation |
||
Line 1: | Line 1: | ||
<noinclude>{|class="wikitable" |
<noinclude>{|class="wikitable" |
||
|- |
|- |
||
|</noinclude> |
|</noinclude>style="background:#{{#invoke:Color/sandbox |hexMix |F8F9FA |{{#switch:{{{color|}}} |green=92EE92 |blue=73CEFF |gold=F6D770 |violet=FFA5FF |orange=FBB775 |grey=C5C5C5 |FFA9A9}} |{{#expr:{{#if:{{{inv|}}} |{{{max|100}}}-}}{{{1|0}}}}} |max={{{max|100}}}}};vertical-align:{{{valign|middle}}};text-align:{{{align|center}}};{{{style|}}}"|{{{2|{{{pre|}}}{{formatnum:{{{1|0}}}}}{{{suff|}}}}}}<noinclude> |
||
|} |
|} |
||
{{documentation}} |
{{documentation}} |