1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

Pdf file view (#3080)

* [pdf file view] rewrote it with react

* [shared pdf file view] rewrote it with react
This commit is contained in:
llj
2019-03-09 08:36:14 +08:00
committed by Daniel Pan
parent e854970094
commit e828abce04
10 changed files with 754 additions and 2 deletions

View File

@@ -0,0 +1,75 @@
.pdf-file-view {
overflow:hidden;
position:relative;
}
.sf-hide {
height:0;
overflow:hidden;
}
.hidden {
display:none;
}
#outerContainer,
#mainContainer,
#viewerContainer {
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
}
#viewerContainer {
padding:30px 0 15px;
overflow:auto;
}
#viewerContextMenu {
padding:0;
margin:0;
}
#viewerContainer:focus {
outline:none;
}
.page {
position:relative;
background:#fff;
box-shadow:0 0 6px #ccc;
margin:0 auto 20px;
}
.page .loading-icon {
position:absolute;
top:50%;
left:50%;
}
.textLayer {
position:absolute;
left:0;
top:0;
right:0;
bottom:0;
overflow:hidden;
opacity:0.2;
line-height:1.0;
}
.textLayer > div {
color:transparent;
position:absolute;
white-space:pre;
cursor:text;
-webkit-transform-origin:0% 0%;
-moz-transform-origin:0% 0%;
-o-transform-origin:0% 0%;
-ms-transform-origin:0% 0%;
transform-origin:0% 0%;
}
.textLayer ::selection {
background: blue;
}
.textLayer ::-moz-selection {
background: blue;
}
.annotationLayer {
display:none;
}
#fileInput {
display:none;
}