mirror of https://github.com/BTCPrivate/copay.git
Fix UI
This commit is contained in:
parent
b5f3648aee
commit
3bf8b68b3c
|
@ -1,7 +1,125 @@
|
||||||
#coinbase {
|
#coinbase {
|
||||||
|
$item-lateral-padding: 20px;
|
||||||
|
$item-vertical-padding: 10px;
|
||||||
|
$item-border-color: #EFEFEF;
|
||||||
|
$item-label-color: #6C6C6E;
|
||||||
@extend .deflash-blue;
|
@extend .deflash-blue;
|
||||||
|
|
||||||
.add-bottom-for-cta {
|
.add-bottom-for-cta {
|
||||||
bottom: 92px;
|
bottom: 92px;
|
||||||
}
|
}
|
||||||
|
.head {
|
||||||
|
padding: 30px $item-lateral-padding 4rem;
|
||||||
|
border-top: 0;
|
||||||
|
|
||||||
|
.sending-label {
|
||||||
|
display: flex;
|
||||||
|
font-size: 18px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
|
||||||
|
img {
|
||||||
|
margin-right: 1rem;
|
||||||
|
height: 35px;
|
||||||
|
width: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.amount-label{
|
||||||
|
line-height: 30px;
|
||||||
|
.amount{
|
||||||
|
font-size: 38px;
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
|
||||||
|
> .unit {
|
||||||
|
font-family: "Roboto-Light";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.alternative {
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: "Roboto-Light";
|
||||||
|
color: #9B9B9B;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.item {
|
||||||
|
border-color: $item-border-color;
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
.badge {
|
||||||
|
border-radius: 0;
|
||||||
|
padding: .5rem;
|
||||||
|
}
|
||||||
|
.item {
|
||||||
|
color: #4A4A4A;
|
||||||
|
padding-top: $item-vertical-padding;
|
||||||
|
padding-bottom: $item-vertical-padding;
|
||||||
|
padding-left: $item-lateral-padding;
|
||||||
|
|
||||||
|
&:not(.item-icon-right) {
|
||||||
|
padding-right: $item-lateral-padding;
|
||||||
|
}
|
||||||
|
|
||||||
|
.label {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $item-label-color;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.capitalized {
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet .big-icon-svg > .bg {
|
||||||
|
height: 24px;
|
||||||
|
width: 24px;
|
||||||
|
padding: 2px;
|
||||||
|
box-shadow: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.single-line {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 17px;
|
||||||
|
padding-bottom: 17px;
|
||||||
|
|
||||||
|
.label {
|
||||||
|
margin: 0;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.item-divider {
|
||||||
|
padding-top: 1.2rem;
|
||||||
|
color: $item-label-color;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
.wallet {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: .2rem 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
|
||||||
|
~ .bp-arrow-right {
|
||||||
|
top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
> i {
|
||||||
|
padding: 0;
|
||||||
|
position: static;
|
||||||
|
|
||||||
|
> img {
|
||||||
|
height: 24px;
|
||||||
|
width: 24px;
|
||||||
|
padding: 2px;
|
||||||
|
margin-right: .7rem;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,51 +7,52 @@
|
||||||
|
|
||||||
<ion-content class="add-bottom-for-cta">
|
<ion-content class="add-bottom-for-cta">
|
||||||
<!-- BUY -->
|
<!-- BUY -->
|
||||||
<div class="list">
|
<div class="list" ng-if="buyRequestInfo">
|
||||||
<div class="item item-divider">
|
|
||||||
Purchase Info
|
|
||||||
</div>
|
|
||||||
<label class="item item-input item-select">
|
|
||||||
<div class="input-label">
|
|
||||||
Payment Method
|
|
||||||
</div>
|
|
||||||
<select ng-model="selectedPaymentMethodId.value"
|
|
||||||
ng-options="item.id as item.name for item in paymentMethods"
|
|
||||||
ng-change="buyRequest()">
|
|
||||||
</select>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<div ng-if="buyRequestInfo">
|
<div class="item head">
|
||||||
<div class="item">
|
<div class="sending-label">
|
||||||
Amount
|
<img src="img/buy-bitcoin.svg" alt="buy bitcoin" width="35" class="item-img-buy">
|
||||||
<span class="item-note">
|
<span>Buying</span>
|
||||||
{{buyRequestInfo.amount.amount}} {{buyRequestInfo.amount.currency}}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="item" ng-click="showWalletSelector()">
|
<div class="amount-label">
|
||||||
<span>Receive in</span>
|
<div class="amount">{{buyRequestInfo.amount.amount}} {{buyRequestInfo.amount.currency}}</div>
|
||||||
<span class="item-note">{{wallet ? wallet.name : '...'}}</span>
|
<div class="alternative">{{buyRequestInfo.subtotal.amount}} {{buyRequestInfo.subtotal.currency}}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="info">
|
||||||
|
<label class="item item-input item-select">
|
||||||
|
<div class="input-label">
|
||||||
|
Payment Method
|
||||||
|
</div>
|
||||||
|
<select ng-model="selectedPaymentMethodId.value"
|
||||||
|
ng-options="item.id as item.name for item in paymentMethods"
|
||||||
|
ng-change="buyRequest()">
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="item item-icon-right" ng-click="showWalletSelector()">
|
||||||
|
<div class="label">Receive in</div>
|
||||||
|
<div class="wallet">
|
||||||
|
<i class="icon big-icon-svg">
|
||||||
|
<img src="img/icon-wallet.svg" ng-style="{'background-color': wallet.color}" class="bg">
|
||||||
|
</i>
|
||||||
|
{{wallet ? wallet.name : '...'}}
|
||||||
|
</div>
|
||||||
|
<i class="icon bp-arrow-right"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-divider">
|
<div class="item item-divider">
|
||||||
Fees
|
Total to pay
|
||||||
</div>
|
</div>
|
||||||
<div class="item" ng-repeat="fee in buyRequestInfo.fees">
|
<div class="item" ng-repeat="fee in buyRequestInfo.fees">
|
||||||
{{fee.type}}
|
<span class="capitalized">
|
||||||
|
{{fee.type}}
|
||||||
|
</span>
|
||||||
<span class="item-note">
|
<span class="item-note">
|
||||||
{{fee.amount.amount}} {{fee.amount.currency}}
|
{{fee.amount.amount}} {{fee.amount.currency}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-divider">
|
|
||||||
Total
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
Subtotal
|
|
||||||
<span class="item-note">
|
|
||||||
{{buyRequestInfo.subtotal.amount}} {{buyRequestInfo.subtotal.currency}}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
Total
|
Total
|
||||||
<span class="item-note">
|
<span class="item-note">
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
</a>
|
</a>
|
||||||
<a class="item item-icon-right"
|
<a class="item item-icon-right"
|
||||||
href ui-sref="tabs.buyandsell.coinbase.amount({nextStep: 'tabs.buyandsell.coinbase.sell', currency: currency})">
|
href ui-sref="tabs.buyandsell.coinbase.amount({nextStep: 'tabs.buyandsell.coinbase.sell', currency: currency})">
|
||||||
<img src="img/sell-bitcoin.svg" alt="buy bitcoin" width="35" class="item-img-sell">
|
<img src="img/sell-bitcoin.svg" alt="sell bitcoin" width="35" class="item-img-sell">
|
||||||
Sell Bitcoin
|
Sell Bitcoin
|
||||||
<i class="icon bp-arrow-right"></i>
|
<i class="icon bp-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -7,21 +7,42 @@
|
||||||
|
|
||||||
<ion-content class="add-bottom-for-cta">
|
<ion-content class="add-bottom-for-cta">
|
||||||
<!-- SELL -->
|
<!-- SELL -->
|
||||||
<div class="list">
|
<div class="list" ng-if="sellRequestInfo">
|
||||||
<div class="item item-divider">
|
|
||||||
Sale Info
|
<div class="item head">
|
||||||
</div>
|
<div class="sending-label">
|
||||||
<label class="item item-input item-select">
|
<img src="img/sell-bitcoin.svg" alt="sell bitcoin" width="35" class="item-img-sell">
|
||||||
<div class="input-label">
|
<span>Selling</span>
|
||||||
Deposit into
|
</div>
|
||||||
</div>
|
<div class="amount-label">
|
||||||
<select ng-model="selectedPaymentMethodId.value"
|
<div class="amount">{{sellRequestInfo.amount.amount}} {{sellRequestInfo.amount.currency}}</div>
|
||||||
ng-options="item.id as item.name for item in paymentMethods"
|
<div class="alternative">{{sellRequestInfo.subtotal.amount}} {{sellRequestInfo.subtotal.currency}}</div>
|
||||||
ng-change="sellRequest()">
|
</div>
|
||||||
</select>
|
</div>
|
||||||
</label>
|
|
||||||
|
<div class="info">
|
||||||
|
|
||||||
|
<div class="item item-icon-right" ng-click="showWalletSelector()">
|
||||||
|
<div class="label">From</div>
|
||||||
|
<div class="wallet">
|
||||||
|
<i class="icon big-icon-svg">
|
||||||
|
<img src="img/icon-wallet.svg" ng-style="{'background-color': wallet.color}" class="bg">
|
||||||
|
</i>
|
||||||
|
{{wallet ? wallet.name : '...'}}
|
||||||
|
</div>
|
||||||
|
<i class="icon bp-arrow-right"></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="item item-input item-select">
|
||||||
|
<div class="input-label">
|
||||||
|
Deposit into
|
||||||
|
</div>
|
||||||
|
<select ng-model="selectedPaymentMethodId.value"
|
||||||
|
ng-options="item.id as item.name for item in paymentMethods"
|
||||||
|
ng-change="sellRequest()">
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
|
||||||
<div ng-if="sellRequestInfo">
|
|
||||||
<div class="item item-divider">
|
<div class="item item-divider">
|
||||||
At what percentage lower price would you accept to sell?
|
At what percentage lower price would you accept to sell?
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,36 +75,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-divider">
|
<div class="item item-divider">
|
||||||
Sell from
|
Total to receive
|
||||||
</div>
|
|
||||||
<div class="item" ng-click="showWalletSelector()">
|
|
||||||
<span>Wallet</span>
|
|
||||||
<span class="item-note">{{wallet ? wallet.name : '...'}}</span>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
Amount
|
|
||||||
<span class="item-note">
|
|
||||||
{{sellRequestInfo.amount.amount}} {{sellRequestInfo.amount.currency}}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="item item-divider">
|
|
||||||
Fees
|
|
||||||
</div>
|
</div>
|
||||||
<div class="item" ng-repeat="fee in sellRequestInfo.fees">
|
<div class="item" ng-repeat="fee in sellRequestInfo.fees">
|
||||||
{{fee.type}}
|
<span class="capitalized">
|
||||||
<span class="item-note">
|
{{fee.type}}
|
||||||
{{fee.amount.amount}} {{fee.amount.currency}}
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="item item-divider">
|
|
||||||
Total
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
Subtotal
|
|
||||||
<span class="item-note">
|
<span class="item-note">
|
||||||
{{sellRequestInfo.subtotal.amount}} {{sellRequestInfo.subtotal.currency}}
|
<span ng-if="fee.amount.amount != '0.00'">-</span>
|
||||||
|
{{fee.amount.amount}} {{fee.amount.currency}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
|
Loading…
Reference in New Issue