commit
6df132216a
52 changed files with 195 additions and 209 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;
|
||||
|
|
|
|||
|
|
@ -35,3 +35,8 @@ $placeholder-icon-padding: 10px;
|
|||
.item p {
|
||||
color: $mid-gray;
|
||||
}
|
||||
|
||||
// we'd like to diverge from the standard ionic formula for left-right card margins
|
||||
.card {
|
||||
margin: ($content-padding * 2) 14px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,20 @@
|
|||
#glidera {
|
||||
.glidera-lead {
|
||||
margin: 1rem;
|
||||
margin: 2rem 1rem;
|
||||
color: $dark-gray;
|
||||
font-size: 20px;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
}
|
||||
.glidera-text {
|
||||
margin: 2rem 1rem;
|
||||
color: $mid-gray;
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
}
|
||||
.disclosure {
|
||||
color: $mid-gray;
|
||||
color: $light-gray;
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
margin: 1rem;
|
||||
|
|
|
|||
|
|
@ -16,16 +16,20 @@
|
|||
background-image: url("../img/icon-amazon.svg");
|
||||
}
|
||||
.bg {
|
||||
&.wallet{
|
||||
&.wallet {
|
||||
padding: .25rem
|
||||
}
|
||||
}
|
||||
.card{
|
||||
.card {
|
||||
.item {
|
||||
color: #444;
|
||||
border-top:none;
|
||||
padding-bottom: 1.5rem;
|
||||
padding-top:1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
padding-top:1rem;
|
||||
&.item-extra-padding {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
}
|
||||
.item-sub {
|
||||
&:first-child:before {
|
||||
|
|
@ -85,4 +89,18 @@
|
|||
color: #666;
|
||||
font-size: 38px;
|
||||
}
|
||||
.tab-home {
|
||||
&__logo {
|
||||
height: 18px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
}
|
||||
&__wallet {
|
||||
&__multisig-number {
|
||||
font-size: .8rem;
|
||||
font-weight: 300;
|
||||
color: $light-gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
padding-bottom: .5rem;
|
||||
@media(max-width: 480px) {
|
||||
input {
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
|
|
|
|||
|
|
@ -47,11 +47,21 @@
|
|||
color: $dark-gray;
|
||||
padding-top: 1.3rem;
|
||||
padding-bottom: 1.3rem;
|
||||
&.has-setting-value {
|
||||
padding-top: .65rem;
|
||||
padding-bottom: .65rem;
|
||||
}
|
||||
&.item-divider {
|
||||
color: $mid-gray;
|
||||
padding-bottom: .5rem;
|
||||
font-size: .9rem;
|
||||
}
|
||||
.icon {
|
||||
color: $light-gray;
|
||||
}
|
||||
}
|
||||
.item-note {
|
||||
color: $light-gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue