From 63b97d42a6fd5634d483c4ac7708a57edc1e2433 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 4 Mar 2013 17:48:27 +0400 Subject: [PATCH] removed changing shadows from comment pages... Signed-off-by: Alex A. Naanou --- lib/keyboard.js | 4 ++++ magazine.css | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/lib/keyboard.js b/lib/keyboard.js index 43dd6c1..90906dc 100755 --- a/lib/keyboard.js +++ b/lib/keyboard.js @@ -85,6 +85,10 @@ var KEYBOARD_HANDLER_PROPAGATE = true * - key char (uppercase), as is returned by String.fromCharCode(...) * * + * NOTE: if a handler explicitly returns false then that will break the + * event propagation chain and exit the handler. + * i.e. no other matching handlers will be called. + * * XXX might need to add meta information to generate sensible help... */ function makeKeyboardHandler(keybindings, unhandled){ diff --git a/magazine.css b/magazine.css index dd63bba..a72edfe 100755 --- a/magazine.css +++ b/magazine.css @@ -694,6 +694,18 @@ div.page-number-text { } +/* set a fixed shadow... + * NOTE: use .noshadow to disable shadows. + */ +.page.caption-top-arrow, +.page.caption-bottom-arrow { + box-shadow: 35px 0px 100px 0px #000; +} +.page.caption-top-arrow:before, +.page.caption-bottom-arrow:before { + box-shadow: 20px -20px 30px 10px #000; +} +/* XXX changing shdows makes things a bit gittery on devices... .current.page.caption-top-arrow, .current.page.caption-bottom-arrow { box-shadow: 30px 0px 100px 0px #000; @@ -702,7 +714,17 @@ div.page-number-text { .current.page.caption-bottom-arrow:before { box-shadow: 20px -20px 30px 10px #000; } +*/ +/* addind noshadow will disable shadows compleatly */ +.page.caption-top-arrow.noshadow, +.page.caption-bottom-arrow.noshadow { + box-shadow: none; +} +.page.caption-top-arrow.noshadow:before, +.page.caption-bottom-arrow.noshadow:before { + box-shadow: none; +}