Template:Composition bar: Difference between revisions

From PoliticalSG
No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<div style="width: 100%; background-color: #e6e6e6; border: 1px solid #ccc; height: 20px; position: relative;">
<div style="width: 100%; background-color: #e6e6e6; border: 1px solid #ccc; height: 20px; position: relative; box-sizing: border-box;">
   <div style="width: {{{1}}}%; background-color: {{#switch: {{{party|}}}
   <div style="width: {{{1}}}%; background-color: {{#switch: {{{party|}}}
     | PAP = #2b58ab
     | PAP = #2b58ab
Line 9: Line 9:
     | default = #cccccc
     | default = #cccccc
   }}; height: 100%;"></div>
   }}; height: 100%;"></div>
   <span style="position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 20px; color: #000;">{{{1}}}%</span>
   <span style="position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); font-size: 12px; line-height: 20px; color: #000; white-space: nowrap;">{{{1}}}%</span>
</div>
</div>

Revision as of 21:13, 16 November 2024

 {{{1}}}%