Template:NPVIC chart: Difference between revisions

Content deleted Content added
Undid revision 1237821592 by Swpb (talk)
Removed white rectangle behind green text
 
Line 1:
<includeonly>{{image frame|align=center|width={{#expr: {{{width|750}}}+50 }}|caption=History of adoption of the NPVIC {{#if:{{{updated|}}}|{{as of|{{JULIANDAY.YEAR|{{MDY to Julian|{{{updated}}}}}}}|{{JULIANDAY.MONTH|{{MDY to Julian|{{{updated}}}}}}}|lc=y}}|}}. State-by-state details are in the table below.|link=Template:NPVIC chart|content=
<div style="width:{{{width|750}}}px; height:{{{height|450}}}px; position: relative;
padding: {{#expr: {{{height|450}}}/100 }}px 0px {{#expr: {{{height|450}}}/100 }}px {{#expr: {{{width|750}}}/16 }}px; background-color: #F5F5F5;">
<div style="border:1px solid; width:77%; height:81%; position: absolute; box-sizing: border-box; background:white;">
 
<!--Time-axis legend--><!--<div style="display:table; position: absolute; text-align: center; left: 25%; width: 50%; bottom: -12.5%;">'''Year'''</div>-->
Line 33:
<!--Current total annotation--><div style="position:absolute; left: 100%; bottom:{{#expr: (100*({{{curr_tot}}}/{{{max_tot|{{{curr_tot}}}}}})/1.1)-5}}%; height: 10%; width:40%;
display: table; text-align:left;">
<div style="display:table-row;"><div style="display:table-cell; vertical-align: middle; color: green; font-size: {{#expr: 90*{{{height|450}}}/450 }}%;">'''← <span style="background-color: white;#F5F5F5">{{{curr_tot}}} ({{percent|{{{curr_tot}}}|270|1}} of 270)</span>'''</div></div>
<div style="display:table-row;"><div style="display:table-cell; height: 4px;"></div></div>
</div>