From 6baf35dad09d8d2763a99ec118cdc38d2f39d06c Mon Sep 17 00:00:00 2001 From: bechi Date: Tue, 2 Dec 2014 15:32:42 -0300 Subject: [PATCH 01/10] style 01 proposal --- css/src/main.css | 93 +++++++++++--------- css/src/mobile.css | 4 - views/includes/transaction.html | 146 +++++++++++++++++--------------- views/send.html | 2 +- 4 files changed, 131 insertions(+), 114 deletions(-) diff --git a/css/src/main.css b/css/src/main.css index 1720f41f0..5230e0345 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -404,14 +404,48 @@ a:hover { background-color: #C0392A; } +.panel.last-transactions { + padding: 0; + margin-bottom: 2.25rem; +} -.last-transactions { - margin-bottom: 2rem; - background-color: #E8EAEF; +a.missing-copayers { + background: #7A8C9E; + position: absolute; + display: block; + right: -1px; + bottom: -23px; + padding: 0.2rem 0.5rem; + font-size: 10px; + border-radius: 0 0 3px 3px; + text-transform: uppercase; + color: #fff; + font-weight: 700; +} + +ul.tx-copayers { + background: #E4E8EC; + padding: 0.8rem; + margin-left: 0; +} + +.tx-copayers li { + border-bottom: 1px solid #CAD2DA; + list-style: none; + padding: 0.3rem; + font-size: 12px; } .last-transactions-header { - padding: 0.5rem; + border-radius: 3px 3px 0 0; + background: #2C3E50; + padding: 0.6rem; + color: #fff; +} + +.last-transactions-content { + padding: 0.8rem 0.8rem 0; + color: #7A8C9E; } .last-transactions-footer { @@ -419,11 +453,6 @@ a:hover { overflow: hidden; } -table.last-transactions-content { - background-color: #F8F8FB; - margin-bottom: 10px; -} - .last-transactions-content .box-status { font-size: 13px; width: 30px; @@ -446,7 +475,7 @@ table.last-transactions-content { color: #fff; } -.last-transactions-content .icon-active-check { +.tx-copayers .icon-active-check { background-color: #3FBC9C; color: #fff; } @@ -456,26 +485,12 @@ table.last-transactions-content { color: #fff; } -.private-message { - margin-bottom: 10px; - padding-bottom: 10px; - border-bottom: 1px solid #fff; -} - -.header-message { - background-color: #F8F8FB; - height: 18px; -} - .date-message { - background-color: #3C4E60; - color: #fff; + background-color: #213140; + border-radius: 3px; font-size: 12px; - padding: 2px 5px; - -webkit-border-radius: 0 5px 0 0; - -moz-border-radius: 0 5px 0 0; - -ms-border-radius: 0 5px 0 0; - border-radius: 0 5px 0 0; + padding: 0.2rem 0.4rem; + color: #7A8C9E; } .input-note { @@ -485,18 +500,14 @@ table.last-transactions-content { } .send-note { - background-color: #EDEDF5; + background-color: #F8F8FB; padding: 10px; - margin-bottom: 10px; } -.send-note p { +.send-note span { margin-bottom: 5px; font-size: 12px; -} - -.send-note b { - color: #000; + color: #2C3E50; } a.button-setup.add-wallet { @@ -610,12 +621,12 @@ a.button-setup { } .line-t { - border-top: 1px solid #F8F8FB; + border-top: 1px solid #E9E9EC; padding-top: 0.5rem; } .line-b { - border-bottom: 1px solid #F8F8FB; + border-bottom: 1px solid #E9E9EC; padding-bottom: 0.5rem; } @@ -1383,6 +1394,8 @@ a:hover .photo-container { margin-bottom: 0.2rem; } +icon-status.icon-active-check + .has-error { color: #C0392A; } @@ -1456,9 +1469,9 @@ a.text-warning:hover {color: #FD7262;} .panel { border-radius: 3px; background: #FFFFFF; - -moz-box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.10); - box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.10); - -o-box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.10); + -moz-box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.20); + box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.20); + -o-box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.20); border: none; } diff --git a/css/src/mobile.css b/css/src/mobile.css index 6ad00ac5c..588133526 100644 --- a/css/src/mobile.css +++ b/css/src/mobile.css @@ -221,10 +221,6 @@ padding: 0.15rem 0.2rem; } - .line-t { - border-top: 1px solid #3C5269; - } - } @media (max-width: 640px) { diff --git a/views/includes/transaction.html b/views/includes/transaction.html index 190af0997..342ff20a7 100644 --- a/views/includes/transaction.html +++ b/views/includes/transaction.html @@ -1,61 +1,41 @@ -
- {{tx.createdTs | amCalendar}} -
-
-
- - {{tx.comment}} + +
+
+
+ + {{tx.comment}} +
+
+ {{tx.createdTs | amCalendar}} +
+
+ +
-
-
- {{out.value}} {{$root.wallet.settings.unitName}} - - {{out.alternativeAmount}} {{out.alternativeIsoCode}} - -
+
+ {{out.value}} {{$root.wallet.settings.unitName}} + + {{out.alternativeAmount}} {{out.alternativeIsoCode}} +
-
+
- -
+
-

- {{tx.merchant.pr.pd.memo}} -

- Expires {{tx.merchant.pr.pd.expires * 1000 | amTimeAgo }} + {{tx.merchant.pr.pd.memo}}
+ Expires {{tx.merchant.pr.pd.expires * 1000 | amTimeAgo }} [{{tx.merchant.domain}}] - {{tx.merchant.pr.ca}} + {{tx.merchant.pr.ca}} Untrusted

+
- - - - - - - - - -
{{c.cId === $root.wallet.getMyCopayerId() ? 'Me' : $root.wallet.publicKeyRing.nicknameForCopayer(c.cId)}} - - - - - - - - - - -
- + + +
+ + One signature missing +
+
+ + {{tx.missingSignatures}} signatures missing +
+
+ +
    +
  • + + + + + + + + + + {{c.cId === $root.wallet.getMyCopayerId() ? 'Me' : $root.wallet.publicKeyRing.nicknameForCopayer(c.cId)}} +
  • +
+ \ No newline at end of file diff --git a/views/send.html b/views/send.html index 8b4b60617..7cedcf8bb 100644 --- a/views/send.html +++ b/views/send.html @@ -2,7 +2,7 @@

Pending Transactions Proposals

-
From 871099c9c1cb2782130d88c73cb694d3fe3e144e Mon Sep 17 00:00:00 2001 From: bechi Date: Tue, 2 Dec 2014 15:35:24 -0300 Subject: [PATCH 02/10] fix bug --- css/src/main.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/css/src/main.css b/css/src/main.css index 5230e0345..899e7c468 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -1394,8 +1394,6 @@ a:hover .photo-container { margin-bottom: 0.2rem; } -icon-status.icon-active-check - .has-error { color: #C0392A; } From 29f4e9142383e5f347f1b77316cb721161b01120 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 2 Dec 2014 17:06:22 -0300 Subject: [PATCH 03/10] Fix amount input (angular directive) --- js/directives.js | 5 ++--- views/send.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/directives.js b/js/directives.js index 262cb719e..ac823cdb1 100644 --- a/js/directives.js +++ b/js/directives.js @@ -91,15 +91,14 @@ angular.module('copayApp.directives') ]) .directive('validAmount', ['$rootScope', '$locale', function($rootScope, locale) { - var w = $rootScope.wallet; - preconditions.checkState(w); - preconditions.checkState(w.settings.unitToSatoshi); var formats = locale.NUMBER_FORMATS; return { require: 'ngModel', link: function(scope, element, attrs, ctrl) { var val = function(value) { + var w = $rootScope.wallet; + preconditions.checkState(w); var vNum = Number((value * w.settings.unitToSatoshi).toFixed(0)); if (typeof value == 'undefined') { diff --git a/views/send.html b/views/send.html index 7cedcf8bb..5804b0027 100644 --- a/views/send.html +++ b/views/send.html @@ -88,7 +88,7 @@
From 824df05a91e7d119d66eb46886a521a56ece6ba9 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 2 Dec 2014 17:51:12 -0300 Subject: [PATCH 04/10] fix tx proposal list --- views/includes/transaction.html | 67 ++++++++++++++------------------- 1 file changed, 29 insertions(+), 38 deletions(-) diff --git a/views/includes/transaction.html b/views/includes/transaction.html index 342ff20a7..eaa7fc906 100644 --- a/views/includes/transaction.html +++ b/views/includes/transaction.html @@ -38,7 +38,17 @@