1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-07 18:30:34 +00:00

css comments

This commit is contained in:
Lu Wang 2013-02-24 10:41:51 +08:00
parent f4613ceea5
commit d59f95c54a

View File

@ -41,18 +41,18 @@
position:absolute; position:absolute;
top:0; top:0;
left:0px; left:0px;
margin:0; /* required by pdf2htmlEX.js for page visibility test */ margin:0;
padding:0; padding:0;
border-width:0; border-width:0; /* required for lazy page loading in pdf2htmlEX.js (page visibility test) */
} }
@media screen { @media screen {
/* for sidebar */ /* for sidebar */
#pdf-outline.opened { display:block; } #pdf-outline.opened { display:block; }
#pdf-outline.opened + #pdf-main { left:200px; } #pdf-outline.opened + #pdf-main { left:200px; }
/* `bottom' and `right' are required by pdf2htmlEX.js if you want lazy page loading
* you can also limit width and/or height of #pdf-main
*/
#pdf-main { #pdf-main {
/* `bottom' and `right' are required for lazy page loading in pdf2htmlEX.js (page visibility test)
* alternatively you may set width and height
*/
bottom:0; bottom:0;
right:0; right:0;
overflow:auto; overflow:auto;
@ -64,8 +64,7 @@
html { margin:0; } html { margin:0; }
body { body {
margin:0; margin:0;
/* enable printing background images for WebKit */ -webkit-print-color-adjust:exact; /* enable printing background images for WebKit */
-webkit-print-color-adjust:exact;
} }
#pdf-main { #pdf-main {
width:auto; width:auto;
@ -74,7 +73,6 @@
background-color:transparent; background-color:transparent;
} }
} }
/* Part 2: Page Elements: Modify with caution /* Part 2: Page Elements: Modify with caution
* The followings are base classes, which are meant to be override by PDF specific classes * The followings are base classes, which are meant to be override by PDF specific classes
* So do not increase the specificity (e.g. ".d" -> "#pdf-main .d") * So do not increase the specificity (e.g. ".d" -> "#pdf-main .d")
@ -94,8 +92,8 @@
height:100%; height:100%;
background-color:white; background-color:white;
overflow: hidden; overflow: hidden;
margin:0; /* required by pdf2htmlEX.js for page visibility test */ margin:0;
border-width:0; border-width:0; /* required by pdf2htmlEX.js for page visibility test */
} }
.b { /* content of a page */ .b { /* content of a page */
position:absolute; position:absolute;