From fa2d9e872e79b8d09f1b281bf932f83f575d699d Mon Sep 17 00:00:00 2001 From: Michael Ang Date: Thu, 30 Sep 2010 20:40:22 +0000 Subject: [PATCH] CSS cleanup --- BookReader/BookReader.css | 22 ++++++++++++++-------- BookReader/BookReader.js | 8 -------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/BookReader/BookReader.css b/BookReader/BookReader.css index de7e6a2..1f98a8b 100644 --- a/BookReader/BookReader.css +++ b/BookReader/BookReader.css @@ -83,12 +83,14 @@ h3 { } #BRbookcover { - border: 1px solid rgb(68, 25, 17); + /* border: 1px solid rgb(68, 25, 17); */ background-color: #663929; - -moz-border-radius: 6px; - -moz-box-shadow: 3px 3px 8px #222; - -webkit-border-radius: 6px; - -webkit-box-shadow: 2px 2px 8px #222; + position: absolute; + backgroundImage: url(images/back_pages.png); + /* -moz-border-radius: 6px; */ + -moz-box-shadow: 0 0 2px #000; + /* -webkit-border-radius: 6px; */ + -webkit-box-shadow: 0 0 2px #000; } .BRpageimage { @@ -96,17 +98,21 @@ h3 { } .BRleafEdgeR { + /* border-style: solid solid solid none; border-color: rgb(51, 51, 34); border-width: 1px 1px 1px 0px; - background: transparent url(images/right_edges.png) repeat scroll 0% 0%; + */ + background: transparent url(images/back_pages.png) repeat scroll 0% 0%; position: absolute; } .BRleafEdgeL { + /* border-style: solid none solid solid; border-color: rgb(51, 51, 34); border-width: 1px 0px 1px 1px; + */ /* background: transparent url(images/left_edges.png) repeat scroll 0% 0%; */ background: transparent url(images/back_pages.png) repeat scroll 0% 0%; /* XXXmang replace file */ position: absolute; @@ -121,8 +127,8 @@ h3 { position: absolute; } -#BRbookspine { - border: 1px solid rgb(68, 25, 17); +#BRbookspine { + /* border: 1px solid rgb(68, 25, 17); */ background-color: rgb(68, 25, 17); position: absolute; } diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index bcd17b3..94c19c1 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -1435,14 +1435,6 @@ BookReader.prototype.prepareTwoPageView = function(centerPercentageX, centerPerc width: this.twoPage.bookCoverDivWidth + 'px', height: this.twoPage.bookCoverDivHeight+'px', visibility: 'visible', - position: 'absolute', - backgroundColor: 'transparent', - /* XXXmang move to CSS */ - backgroundImage: 'url(images/back_pages.png)', - left: this.twoPage.bookCoverDivLeft + 'px', - top: this.twoPage.bookCoverDivTop+'px', - MozBoxShadow: '0 0 2px #000', - WebkitBoxShadow: '0 0 2px #000' }).appendTo('#BRtwopageview'); this.leafEdgeR = document.createElement('div'); -- 2.20.1