add list styles
This commit is contained in:
@@ -123,13 +123,14 @@ onMounted(() => {
|
|||||||
<p class="average"><span class="nobr">1 BTC</span> = <span class="nobr">{{ format(average, 0, true) }} USD</span></p>
|
<p class="average"><span class="nobr">1 BTC</span> = <span class="nobr">{{ format(average, 0, true) }} USD</span></p>
|
||||||
<Transition>
|
<Transition>
|
||||||
<div v-show="showSources" ref="dataSourcesEl">
|
<div v-show="showSources" ref="dataSourcesEl">
|
||||||
<p>Data Sources:</p>
|
<p class="vert-margin">Data Sources:</p>
|
||||||
<ul class="gray">
|
<ul>
|
||||||
<li v-for="(val, i) in dataSources">
|
<li v-for="(val, i) in dataSources">
|
||||||
{{ val.name }}: {{ format(prices[i]) }}
|
<div class="li-name">{{ val.name }}:</div>
|
||||||
|
<div class="li-price">{{ format(prices[i]) }}</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Standard Deviation: {{ format(stdev) }} ({{ format(stdev/average*100, 4) }}%)</p>
|
<p class="vert-margin">St. Deviation: {{ format(stdev) }} ({{ format(stdev/average*100, 4) }}%)</p>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
@@ -149,10 +150,6 @@ onMounted(() => {
|
|||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gray {
|
|
||||||
opacity: 0.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
/* cursor: pointer;*/
|
/* cursor: pointer;*/
|
||||||
|
|
||||||
@@ -178,4 +175,26 @@ onMounted(() => {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box ul li {
|
||||||
|
display: flex;
|
||||||
|
flex-basis: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.box ul li div {
|
||||||
|
flex-basis: 0;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
.li-name {
|
||||||
|
color: rgba(0, 0, 0, 0.5);
|
||||||
|
text-align: right;
|
||||||
|
flex-grow: 7;
|
||||||
|
}
|
||||||
|
.li-price {
|
||||||
|
text-align: left;
|
||||||
|
flex-grow: 5;
|
||||||
|
}
|
||||||
|
.vert-margin {
|
||||||
|
margin: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user