From b1e7d176518d8e0c842e80b10ac227c0ae72cc8b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 20 Oct 2012 07:36:39 +0000 Subject: UI tweaks for mobile --- css/bitcoin_pos.css | 5 +++-- index.html | 4 +++- js/bitcoin_pos.js | 2 +- js/qr.js | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/css/bitcoin_pos.css b/css/bitcoin_pos.css index 2702b9aa..2346ea18 100644 --- a/css/bitcoin_pos.css +++ b/css/bitcoin_pos.css @@ -1,8 +1,9 @@ body { text-align: center; } -input[type="number"] { height: 30px; } -body, input[type="number"] { font-size: 24px; line-height: 24px; } +body, input[type="text"], input[type="number"] { font-size: 24px; height: 30px; line-height: 24px; } small, label { font-size: 24px; color: #999; line-height: 24px; } strong#total { font-size: 30px; } +input[type="submit"] { display: none; } +canvas { margin-left: 90px; } div.container-fluid { width: 600px; diff --git a/index.html b/index.html index 04a77827..1eb2423e 100644 --- a/index.html +++ b/index.html @@ -21,9 +21,11 @@ CAD / BTC - + CAD + +

Please send 0.0 bitcoins to:


diff --git a/js/bitcoin_pos.js b/js/bitcoin_pos.js index f9685924..0ecc9264 100644 --- a/js/bitcoin_pos.js +++ b/js/bitcoin_pos.js @@ -68,7 +68,7 @@ $(function() { doqr('bitcoin:' + address + '?amount=' + total.toString()); } - $('input').focus(function() { $(this).val(''); }); + $('input').click(function() { $(this).val(''); }); }); function getParameterByName(name) { diff --git a/js/qr.js b/js/qr.js index c978215e..6933e8ae 100644 --- a/js/qr.js +++ b/js/qr.js @@ -703,8 +703,8 @@ function genframe(instring) var wd, ht, qrc; function setupqr(){ - wd = 350; - ht = 350; + wd = 300; + ht = 300; mp = document.getElementById("mapcanv"); var elem = document.getElementById('qrcanv'); -- cgit v1.2.3