Basic styles for budget balances

This commit is contained in:
2020-08-13 15:43:51 +02:00
parent f1bd20a6f4
commit 1dd63b2c7a
3 changed files with 41 additions and 10 deletions
+10 -10
View File
@@ -1,21 +1,21 @@
<table> <table class="token-balances">
<thead> <thead>
<tr> <tr>
<td>Token</td> <th>Token</th>
<td>Amount</td> <th>Amount</th>
<td>Fiat value</td> <th>Fiat value</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>WBTC</td> <th>ETH</th>
<td>{{this.communityFunds.balanceWBTC.balance}}</td> <td class="amount">{{fmt-crypto-currency this.communityFunds.balanceETH.balance 'ETH'}}</td>
<td>{{this.communityFunds.balanceWBTC.balanceUsd}} USD</td> <td class="fiat-amount">{{this.communityFunds.balanceETH.balanceUsd}} USD</td>
</tr> </tr>
<tr> <tr>
<td>ETH</td> <th>WBTC</th>
<td>{{this.communityFunds.balanceETH.balance}}</td> <td class="amount">{{fmt-crypto-currency this.communityFunds.balanceWBTC.balance 'WBTC'}}</td>
<td>{{this.communityFunds.balanceETH.balanceUsd}} USD</td> <td class="fiat-amount">{{this.communityFunds.balanceWBTC.balanceUsd}} USD</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
+1
View File
@@ -91,6 +91,7 @@ section {
@import "sugar"; @import "sugar";
@import "item-list"; @import "item-list";
@import "components/budget-balances";
@import "components/contribution-details"; @import "components/contribution-details";
@import "components/contribution-list"; @import "components/contribution-list";
@import "components/contributor-list"; @import "components/contributor-list";
@@ -0,0 +1,30 @@
section#funds {
table.token-balances {
thead {
display: none;
}
th, td {
font-size: 1.2rem;
vertical-align: text-bottom;
}
th {
text-align: left;
padding-right: 1.2rem;
}
td {
text-align: right;
&.amount {
font-size: 1.6rem;
padding-right: 1.2rem;
}
&.fiat-amount {
color: rgba(255,255,255,0.8);
}
}
}
}