From b86f199c56580b60dd07cb6b4ed422bbd0005209 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Mon, 24 Feb 2014 13:42:47 -0300 Subject: [PATCH] fix layout of transaction page. fix icons expand and copy/paste --- public/src/css/common.css | 35 ++++++++------ public/views/transaction.html | 83 +++++++++++++------------------- public/views/transaction/tx.html | 46 +++++++++--------- 3 files changed, 74 insertions(+), 90 deletions(-) diff --git a/public/src/css/common.css b/public/src/css/common.css index d93ad04d..5d8c46a1 100644 --- a/public/src/css/common.css +++ b/public/src/css/common.css @@ -71,6 +71,10 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { .vm { vertical-align: middle; } +.bgwhite { + background-color: white; +} + .btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group { margin-left: 0; } @@ -511,38 +515,37 @@ margin-left: 0; color: black; } -.btn-copy, .btn-expand { - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - background-color: #FFFFFF; - border-radius: 2px; - border: 2px solid #E4E4E4; +.btn-copy { color: #9b9b9b; display: inline-block; - height: 25px; - padding: 0; + height: 16px; + width: 16px; outline: none; - text-align: center; - width: 30px; + vertical-align: sub; +} + +.btn-expand { + color: #9b9b9b; + vertical-align: middle; } .btn-copy:hover, .btn-expand:hover { - background-color: #f2f2f2; + color: #000; + text-decoration: none; } .btn-copy { - background: #fff url('/img/icons/copy.png') center center no-repeat; - margin-left: 5px; + background: transparent url('/img/icons/copy.png') center center no-repeat; } + .btn-copy .tooltip { - display: inline-block; - margin-left: 10px; + display: block; + margin-left: 20px; margin-top: -2px; opacity: 0; } .btn-copy.zeroclipboard-is-hover { color: #2a6496; } .btn-copy.zeroclipboard-is-active .tooltip { opacity: 1; } -.btn-expand { margin-right: 5px; } @media (max-width: 991px) { .btn-copy { diff --git a/public/views/transaction.html b/public/views/transaction.html index c0cf9bbd..587e3942 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -1,61 +1,44 @@
- -
-
-
- Loading Transaction... -
-
-
- -
-
- - -
-

Summary

- - - - - - - - - - - - - - - - - - -
Size {{tx.size}} (bytes)
Received Time {{tx.firstSeenTs * 1000|date:'medium'}}N/A
Mined Time {{tx.time * 1000|date:'medium'}}N/A
-
-
-
-
-

Transaction +
+

Transaction Input Output - {{v_index}} + {{v_index}} -

-
-
- Loading Transaction Details... -
-
-
-
+

+
+ {{tx.txid}} + +
+
+
+ Loading Transaction Details...
+

Summary

+ + + + + + + + + + + + + + + + + +
Size {{tx.size}} (bytes)
Received Time {{tx.firstSeenTs * 1000|date:'medium'}}N/A
Mined Time {{tx.time * 1000|date:'medium'}}N/A
+
+
+
diff --git a/public/views/transaction/tx.html b/public/views/transaction/tx.html index 81a0bdc7..f3812057 100644 --- a/public/views/transaction/tx.html +++ b/public/views/transaction/tx.html @@ -1,19 +1,22 @@
- -
- first seen at - -
-
- mined at - +
+
+ first seen at + +
+
+ mined at + +
@@ -31,7 +34,7 @@
-

{{$root.currency.getConvertion(vin.value)}}

+

{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}

{{vin.addr}} {{vin.addr}} @@ -56,7 +59,7 @@ show all
-

{{$root.currency.getConvertion(vin.value)}}

+

{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}

   {{vin.addr}} @@ -104,7 +107,7 @@

- {{$root.currency.getConvertion(vout.value)}} + {{$root.currency.getConvertion(vout.value) || vout.value + ' BTC' }} (S) (U)

@@ -130,7 +133,7 @@
-

{{$root.currency.getConvertion(vout.value)}} +

{{$root.currency.getConvertion(vout.value) || vout.value + ' BTC'}} (U)   

@@ -165,23 +168,18 @@
-
-
- - BlockHash - {{tx.blockhash}} - - -
+
+ BlockHash {{tx.blockhash}} +
- Fees: {{$root.currency.getConvertion(tx.fees)}} + Fees: {{$root.currency.getConvertion(tx.fees) || tx.fees + 'BTC'}}
{{tx.confirmations}} Confirmations Unconfirmed Transaction! - {{$root.currency.getConvertion(tx.valueOut)}} + {{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}