From 7c600a718fd2091aa15400ff83c5d356374d8833 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 28 Feb 2013 00:56:27 +0400 Subject: [PATCH] minor edits and tweeks... Signed-off-by: Alex A. Naanou --- index.html | 2 +- magazine.css | 5 +++++ navigator.js | 2 +- templates.html | 3 +-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 5776303..648a4bb 100755 --- a/index.html +++ b/index.html @@ -114,7 +114,7 @@ $(document).ready(function(){ togglePageFitMode() }, 66: { - //'default': toggleBookmark, // B + 'default': toggleBookmark, // B 'ctrl': function(){toggleThemes()}, // ctrl-B }, } diff --git a/magazine.css b/magazine.css index 789cbd8..99798ce 100755 --- a/magazine.css +++ b/magazine.css @@ -268,6 +268,11 @@ body { white-space: nowrap; font-size: 0px; min-width: 200px; + + /* XXX this is a bad way to fix shadow visibility outside of + * the ribbon, but it's better than adding an extra tag */ + overflow: hidden; + } .article:empty { color: silver; diff --git a/navigator.js b/navigator.js index 63968c2..1065704 100755 --- a/navigator.js +++ b/navigator.js @@ -179,7 +179,7 @@ function updatePageNumberIndicator(evt, n){ if(n == null){ n = getPageNumber() } - $('.page-number').text((n+1)+'/'+$('.page').length) + $('.page-number').text((n)+'/'+($('.page').length-1)) } diff --git a/templates.html b/templates.html index 076bf79..c14af9a 100755 --- a/templates.html +++ b/templates.html @@ -41,7 +41,6 @@ .container .page { box-shadow: 5px 5px 200px 30px gray; - margin: 5%; -webkit-transform-origin: 0 0; @@ -63,7 +62,7 @@ bottom: 10%; right: 10%; z-index: 1000; - text-shadow: black 0.1em 0.1em 0.3em; + text-shadow: black 0.1em 0.1em 0.4em, black 0.1em 0.1em; }