Merge pull request #2512 from cmgustavo/bug/wp8-12

Bug/wp8 12
This commit is contained in:
Matias Alejo Garcia 2015-04-14 09:42:40 -03:00
commit 461b73f63e
6 changed files with 42 additions and 61 deletions

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="msapplication-tap-highlight" content="no"> <meta name="msapplication-tap-highlight" content="no">
<link rel="stylesheet" type="text/css" href="css/foundation.css"> <link rel="stylesheet" type="text/css" href="css/foundation.css">
<link rel="stylesheet" type="text/css" href="icons/foundation-icons.css"> <link rel="stylesheet" type="text/css" href="icons/foundation-icons.css">
@ -37,8 +37,7 @@
<section <section
class="main-dark" ng-class="{'main': index.hasProfile, 'main-dark': !index.hasProfile, 'animation-left': index.swipeLeft,
ng-class="{'main animation': index.hasProfile, 'animation-left': index.swipeLeft,
'animation-right': index.swipeRight}" 'animation-right': index.swipeRight}"
ui-view="main"></section> ui-view="main"></section>
<div ui-view="menu"></div> <div ui-view="menu"></div>

View File

@ -26,7 +26,7 @@
</div> </div>
<div ng-show="!index.needsBackup || receive.skipBackup"> <div ng-show="!index.needsBackup || receive.skipBackup">
<div class="row" ng-show="receive.generatingAddress"> <div class="row m20t" ng-show="receive.generatingAddress">
<div class="large-12 columns"> <div class="large-12 columns">
<div class="oh text-center"> <div class="oh text-center">
<span class="text-gray" translate>Generating a new address...</span> <span class="text-gray" translate>Generating a new address...</span>

View File

@ -27,7 +27,7 @@
</span> </span>
</div> </div>
<form ng-show="!send.fetchingURL" name="sendForm" ng-submit="send.submitForm(sendForm)" ng-disabled="send.blockUx" novalidate> <form ng-show="!send.fetchingURL" name="sendForm" ng-submit="send.submitForm(sendForm)" ng-disabled="send.blockUx" novalidate>
<div class="box-notification" ng-show="send.error && !send.hideForWP "> <div class="box-notification" ng-show="send.error">
<div class="box-icon error"> <div class="box-icon error">
<i class="fi-x size-24"></i> <i class="fi-x size-24"></i>
</div> </div>
@ -67,10 +67,7 @@
</div> </div>
<div class="input"> <div class="input">
<input type="text" id="address" name="address" ng-disabled="send.blockUx || send.lockAddress" placeholder="{{'Bitcoin address'|translate}}" ng-model="_address" valid-address required ng-focus="send.formFocus('address')" ng-blur="send.formFocus(false)"> <input type="text" id="address" name="address" ng-disabled="send.blockUx || send.lockAddress" ng-attr-placeholder="{{'Bitcoin address'|translate}}" ng-model="_address" valid-address required ng-blur="send.formFocus(false)">
<!--
<a class="postfix" ng-click="openAddressBook()"><i class="fi-address-book size-24"></i></a>
-->
</div> </div>
</div> </div>
<div ng-show="send._paypro && !send.hideAddress"> <div ng-show="send._paypro && !send.hideAddress">
@ -105,7 +102,7 @@
</label> </label>
<div class="input"> <div class="input">
<input type="number" id="amount" ng-disabled="send.blockUx || send.lockAmount" name="amount" placeholder="{{'Amount'|translate}}" ng-minlength="0.00000001" ng-maxlength="10000000000" ng-model="_amount" valid-amount required autocomplete="off" ng-focus="send.formFocus('amount')" ng-blur="send.formFocus(false)"> <input type="number" id="amount" ng-disabled="send.blockUx || send.lockAmount" name="amount" ng-attr-placeholder="{{'Amount'|translate}}" ng-minlength="0.00000001" ng-maxlength="10000000000" ng-model="_amount" valid-amount required autocomplete="off" ng-blur="send.formFocus(false)">
<a class="postfix" ng-click="showAlternative = true">{{send.unitName}}</a> <a class="postfix" ng-click="showAlternative = true">{{send.unitName}}</a>
</div> </div>
</div> </div>
@ -113,7 +110,7 @@
<label for="alternative"><span translate>Amount in</span> {{ send.alternativeName }} <label for="alternative"><span translate>Amount in</span> {{ send.alternativeName }}
</label> </label>
<div class="input"> <div class="input">
<input type="number" id="alternative" ng-disabled="send.blockUx || !send.isRateAvailable || send.lockAmount" name="alternative" placeholder="{{'Amount'|translate}}" ng-model="_alternative" requiredautocomplete="off" ng-focus="send.formFocus('amount')" ng-blur="send.formFocus(false)"> <input type="number" id="alternative" ng-disabled="send.blockUx || !send.isRateAvailable || send.lockAmount" name="alternative" ng-attr-placeholder="{{'Amount'|translate}}" ng-model="_alternative" requiredautocomplete="off" ng-blur="send.formFocus(false)">
<a class="postfix" ng-click="showAlternative = false"> {{ send.alternativeIsoCode }}</a> <a class="postfix" ng-click="showAlternative = false"> {{ send.alternativeIsoCode }}</a>
</div> </div>
</div> </div>
@ -126,13 +123,8 @@
<small translate class="has-error" ng-show="sendForm.comment.$invalid && !sendForm.comment.$pristine">too long!</small> <small translate class="has-error" ng-show="sendForm.comment.$invalid && !sendForm.comment.$pristine">too long!</small>
</label> </label>
<div class="input"> <div class="input">
<textarea id="comment" ng-disabled="send.blockUx" name="comment" ng-if="index.n > 1" <textarea id="comment" ng-disabled="send.blockUx" name="comment"
placeholder="{{'Leave a private message to your copayers'|translate}}" ng-maxlength="100" ng-model="_comment"
ng-maxlength="100" ng-model="_comment" ng-focus="send.formFocus('msg')"
ng-blur="send.formFocus(false)"></textarea>
<textarea id="comment" ng-disabled="send.blockUx" name="comment" ng-if="index.n == 1"
placeholder="{{'Add a private comment to identify the transaction'|translate}}"
ng-maxlength="100" ng-model="_comment" ng-focus="send.formFocus('msg')"
ng-blur="send.formFocus(false)"></textarea> ng-blur="send.formFocus(false)"></textarea>
</div> </div>
</div> </div>
@ -145,15 +137,14 @@
<div class="row" ng-show="!send.onGoingProcess"> <div class="row" ng-show="!send.onGoingProcess">
<div class="large-6 medium-6 small-12 columns"> <div class="columns" ng-class="{'small-6 medium-6 large-6':(send._paypro || send.lockAddress)}">
<button type="submit" class="button black radius expand" ng-disabled="sendForm.$invalid || send.blockUx" <button type="submit" class="button black radius expand" ng-disabled="sendForm.$invalid || send.blockUx"
ng-style="{'background-color':index.backgroundColor}" translate> ng-style="{'background-color':index.backgroundColor}" translate>
Send Send
</button> </button>
</div> </div>
<div class="large-4 medium-4 small-12 columns text-right"> <div class="large-6 medium-6 small-6 columns" ng-show="!send.blockUx && (send._paypro || send.lockAddress)">
<a ng-click="send.resetForm(sendForm)" class="button expand warning" <a ng-click="send.resetForm(sendForm)" class="button expand warning" translate>Cancel</a>
ng-show="(send._paypro || send.lockAddress) && !send.blockUx" translate>Cancel</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -7,27 +7,6 @@
color: #2C3E50; color: #2C3E50;
} }
body, div, .row {
-webkit-overflow-scrolling: touch;
};
::-webkit-input-placeholder {
color: #B7C2CD;
}
:-moz-placeholder { /* Firefox 18- */
color: #B7C2CD;
}
::-moz-placeholder { /* Firefox 19+ */
color: #B7C2CD;
}
:-ms-input-placeholder {
color: #B7C2CD;
}
#qr-canvas { display: none; } #qr-canvas { display: none; }
#qrcode-scanner-video { #qrcode-scanner-video {
display: block; display: block;
@ -526,7 +505,7 @@ input {
} }
input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], textarea { input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], textarea {
color: #2C3E50; color: #B7C2CD;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
height: 35px; height: 35px;
background: transparent; background: transparent;

View File

@ -28,6 +28,10 @@ input {
user-drag: none; user-drag: none;
} }
body, div, .row {
-webkit-overflow-scrolling: touch;
}
.enable_text_select { .enable_text_select {
-webkit-user-select: text; -webkit-user-select: text;
-khtml-user-select: text; -khtml-user-select: text;
@ -44,7 +48,7 @@ input {
body { body {
overflow: hidden; overflow: hidden;
-ms-content-zooming: none; -ms-content-zooming: none;
} }
/* Fix IE 10 */ /* Fix IE 10 */
@ -171,6 +175,11 @@ _:-ms-fullscreen, :root .main {
height:100%; height:100%;
} }
.home-wallet {
height: 100%;
background-color: #fff;
}
.home-wallet .avatar-wallet { .home-wallet .avatar-wallet {
padding: 1.7rem 1rem; padding: 1.7rem 1rem;
width: 75px; width: 75px;
@ -615,17 +624,20 @@ a.pin-button:active {
padding-top: 1rem; padding-top: 1rem;
} }
.animation { ::-webkit-input-placeholder {
position: absolute; color: #B7C2CD;
background: #fff; }
display: block;
width: 100%; :-moz-placeholder { /* Firefox 18- */
height: 100%; color: #B7C2CD;
top: 0; }
left: 0;
-webkit-backface-visibility: hidden; ::-moz-placeholder { /* Firefox 19+ */
-webkit-transform: translate3d(0, 0, 0); color: #B7C2CD;
transform: translate3d(0, 0, 0); }
:-ms-input-placeholder {
color: #B7C2CD;
} }
.animation-left.ng-enter, .animation-left.ng-leave, .animation-left.ng-enter, .animation-left.ng-leave,

View File

@ -466,10 +466,10 @@ angular
} }
var pageWeight = { var pageWeight = {
walletHome: 10, walletHome: 0,
receive: 20, receive: 0,
send: 30, send: 0,
history: 40, history: 0,
preferences: 11, preferences: 11,
preferencesColor: 12, preferencesColor: 12,
backup: 12, backup: 12,
@ -477,7 +477,7 @@ angular
preferencesUnit: 12, preferencesUnit: 12,
preferencesAltCurrency: 12, preferencesAltCurrency: 12,
preferencesBwsUrl: 12, preferencesBwsUrl: 12,
add: 11, add: 0,
create: 12, create: 12,
join: 12, join: 12,
import: 12, import: 12,