Commit 26b4895d by Jonathan Piacenti

Fixed CSS for display of results.

parent 45b3d590
......@@ -5,30 +5,50 @@
.percentage-gauge {
display: inline-block;
background-color: #e5ebee;
float:right;
height: 1.2em;
}
.poll-result-input-container {
float: left;
display: table-cell;
padding-right: .2em;
vertical-align: middle;
}
.percentage-gauge-container {
width: auto;
overflow: hidden;
display: table-cell;
width: 100%;
vertical-align: middle;
padding-bottom: .2em;
}
ul.poll-answers, ul.poll-answers-results {
list-style-type: none;
display: table;
max-width: 80%;
}
.poll-answer-text-container {
position: relative;
top: -1.2em;
left: .2em;
li.poll-result {
width: 100%;
display: table-row;
padding-bottom: .2em;
}
.poll-answer-text {
margin-left: .2em;
font-weight: bold;
}
.poll-percent-container {
float: right;
display: table-cell;
font-weight: bold;
text-align: left;
padding-left: .2em;
vertical-align: middle;
}
.poll-result-answer-container {
}
.poll-top-choice {
color: #e37222;
}
\ No newline at end of file
......@@ -3,19 +3,16 @@
<ul class="poll-answers-results">
{{#each tally}}
<li class="poll-result">
<div class="result-answer-container">
<div class="poll-result-input-container">
<input id="answer-{{key}}" type="radio" disabled {{#if choice}}checked="True"{{/if}} />
</div>
<div class="percentage-gauge-container">
<div class="percentage-gauge" style="width:{{percent}}%;"></div>
</div>
<div class="poll-result-input-container">
<input id="answer-{{key}}" type="radio" disabled {{#if choice}}checked="True"{{/if}} />
</div>
<div class="poll-answer-text-container">
<label for="answer-{{key}}">{{answer}}</label>
<div class="percentage-gauge-container">
<div class="percentage-gauge" style="width:{{percent}}%;">
<label class="poll-answer-text" for="answer-{{key}}">{{answer}}</label>
</div>
</div>
<div class="poll-percent-container">
<span class="poll-percent-display{{#if top}} poll-top-choice{{/if}}">{{percent}}%</span>
<span class="poll-percent-display{{#if top}} poll-top-choice{{/if}}">{{percent}}%</span>
</div>
</li>
{{/each}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment