CSS cleanup
authorMichael Ang <mang@archive.org>
Thu, 30 Sep 2010 20:40:22 +0000 (20:40 +0000)
committerMichael Ang <mang@archive.org>
Thu, 30 Sep 2010 20:40:22 +0000 (20:40 +0000)
BookReader/BookReader.css
BookReader/BookReader.js

index de7e6a2..1f98a8b 100644 (file)
@@ -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;
 }
index bcd17b3..94c19c1 100644 (file)
@@ -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');