Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / pollResult.tpl
index 750afe019a909bfcb5885530a167493aca0ab436..ba91fc32c31c69d34937c71ee19e30fd0826a115 100644 (file)
@@ -1,10 +1,12 @@
 <ol class="pollResultList">
        {foreach from=$poll->getOptions(true) item=option}
                <li class="pollResultItem">
-                       <span class="pollMeter" style="width: {if $option->getRelativeVotes($poll)}{@$option->getRelativeVotes($poll)}%{else}0{/if}">&nbsp;</span>
-                       <div class="caption">
-                               <span class="optionName">{$option->optionValue} ({#$option->votes})</span>
-                               <span class="relativeVotes">{@$option->getRelativeVotes($poll)}%</span>
+                       <div class="pollResultItemCaption">
+                               <span class="pollOptionName">{$option->optionValue} ({#$option->votes})</span>
+                               <span class="pollOptionRelativeValue">{@$option->getRelativeVotes($poll)}%</span>
+                       </div>
+                       <div class="pollMeter">
+                               <div class="pollMeterValue" style="width: {if $option->getRelativeVotes($poll)}{@$option->getRelativeVotes($poll)}%{else}0{/if}"></div>
                        </div>
                </li>
        {/foreach}