feat(send): polish send view
This commit is contained in:
parent
0ab8195395
commit
fb154b2ac3
5 changed files with 92 additions and 31 deletions
|
|
@ -7,7 +7,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
var unitDecimals;
|
||||
var satToBtc;
|
||||
var self = $scope.self;
|
||||
var SMALL_FONT_SIZE_LIMIT = 13;
|
||||
var SMALL_FONT_SIZE_LIMIT = 10;
|
||||
var LENGTH_EXPRESSION_LIMIT = 19;
|
||||
|
||||
$scope.$on('$ionicView.leave', function() {
|
||||
|
|
@ -197,18 +197,18 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
amount: amountUSD,
|
||||
currency: 'USD'
|
||||
};
|
||||
ongoingProcess.set('Processing Transaction...', true);
|
||||
ongoingProcess.set('Preparing transaction...', true);
|
||||
$timeout(function() {
|
||||
|
||||
bitpayCardService.topUp($scope.cardId, dataSrc, function(err, invoiceId) {
|
||||
if (err) {
|
||||
ongoingProcess.set('Processing Transaction...', false);
|
||||
ongoingProcess.set('Preparing transaction...', false);
|
||||
popupService.showAlert(gettextCatalog.getString('Error'), bwcError.msg(err));
|
||||
return;
|
||||
}
|
||||
|
||||
bitpayCardService.getInvoice(invoiceId, function(err, data) {
|
||||
ongoingProcess.set('Processing Transaction...', false);
|
||||
ongoingProcess.set('Preparing transaction...', false);
|
||||
if (err) {
|
||||
popupService.showAlert(gettextCatalog.getString('Error'), bwcError.msg(err));
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -132,8 +132,8 @@ input[type=number] {
|
|||
.postfix {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
background-color: #f8f8f8;
|
||||
color: #444;
|
||||
background-color: $subtle-gray;
|
||||
color: $dark-gray;
|
||||
border-radius: 4px;
|
||||
padding: 2px 10px;
|
||||
cursor: pointer;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
#view-amount {
|
||||
.recipient-label {
|
||||
font-size: 14px;
|
||||
padding-bottom: 0;
|
||||
color: $mid-gray;
|
||||
}
|
||||
.item-no-bottom-border + .item {
|
||||
border-top: 0;
|
||||
}
|
||||
|
|
@ -19,7 +24,7 @@
|
|||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
font-size: 11px;
|
||||
font-size: 13px;
|
||||
padding-left: 48px;
|
||||
}
|
||||
}
|
||||
|
|
@ -30,7 +35,7 @@
|
|||
}
|
||||
.amount-pane {
|
||||
position: absolute;
|
||||
top: 125px;
|
||||
top: 95px;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
|
|
@ -42,6 +47,8 @@
|
|||
.title {
|
||||
float: left;
|
||||
padding-top: 10px;
|
||||
color: $dark-gray;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.amount {
|
||||
|
|
@ -53,11 +60,60 @@
|
|||
bottom: 254px;
|
||||
top: 66px;
|
||||
.light {
|
||||
color: #A4A4A4;
|
||||
color: $light-gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.amount {
|
||||
&__editable {
|
||||
margin-bottom: 1rem;
|
||||
&--minimize {
|
||||
font-size: 22px;
|
||||
}
|
||||
&--standard {
|
||||
font-size: 42px;
|
||||
}
|
||||
&--placeholder {
|
||||
color: $light-gray;
|
||||
}
|
||||
}
|
||||
&__number {
|
||||
color: $dark-gray;
|
||||
}
|
||||
&__currency-toggle {
|
||||
border: 1px solid $subtle-gray;
|
||||
color: $dark-gray;
|
||||
border-radius: 3px;
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
font-size: .6em;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
line-height: 1;
|
||||
}
|
||||
&__results {
|
||||
&--minimize {
|
||||
font-size: 12px;
|
||||
}
|
||||
&--standard {
|
||||
font-size: 18px;
|
||||
}
|
||||
&--placeholder {
|
||||
color: $light-gray;
|
||||
}
|
||||
}
|
||||
&__result {
|
||||
color: $light-gray;
|
||||
font-size: .9em;
|
||||
margin-bottom: -.9em;
|
||||
line-height: 1;
|
||||
}
|
||||
&__result-equiv {
|
||||
color: $mid-gray;
|
||||
font-size: 1.2em;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
}
|
||||
.keypad {
|
||||
text-align: center;
|
||||
font-size: 24px;
|
||||
|
|
@ -65,6 +121,7 @@
|
|||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
color: $mid-gray;
|
||||
|
||||
.row {
|
||||
padding: 0 !important;
|
||||
|
|
@ -72,23 +129,23 @@
|
|||
}
|
||||
|
||||
.col {
|
||||
line-height: 40px;
|
||||
line-height: 45px;
|
||||
}
|
||||
|
||||
.operator {
|
||||
background-color: #eaeaea;
|
||||
background-color: $subtle-gray;
|
||||
font-weight: normal;
|
||||
cursor: pointer;
|
||||
|
||||
&:active {
|
||||
background-color: #f8f8f8;
|
||||
background-color: $light-gray;
|
||||
}
|
||||
}
|
||||
|
||||
.operator-send {
|
||||
font-weight: bolder;
|
||||
color: #f8f8f8;
|
||||
background-color: #1e3186;
|
||||
color: #fff;
|
||||
background-color: $positive;
|
||||
font-size: 36px;
|
||||
cursor: pointer;
|
||||
|
||||
|
|
@ -99,10 +156,10 @@
|
|||
|
||||
.digit{
|
||||
cursor: pointer;
|
||||
border-top: 1px solid #eaeaea;
|
||||
border-left: 1px solid #eaeaea;
|
||||
border-top: 1px solid $subtle-gray;
|
||||
border-left: 1px solid $subtle-gray;
|
||||
&:active {
|
||||
background-color: #eaeaea;
|
||||
background-color: $subtle-gray;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
padding-bottom: .5rem;
|
||||
@media(max-width: 480px) {
|
||||
input {
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue