Template:Composition bar compact: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(talk page consensus seems to be dark text on lighter background default)
(additional lightening of default background colors for contrast)
Line 1: Line 1:
<div role="img" class="nowrap" style="display: inline-block; position: relative; vertical-align: top; {{#ifeq:{{{width|}}}|auto||width: {{{width|100%}}};}} text-shadow: 0 0 0.2em {{{text-shadow|#fff}}}; {{#if:{{{color|}}}|color: {{{color}}};}} "><!--
<div role="img" class="nowrap" style="display: inline-block; position: relative; vertical-align: top; {{#ifeq:{{{width|}}}|auto||width: {{{width|100%}}};}} text-shadow: 0 0 0.2em {{{text-shadow|#fff}}}; {{#if:{{{color|}}}|color: {{{color}}};}} "><!--
--><div style="position: absolute; {{#if:{{{border-color|}}}|box-sizing: border-box; border: 1px solid {{{border-color|}}};}} width: 100%; height: 100%; background-color: {{{background-color|#CCC}}};"><!--
--><div style="position: absolute; {{#if:{{{border-color|}}}|box-sizing: border-box; border: 1px solid {{{border-color|}}};}} width: 100%; height: 100%; background-color: {{{background-color|#ddd}}};"><!--
--><div style="background-color:{{#if:{{both|{{{4|}}}|{{{5|}}}}}
--><div style="background-color:{{#if:{{both|{{{4|}}}|{{{5|}}}}}
|rgb({{#expr:255*{{{3|255}}}}},{{#expr:255*{{{4|0}}}}},{{#expr:255*{{{5|0}}}}})
|rgb({{#expr:255*{{{3|255}}}}},{{#expr:255*{{{4|0}}}}},{{#expr:255*{{{5|0}}}}})
|{{{hex|{{{3|#999}}}}}}
|{{{hex|{{{3|#bbb}}}}}}
}}; width: {{#expr:{{{1|50}}}/{{{2|100}}}*100}}%; height: 100%;"><!--
}}; width: {{#expr:{{{1|50}}}/{{{2|100}}}*100}}%; height: 100%;"><!--
--></div><!--
--></div><!--

Revision as of 23:57, 23 February 2017