1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 02:42:26 +00:00

[file view] pdf: enable text selection

This commit is contained in:
llj
2018-03-17 13:21:41 +08:00
parent 663eebc8ed
commit 8d6e0ce5fd
3 changed files with 76 additions and 43 deletions

View File

@@ -2998,10 +2998,42 @@ button.sf-dropdown-toggle:focus {
margin:0 auto;
}
.pdf-page {
position:relative;
}
.pdf-page-canvas {
display:block;
max-width:100%;
box-shadow:0 0 6px #ccc;
margin:0 auto 20px;
}
.pdf-page-text-layer {
position:absolute;
left:0;
top:0;
right:0;
bottom:0;
overflow:hidden;
opacity:0.2;
line-height:1.0;
}
.pdf-page-text-layer > 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%;
}
.pdf-page-text-layer ::selection {
background: blue;
}
.pdf-page-text-layer ::-moz-selection {
background: blue;
}
#doc-view {
min-height:700px;
_height:700px;