diff --git a/public/src/css/common.css b/public/src/css/common.css index 5d8c46a1..91c53821 100644 --- a/public/src/css/common.css +++ b/public/src/css/common.css @@ -117,7 +117,6 @@ margin-left: 0; } .navbar-form { - margin-left: 20px; width: 35%; margin-top: 15px; } @@ -127,11 +126,11 @@ margin-left: 0; margin: 0; } .navbar-form { - width: 20%; + width: 15%; } } -@media (max-width: 768px) { +@media (max-width: 767px) { .navbar-form { width: auto; } @@ -146,6 +145,7 @@ margin-left: 0; font-size: 34px; font-style: italic; font-weight: 700; + overflow: hidden; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { @@ -154,7 +154,6 @@ margin-left: 0; .navbar-default .navbar-brand { color: #FFFFFF; - margin-right: 20px; padding: 22px 15px; } @@ -211,6 +210,7 @@ margin-left: 0; font-size: 12px; color: #eee; text-align: center; + margin-right: 10px; } .status .tooltip { @@ -661,3 +661,15 @@ a.v_highlight_more { color: #fff; } +.secondary_navbar { + width: 100%; + background: #fff; + position: fixed; + top: 64px; + left: 0; + border: 1px solid #eee; + padding: 10px; + text-align: center; + z-index: 10000; +} + diff --git a/public/src/js/directives.js b/public/src/js/directives.js index 39a7c77f..943f3478 100644 --- a/public/src/js/directives.js +++ b/public/src/js/directives.js @@ -3,6 +3,18 @@ var ZeroClipboard = window.ZeroClipboard; angular.module('insight') + .directive("scroll", function ($window) { + return function(scope, element, attrs) { + angular.element($window).bind("scroll", function() { + if (this.pageYOffset >= 200) { + scope.secondaryNavbar = true; + } else { + scope.secondaryNavbar = false; + } + scope.$apply(); + }); + }; + }) .directive('whenScrolled', function($window) { return { restric: 'A', diff --git a/public/views/block.html b/public/views/block.html index 421ffcca..fc983f39 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -1,5 +1,20 @@
+
+
+ +
+ Block #{{block.height}} · + Hash {{block.hash}} + +
+ +
+

Block #{{block.height}}

diff --git a/public/views/includes/currency.html b/public/views/includes/currency.html index 1d4be453..87debb23 100644 --- a/public/views/includes/currency.html +++ b/public/views/includes/currency.html @@ -1,9 +1,15 @@ -
- Currency: -
- - USD - BTC - mBTC -
-
\ No newline at end of file + + {{currency.symbol}} + + + diff --git a/public/views/includes/header.html b/public/views/includes/header.html index cf6660f0..7c1a860e 100644 --- a/public/views/includes/header.html +++ b/public/views/includes/header.html @@ -42,6 +42,7 @@ Height {{totalBlocks || info.blocks}}
+