1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 09:38:40 +00:00
pdf2htmlEX/share/base.css.in

188 lines
4.4 KiB
CSS
Raw Normal View History

2013-04-06 09:13:19 +00:00
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab filetype=css: */
2013-02-22 08:52:11 +00:00
/* Demo CSS for pdf2htmlEX */
2013-02-05 17:05:58 +00:00
/* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com> */
2013-02-22 08:52:11 +00:00
/* Part 1: Web Page Layout: Free to modify, except for a few of them which are required by pdf2htmlEX.js, see the comments */
2013-01-28 13:01:02 +00:00
#pdf-outline { /* PDF Outline */
2012-08-14 12:30:18 +00:00
position:absolute;
top:0;
left:0;
bottom:0;
2013-01-28 13:38:21 +00:00
width:193px;
2013-01-28 13:01:02 +00:00
overflow:auto;
2013-01-28 13:38:21 +00:00
margin:0px;
padding:0 0 0 7px;
background-color:#707070;
display:none;
}
2013-01-28 13:38:21 +00:00
#pdf-outline ul {
margin-left:13px;
margin-right:3px;
padding-left:3px;
}
#pdf-outline li {
list-style-type:disc;
list-style-position:outside;
}
#pdf-outline a {
font-size:13px;
color:#e8e8e8;
}
#pdf-outline a:visited {
color:#e8e8e8;
}
#pdf-outline a:hover{
color:#e8e8e8;
}
#pdf-outline a:active{
color:#e8e8e8;
2013-01-28 13:01:02 +00:00
}
#pdf-main { /* PDF container */
position:absolute;
top:0;
left:0px;
2013-02-24 02:41:51 +00:00
margin:0;
2013-02-22 08:34:36 +00:00
padding:0;
2013-02-24 02:41:51 +00:00
border-width:0; /* required for lazy page loading in pdf2htmlEX.js (page visibility test) */
2012-08-14 12:30:18 +00:00
}
2013-02-05 17:05:58 +00:00
@media screen {
2013-02-22 08:52:11 +00:00
/* for sidebar */
2013-02-05 17:05:58 +00:00
#pdf-outline.opened { display:block; }
#pdf-outline.opened + #pdf-main { left:200px; }
#pdf-main {
2013-02-24 02:41:51 +00:00
/* `bottom' and `right' are required for lazy page loading in pdf2htmlEX.js (page visibility test)
* alternatively you may set width and height
*/
2013-02-05 17:05:58 +00:00
bottom:0;
right:0;
overflow:auto;
background-color:#808080;
}
}
2013-02-22 08:52:11 +00:00
@media print {
2013-02-05 17:05:58 +00:00
@page { margin:0; }
2013-02-06 12:29:48 +00:00
html { margin:0; }
2013-02-05 17:09:56 +00:00
body {
margin:0;
2013-02-24 02:41:51 +00:00
-webkit-print-color-adjust:exact; /* enable printing background images for WebKit */
2013-02-05 17:09:56 +00:00
}
2013-02-05 17:05:58 +00:00
#pdf-main {
width:auto;
height:auto;
2013-02-05 17:54:15 +00:00
overflow:visible;
2013-02-05 17:05:58 +00:00
background-color:transparent;
}
2013-02-28 16:00:06 +00:00
.@CSS_CSS_DRAW_CN@ {
display:none;
}
2013-02-05 17:05:58 +00:00
}
2013-02-22 08:52:11 +00:00
/* Part 2: Page Elements: Modify with caution
2013-01-28 18:42:39 +00:00
* The followings are base classes, which are meant to be override by PDF specific classes
2013-02-27 18:17:33 +00:00
* So do not increase the specificity (e.g. ".classname" -> "#pdf-main .classname")
2013-01-28 18:42:39 +00:00
*/
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_DECORATION_CN@ { /* page decoration */
2012-09-18 18:13:26 +00:00
position:relative;
2012-09-11 13:04:55 +00:00
margin: 13px auto;
2012-09-25 16:06:41 +00:00
border-width: 0;
box-shadow: 1px 1px 3px 1px #333;
2012-09-11 13:04:55 +00:00
overflow: hidden;
}
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_FRAME_CN@ { /* page */
2012-09-18 18:13:26 +00:00
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
2012-08-14 12:30:18 +00:00
background-color:white;
overflow: hidden;
2013-02-24 02:41:51 +00:00
margin:0;
border-width:0; /* required by pdf2htmlEX.js for page visibility test */
}
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_CONTENT_BOX_CN@ { /* content of a page */
position:absolute;
border-width:0;
top:0;
left:0;
width:100%;
height:100%;
2012-08-14 12:30:18 +00:00
overflow:hidden;
display:block;
2012-09-22 14:47:44 +00:00
transform-origin:0% 0%;
-ms-transform-origin:0% 0%;
-moz-transform-origin:0% 0%;
-webkit-transform-origin:0% 0%;
-o-transform-origin:0% 0%;
2012-08-14 12:30:18 +00:00
}
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_CONTENT_BOX_CN@.opened { /* used by pdf2htmlEX.js, to show/hide pages */
2013-02-05 17:05:58 +00:00
display:block;
}
.@CSS_BACKGROUND_IMAGE_CN@ {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
-ms-user-select:none;
-moz-user-select:none;
-webkit-user-select:none;
user-select:none;
}
2013-02-22 08:52:11 +00:00
@media print {
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_DECORATION_CN@ {
2013-02-22 08:52:11 +00:00
margin:0;
box-shadow:none;
page-break-after:always;
page-break-inside:avoid;
}
@-moz-document url-prefix() {
/* fix page truncation for FireFox */
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_DECORATION_CN@ {
2013-02-22 08:52:11 +00:00
overflow:visible;
border:1px solid #FFFFFF;
}
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_FRAME_CN@ {overflow:visible;}
.@CSS_PAGE_CONTENT_BOX_CN@ {overflow:visible;}
2013-02-22 08:52:11 +00:00
}
}
2013-02-27 18:11:34 +00:00
.@CSS_LINE_CN@ { /* text line */
2012-08-14 12:30:18 +00:00
position:absolute;
white-space:pre;
2012-08-30 15:36:30 +00:00
font-size:1px;
2012-09-13 04:19:20 +00:00
transform-origin:0% 100%;
-ms-transform-origin:0% 100%;
-moz-transform-origin:0% 100%;
-webkit-transform-origin:0% 100%;
-o-transform-origin:0% 100%;
}
2013-02-22 08:52:11 +00:00
span { /* text blocks within a line */
position:relative;
2012-08-24 17:40:43 +00:00
vertical-align: baseline;
2012-11-30 09:59:36 +00:00
/* _<id> for spaces may need display:inline, which will override this */
display:inline-block;
2012-08-14 12:30:18 +00:00
}
2013-02-27 18:11:34 +00:00
.@CSS_WHITESPACE_CN@ { /* text shift */
2012-08-16 10:44:42 +00:00
color:transparent;
2012-10-08 08:29:21 +00:00
z-index:-1;
2012-08-14 12:30:18 +00:00
}
2013-03-08 17:45:13 +00:00
/* selection background should not be opaque, for fallback mode */
2013-01-28 18:35:34 +00:00
::selection{
2013-03-08 17:45:13 +00:00
background: rgba(127,255,255,0.4);
2012-08-14 12:30:18 +00:00
}
2013-01-28 18:35:34 +00:00
::-moz-selection{
2013-03-08 17:45:13 +00:00
background: rgba(127,255,255,0.4);
2012-08-14 12:30:18 +00:00
}
2013-02-27 18:11:34 +00:00
.@CSS_PAGE_DATA_CN@ { /* info for Javascript */
2012-09-25 11:29:59 +00:00
display:none;
}
2013-02-27 18:11:34 +00:00
.@CSS_LINE_CN@ { /* annotation links */
2012-09-25 11:29:59 +00:00
}
2013-01-31 22:21:57 +00:00
/* transparent color - WebKit */
2013-02-27 18:11:34 +00:00
.@CSS_CSS_DRAW_CN@ { /* css drawing */
2012-10-01 17:59:04 +00:00
position:absolute;
transform-origin:0% 100%;
-ms-transform-origin:0% 100%;
-moz-transform-origin:0% 100%;
-webkit-transform-origin:0% 100%;
-o-transform-origin:0% 100%;
}
/* Base CSS END */