Template:Composition bar compact: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(additional lightening of default background colors for contrast) |
(default width/colors/border changed back to pre-2015 version; allow width units and "border=none") |
||
Line 1: | Line 1: | ||
<div role="img" class="nowrap" style="display: inline-block; position: relative; vertical-align: top; {{#ifeq:{{{width|}}}|auto||width: {{{width|100 |
<div role="img" class="nowrap" style="display: inline-block; position: relative; vertical-align: top; {{#ifeq:{{{width|}}}|auto||width: {{#iferror:{{#expr:{{{width|}}}}}|{{{width}}}|{{{width|100}}}px}};}} text-shadow: 0 0 0.2em {{{text-shadow|#fff}}}; {{#if:{{{color|}}}|color: {{{color}}};}} "><!-- |
||
--><div style="position: absolute; {{# |
--><div style="position: absolute; {{#ifeq:{{{border|}}}|none||box-sizing: border-box; border: 1px solid {{{border|#c0c0c0}}};}} width: 100%; height: 100%; background-color: {{{background-color|#f0f0f0}}};"><!-- |
||
--><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|# |
|{{{hex|{{{3|#ccc}}}}}} |
||
}}; width: {{#expr:{{{1|50}}}/{{{2|100}}}*100}}%; height: 100%;"><!-- |
}}; width: {{#expr:{{{1|50}}}/{{{2|100}}}*100}}%; height: 100%;"><!-- |
||
--></div><!-- |
--></div><!-- |