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

172 lines
3.5 KiB
CSS
Raw Normal View History

2013-02-05 17:05:58 +00:00
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* Base CSS */
2013-02-05 17:05:58 +00:00
/* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com> */
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;
2012-09-25 14:32:17 +00:00
/* margin & border-width have to be 0,
* otherwise pdf2htmlEX may not calculate the coordinates correctly
*/
margin:0;
border-width:0;
2012-08-14 12:30:18 +00:00
}
2013-02-05 17:05:58 +00:00
@media screen {
#pdf-outline.opened { display:block; }
#pdf-outline.opened + #pdf-main { left:200px; }
#pdf-main {
bottom:0;
right:0;
overflow:auto;
background-color:#808080;
}
}
@media print {
@page { margin:0; }
2013-02-05 17:09:56 +00:00
body {
margin:0;
/* enable printing background images for WebKit */
-webkit-print-color-adjust:exact;
}
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-01-28 18:42:39 +00:00
/*
* The followings are base classes, which are meant to be override by PDF specific classes
* So do not increase the specificity
*/
2013-01-28 18:35:34 +00:00
.d { /* 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-01-28 18:35:34 +00:00
.p { /* 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;
2012-09-25 14:32:17 +00:00
/* margin & border-width have to be 0,
2013-02-05 10:19:25 +00:00
* otherwise pdf2htmlEX.js may not calculate the coordinates correctly
2012-09-25 14:32:17 +00:00
*/
margin:0;
border-width:0;
}
2013-01-28 18:35:34 +00:00
.b { /* 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-05 17:05:58 +00:00
.b.opened { /* used by pdf2htmlEX.js, to show/hide pages */
display:block;
}
2013-01-28 18:35:34 +00:00
.l { /* 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-01-28 18:35:34 +00:00
span {
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-01-28 18:35:34 +00:00
._ { /* 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-01-28 18:35:34 +00:00
::selection{
background: rgba(127,255,255,1);
2012-08-14 12:30:18 +00:00
}
2013-01-28 18:35:34 +00:00
::-moz-selection{
background: rgba(127,255,255,1);
2012-08-14 12:30:18 +00:00
}
2013-01-28 18:35:34 +00:00
.j { /* info for Javascript */
2012-09-25 11:29:59 +00:00
display:none;
}
2013-01-28 18:35:34 +00:00
.a {
2012-09-25 11:29:59 +00:00
}
2013-01-31 22:21:57 +00:00
/* transparent color - WebKit */
2013-01-28 18:35:34 +00:00
.Cd { /* 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%;
}
2013-02-05 17:05:58 +00:00
@media print {
.d {
margin:0;
box-shadow:none;
page-break-after:always;
page-break-inside:avoid;
}
2013-02-05 17:54:15 +00:00
@-moz-document url-prefix() {
/* fix page truncation for Firefox */
.d {overflow:visible;}
.p {overflow:visible;}
.b {overflow:visible;}
}
2013-02-05 17:05:58 +00:00
}
/* Base CSS END */