From d43d1c4c4dd0c71d44f0fe66afade46587966322 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 22 Jan 2013 01:26:37 +0400 Subject: [PATCH] added toolbars... Signed-off-by: Alex A. Naanou --- index.html | 11 +++++++++++ magazine.css | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/index.html b/index.html index 73adfe6..631723f 100755 --- a/index.html +++ b/index.html @@ -36,6 +36,9 @@ $(document).ready(function(){ return true } }) + $('.button.cover').click(goToMagazineCover) + $('.button.next-article').click(nextArticle) + $('.button.prev-article').click(prevArticle) // XXX add splash screen... // XXX @@ -454,6 +457,14 @@ function createPage(article, template){
+
+ mooo +
Issue Cover
+ + +
+
+
diff --git a/magazine.css b/magazine.css index 802f2c9..2e8c6f3 100755 --- a/magazine.css +++ b/magazine.css @@ -133,11 +133,55 @@ body { background: silver; } +.top-toolbar, .bottom-toolbar { + display: block; + position: absolute; + z-index: 1000; + text-align: center; + overflow: hidden; + + background: black; + opacity: 0.4; + + height: 50px; + left: 0px; +} + +.top-toolbar { + top: 0px; + width: 100%; +} + +.bottom-toolbar { + bottom: 0px; + width: 100%; +} + +.button { + display: inline-block; + color: white; + font-size: 25px; + font-weight: bold; + + cursor: hand; + + vertical-align: center; + + width: auto; + + margin-left: 20px; + margin-right: 20px; +} /* modes */ .page-view-mode.viewer { } +.page-view-mode .top-toolbar, +.page-view-mode .bottom-toolbar { + height: 0px; +} + .page-view-mode .page .content { } .page-view-mode .current.page .content {