Merge branch 'newui' of git@github.com:openlibrary/bookreader into newui
[bookreader.git] / BookReader / BookReader.css
1 body {
2  background-color: #939598;
3  font-size: 67.5%;
4  margin: 0;
5  padding: 0;
6 }
7 h3 {
8   font-size: 20px;
9   font-family:  "News Gothic MT","Trebuchet MS",Geneva,Helvetica,sans-serif;
10   font-weight: 700;
11   color: #dedede;
12 }
13 #BookReader {
14  position:absolute;
15  font-family: arial, sans-serif;
16  left:0;
17  right:0; 
18  top:0; 
19  bottom:0;
20 }
21 #BRtoolbar {
22     position: fixed;
23     top: 0;
24     left: 0;
25     height: 40px;
26     padding: 0;
27     width: 100%;
28     z-index: 100;
29     background-color: #e2dcc5;
30     overflow: hidden;
31 }
32 #BRtoolbar .label {
33     font-size: 1.1em;
34     color: #999;
35 }
36 #BRtoolbar a {
37     color: #ccc;
38     text-decoration: underline;
39 }
40 #BRtoolbarbuttons {
41     float: right;
42 }
43 #BRcontainer {
44     top:5px;
45     bottom:5px;
46     width:100%;
47     z-index: 1;
48     overflow-x:auto;
49     overflow-y:scroll;    
50     position:absolute;
51     background-color: #939598;
52 }
53
54 #BRpageview {
55     background-color: #939598;
56 }
57
58 .BRpagediv1up {
59     background-color: #939598;
60     overflow:hidden;
61     cursor: move;
62 }
63
64 .BRpagedivthumb {
65     background-color: #939598;
66     overflow:hidden;
67 }
68
69 .BRpagedivthumb a {
70     border: 0;
71 }
72
73 .BRpagedivthumb img {
74     border: 0;
75 }
76
77 /* Must come after .BRpagedivthumb rules in order to override them */
78 .BRpagedivthumb_highlight {
79     background-color: #939598;
80     overflow:hidden;
81 }
82
83 .BRpagediv2up {
84     background-color: rgb(234, 226, 205);
85     overflow:hidden;
86 }
87
88 #BRbookcover {
89     /* border: 1px solid rgb(68, 25, 17); */
90     /* background-color: #663929; */
91     position: absolute;
92     background-image: url(images/back_pages.png);
93     -moz-box-shadow: 1px 0 3px #000;
94     -webkit-box-shadow: 1px 0 3px #000;
95     /* -moz-border-radius: 6px; */
96     /* -webkit-border-radius: 6px; */
97 }
98
99 .BRpageimage {
100     background-color: rgb(234, 226, 205);
101 }
102
103 .BRleafEdgeR {
104     /*
105     border-style: solid solid solid none;
106     border-color: rgb(51, 51, 34);
107     border-width: 1px 1px 1px 0px;
108     */
109     background: transparent url(images/back_pages.png) repeat scroll 0% 0%;
110     position: absolute;
111 }
112
113 .BRleafEdgeL {
114     /*
115     border-style: solid none solid solid;
116     border-color: rgb(51, 51, 34);
117     border-width: 1px 0px 1px 1px;
118     */
119     /* background: transparent url(images/left_edges.png) repeat scroll 0% 0%; */
120     background: transparent url(images/back_pages.png) repeat scroll 0% 0%; /* XXXmang replace file */
121     position: absolute;
122 }
123
124 .BRleafEdgeTmp {
125     border-style: solid none solid solid;
126     border-color: rgb(51, 51, 34);
127     border-width: 1px 0px 1px 1px;
128     /* background: transparent url(images/left_edges.png) repeat scroll 0% 0%; */
129     background: transparent url(images/back_pages.png) repeat scroll 0% 0%; /* XXXmang replace file */
130     position: absolute;
131 }
132
133 #BRbookspine {    
134     /* border: 1px solid rgb(68, 25, 17); */
135     background-color: rgb(68, 25, 17);
136     position: absolute;
137 }
138
139 /* search sidebar */
140 #BookReaderSearch {
141     border:1px solid black;
142     position:absolute;
143     background-color: #E6E4E1;
144     font-family: arial, sans-serif;
145 }
146
147 #BookReaderSearchResults {
148     background-color: #FCFCFC;
149     top: 25px;
150     bottom: 0px;
151     overflow:auto;    
152     position: absolute;
153     left: 0px;
154     right: 0px;    
155     font-family: arial, san-serif;
156     font-size: 0.85em; 
157     padding: 2px;
158 }
159
160 .BookReaderSearchHilite {
161     opacity: 0.20; 
162     filter: alpha(opacity = 20);
163     background-color: #00f;
164     position:absolute;
165 }
166
167 .hidden {
168   display: none;
169 }
170
171 .BRpageform {
172     display: inline; 
173 }
174 #BRpagenum {
175     border: none;
176     background-color: #939598;
177     color: #ccc;
178     font-family: arial, sans-serif;
179     font-size: 12px;
180     font-weight: 700;
181 }
182 #BRreturn {
183     /* display: block; */
184     /* float: left; */
185     /* margin: 0 10px 0 5px; */
186     font-family: "Lucida Grande","Arial",sans-serif;
187     color: #333;
188     height: 20px;
189 }
190 #BRreturn span {
191     font-size: 12px;
192     display: block;
193     height: 12px;
194 }
195 #BRreturn a {
196     font-size: 14px;
197     display: block;
198     color: #036daa;
199     height: 18px;
200     overflow: hidden;
201 }
202 .BRicon {
203     display: block;
204     float: left;
205     width: 40px;
206     height: 40px;
207     padding: 0;
208     margin: 0;
209     vertical-align: middle;
210     border: none;
211     cursor: pointer;
212     background-color: transparent;
213     background-image: url(images/BRicons.png);
214     background-repeat: no-repeat;
215 }
216
217 .BRicon.logo {background-position:0 0;}
218 .BRicon.info {background-position:-40px 0;}
219 .BRicon.info:hover {background-position:-80px 0;}
220 .BRicon.share {background-position:-120px 0;}
221 .BRicon.share:hover {background-position:-160px 0;}
222 .BRicon.read {background-position:-200px 0;}
223 .BRicon.read:hover {background-position:-240px 0;}
224 .BRicon.unread {background-position:-280px 0;}
225 .BRicon.unread:hover {background-position:-320px 0;}
226 .BRicon.full {background-position:-360px 0;}
227 .BRicon.full:hover {background-position:-400px 0;}
228 .BRicon.book_left {background-position:-440px 0;}
229 .BRicon.book_left:hover {background-position:-480px 0;}
230 .BRicon.book_right {background-position:-520px 0;}
231 .BRicon.book_right:hover {background-position:-560px 0;}
232 .BRicon.zoom_out {background-position:-606px 0;}
233 .BRicon.zoom_out:hover {background-position:-646px 0;}
234 .BRicon.zoom_in {background-position:-686px 0;}
235 .BRicon.zoom_in:hover {background-position:-726px 0;}
236 .BRicon.play {background-position:-760px 0;}
237 .BRicon.play:hover {background-position:-800px 0;}
238 .BRicon.pause {background-position:-840px 0;}
239 .BRicon.pause:hover {background-position:-880px 0;}
240
241
242 /* NOT CURRENTLY IN USE
243 .BRicon.embed {background-position:-440px;}
244 .BRicon.embed:hover {background-position:-480px 0;}
245 .BRicon.read {background-position:-520px 0;}
246 .BRicon.read:hover {background-position:-560px 0;}
247 .BRicon.full {background-position:-600px 0;}
248 .BRicon.full:hover {background-position:-640px 0;}
249 .BRicon.thumb {background-position:-680px 0;}
250 .BRicon.thumb:hover {background-position:-720px 0;}
251 .BRicon.twopg {background-position:-760px 0;display:none;}
252 .BRicon.twopg:hover {background-position:-800px 0;}
253 .BRicon.one_page_mode {background-position:;}
254 .BRicon.two_page_mode {background-position:;}
255 .BRicon.thumbnail_mode {background-position:;}
256 .BRicon.book_up {background-position:;}
257 .BRicon.book_down {background-position:;}
258 .BRicon.book_leftmost {background-position:;}
259 .BRicon.book_rightmost {background-position:;}
260 .BRicon.book_top {background-position:;}
261 .BRicon.book_bottom {background-position:;}
262 */
263 a.logo {
264     display: block;
265     float: left;
266     width: 40px;
267     height: 40px;
268     margin-right: 10px;
269     background: transparent url(images/icon_home.png) no-repeat 0 0;
270 }
271 a.popOff {
272     position: absolute;
273     top: 5px;
274     right: 5px;
275     width: 24px;
276     height: 24px;
277     background-image: url(images/BRicons.png);
278     background-color: transparent;
279     background-repeat: no-repeat;
280     background-position: -1050px 0;
281     outline: none;
282 }
283 a.popOff:hover {
284     background-position: -1100px 0;
285 }
286 a.popOff span {
287     position: absolute;
288     left: -10000px;
289 }
290
291 form#booksearch {
292     float: left;
293     margin-right: 10px;
294 }
295 form#booksearch input[type=search] {
296     width: 280px;
297     height: 22px;
298     line-height: 22px;
299     font-family: "Arial", sans-serif;
300     font-size: 13px;
301     -webkit-appearance: textfield;
302     -moz-appearance: textfield;
303     appearance: field;
304     margin: 9px 0 0 0;
305     padding: 0;
306     border: 1px inset #ccc;
307 }
308 form#booksearch button {
309     width: 30px;
310     height: 24px;
311     line-height: 24px;
312     border: none;
313     background-color: #000;
314     text-align: center;
315     color: #fff;
316     font-family: "News Gothic MT","Trebuchet MS",Geneva,Helvetica,sans-serif;
317     font-weight: 700;
318     font-size: 11px;
319     text-transform: uppercase;
320     margin: 10px 0 0 5px;
321     -webkit-border-radius: 3px;
322     -moz-border-radius: 3px;
323     border-radius: 3px;
324 }
325
326 .BRlogotype {
327     float:left;
328     font-weight: bold; 
329     height: 25px; 
330     line-height: 25px; 
331     vertical-align: middle; 
332 }
333
334 a.BRwhite               { color: #fff }
335 a.BRwhite:hover         { text-decoration: none; }
336 a.BRwhite:visited       { color: #fff }
337
338 a.BRblack           { color: #000; }
339 a.BRblack:hover     { text-decoration: none; }
340 a.BRblack:visited   { color: #000; }
341
342 a.BRgrey           { color: #999; }
343 a.BRgrey:hover     { text-decoration: none; }
344 a.BRgrey:visited   { color: #666; }
345
346 .BRnavlinks {
347     float:right; 
348     padding: 0 20px 0 0; 
349     margin: 0; 
350     height: 25px; 
351     line-height: 25px; 
352     vertical-align: middle;
353 }
354
355 /* thumnbail view, from Rebecca's demo */
356 .BRpdstatus-footer {
357     position:absolute;
358     height: 65px;
359     bottom: 25px;
360     width: 100%;
361     background-color: #222;
362     text-align: right; 
363     padding: 0px 0px 0px 0px; 
364 }
365
366 .BRwidgetlabel { 
367     color: #919070; 
368     padding: 8px 8px 4px 8px; 
369     font-family: verdana, arial, helvetica, sans-serif; 
370     font-size: 10px; 
371     float: left; 
372 }
373
374 .BRfliparea {
375     background-image: url(images/transparent.png); # Required to capture mouse on IE
376 }
377
378 .BRtwoPagePopUp {
379     padding: 6px;
380     position: absolute;
381     font-family: Arial, sans-serif;
382     font-size: 11px;
383     color: white;
384     background-color: #939598;
385     opacity: 0.85,
386     -webkit-border-radius: 4px;
387     -moz-border-radius: 4px;
388     border-radius: 4px;
389     white-space: nowrap;
390 }
391
392 /* COLORBOX POP-UP */
393
394 #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999;}
395 #cboxOverlay{position:fixed; width:100%; height:100%;background:#000;opacity:0.75;filter:Alpha(Opacity=75);}
396 #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
397 #cboxContent{position:relative;}
398 #cboxLoadedContent{overflow:visible!important;}
399 #cboxLoadedContent iframe{display:block;border:0;}
400 #cboxTitle{margin:0;display:none!important;}
401 #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:25px; left:25px; width:100%;}
402 #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
403 #cboxClose{display:none!important;}
404
405 #colorBox{}
406     #cboxContent{background:#fff;padding:0;border:10px solid #615132;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;-moz-box-shadow: 1px 3px 10px #000;-webkit-box-shadow: 1px 3px 10px #000;box-shadow: 1px 3px 10px #000;}
407         #cboxLoadedContent{background:#fff;margin:0;}
408         #cboxLoadingOverlay{background:transparent;}
409         /* XXXmang where is icon_close? */
410         #cboxClose{position:absolute;top:20px;right:20px;display:block;width:32px;height:32px;background-image:url(/images/icons/icon_close-pop.png);background-position:0 0;background-repeat:no-repeat;}
411         #cboxClose:hover{background-position:0 -32px;}
412
413 div#BRpage {
414     float: right;
415     width: 80px;
416     padding-left:12px;
417     text-align: right;
418 }
419 div#BRnav {
420     position: fixed;
421     bottom: 0;
422     left: 0;
423     width: 100%;
424     height: 40px;
425     overflow: visible;
426     z-index: 100;
427     background-color: #e2dcc5;    
428 }
429 div#BRnavpos {
430     position: relative;
431     margin-right: 80px;
432     height: 40px;
433 }
434 div#BRpager {
435     position: relative;
436     
437     /* Account for padding around nav line */
438     margin-left: 10px;
439     margin-right: 10px;
440     
441     height: 40px;
442 }
443 div#BRslider {
444     position: absolute;
445     top: 13px;
446     height: 27px;
447 }
448
449 /* XXXmang verify correct use of handle class */
450 #BRpager .ui-slider-handle {
451     position: absolute;
452     width: 23px;
453     height: 27px;
454     top: 13px;
455     margin-left: -12px; /* Center icon */
456     background: url(images/slider.png);
457     z-index: 103;
458 }
459  /*   
460   width: 8px;
461   height: 14px;
462   position: absolute;
463   top: -4px;
464   background: #478AFF;
465   border: solid 1px black;
466 }
467 */
468
469 div#BRfiller {
470     position: absolute;
471     height: 40px;
472     width: 10px;
473     background-color: #e2dcc5;
474     top: 0;
475     left: 0;
476     z-index: 102;
477 }
478 div#slider {
479     position: absolute;
480     width: 2500px;
481     height: 27px;
482     top: 0;
483     left: -2478px;
484     background-color: #000;
485     opacity: .1;
486     z-index: 101;
487 }
488 div#pager {
489     position: absolute;
490     width: 23px;
491     height: 27px;
492     top: 0;
493     left: 8px;
494     background: url(images/slider.png);
495     z-index: 103;
496 }
497 div#pagenum {
498     display: none;
499     position: absolute;
500     left: 24px;
501     top: 4px;
502     color: #999;
503     font-size: 11px;
504     line-height: 19px;
505     font-weight: 700;
506     padding: 0 5px;
507     width: 80px;
508     text-align: right;
509     background-color: #000;
510     font-family: "Lucida Grande", "Arial", sans-serif;
511 }
512 div#pagenum span {
513     color: #ffa337;
514     font-style: italic;
515 }
516 div#BRnavline {
517     position: relative;
518     height: 2px;
519     width: auto;
520     background-color: #000;
521     top: -29px;
522     margin: 0 10px;
523 }
524 .BRnavend {
525     position: absolute;
526     top: -2px;
527     width: 1px;
528     height: 6px;
529     background-color: #000;
530 }
531 #BRnavleft {
532     left: 0;
533 }
534 #BRnavright {
535     right: 0;
536 }
537 div.chapter {
538     position: absolute;
539     top: -24px; /* Relative to nav line */
540     width: 18px;
541     margin-left: -9px; /* Center marker triangle */
542     height: 27px;
543     background: transparent url(images/marker_chap-off.png) no-repeat;
544     cursor: pointer;
545 }
546 div.chapter.front {
547     background: transparent url(images/marker_chap-on.png) no-repeat;
548 }
549 div.chapter div.title {
550     display: none;
551 }
552 div.title span {
553     color: #666;
554     padding: 0 5px;
555 }
556 div.search {
557     position: absolute;
558     width: 18px;
559     margin-left: -9px; /* Center icon */
560     height: 27px;
561     bottom: 0;  /* Relative to nav line */
562     background-color: transparent;
563     background-image: url(images/marker_srch-off.png);
564     background-repeat: no-repeat;
565     cursor: pointer;
566 }
567 div.search.front {
568     background: transparent url(images/marker_srch-on.png) no-repeat;
569 }
570 div.search div.query,div.searchChap div.query {
571     display: none;
572 }
573 div.query {
574     position: relative;
575 }
576 div.query strong {
577     color: #000;
578     font-weight: 700;
579 }
580 div.query span {
581     font-size: 10px;
582     color: #666;
583     font-style: italic;
584 }
585 div.query div.queryChap {
586     position: absolute;
587     top: -40px;
588     left: -13px;
589     width: 256px;
590     overflow: hidden;
591     text-align: center;
592     background: #000;
593     padding: 5px 10px;
594     color: #fff;
595     font-weight: 700;
596     font-size: 11px;
597 }
598 div.query div.queryChap span {
599     color: #666;
600     padding: 0 5px;
601     font-style: normal;
602 }
603 div.search div.pointer {
604     position: absolute;
605     left: 121px;
606     bottom: -14px;
607     width: 18px;
608     height: 27px;
609     background: transparent url(images/marker_srch-on.png) no-repeat;
610 }
611 div.searchChap {
612     position: absolute;
613     top: -13px;
614     width: 18px;
615     height: 27px;
616     background-color: transparent;
617     background-image: url(images/marker_srchchap-off.png);
618     background-repeat: no-repeat;
619     cursor: pointer;
620 }
621 div.searchChap.front {
622     background-image: url(images/marker_srchchap-on.png);
623 }
624 #BRnav .front {
625     z-index: 10001;
626 }
627 div#BRzoomer {
628     position: fixed;
629     bottom: 40px;
630     right: 0;
631     width: 26px;
632     height: 190px;
633     z-index: 100;
634 }
635 div#BRzoompos {
636     position: relative;
637     width: 26px;
638     height: 190px;
639     top: 0;
640     left: 0;
641 }
642 div#BRzoomer button {
643     position: absolute;
644     left: 0;
645     background-color: #e2dcc5;
646     width: 26px;
647 }
648 div#BRzoomer button:hover {
649     background-color: #000;
650 }
651 div#BRzoomer .zoom_out {
652     top: 0;
653     -webkit-border-top-left-radius: 6px;
654     -webkit-border-bottom-left-radius: 6px;
655     -moz-border-radius-topleft: 6px;
656     -moz-border-radius-bottomleft: 6px;
657     border-top-left-radius: 6px;
658     border-bottom-left-radius: 6px;
659     -webkit-box-shadow: 2px 2px 2px #333;
660     -moz-box-shadow: 2px 2px 2px #333;
661     box-shadow: 2px 2px 2px #333;
662 }
663 div#BRzoomer .zoom_in {
664     bottom: 0;
665     -webkit-border-top-left-radius: 6px;
666     -moz-border-radius-topleft: 6px;
667     border-top-left-radius: 6px;
668 }
669 div#BRzoomcontrol {
670     position: relative;
671     top: 40px;
672     left:3px;
673     width: 23px;
674     height: 110px;    
675 }
676 div#BRzoomstrip {
677     position: absolute;
678     top: 0;
679     left: 0;
680     width: 23px;
681     height: 110px;
682     background-color: #000;
683     opacity: .1;
684 }
685 div#BRzoombtn {
686     position: absolute;
687     width: 23px;
688     height: 23px;
689     top: 0;
690     left: 0;
691     background: url("images/icon_zoomer.png");
692 }
693
694 .BRttsPopUp {
695     position: absolute;
696     background-color: #E6E4E1;
697     background-image: url(images/progressbar.gif);
698     background-repeat:no-repeat;
699     font-size: 0.8em; 
700     z-index: 3;    
701 }