pdf.js/examples/text-selection/css/minimal.css

44 lines
931 B
CSS
Raw Normal View History

2013-08-28 02:05:38 +09:00
body {
font-family: arial, verdana, sans-serif;
}
2014-08-07 00:56:05 +09:00
/* Allow absolute positioning of the canvas and textLayer in the page. They
will be the same size and will be placed on top of each other. */
.pdfPage {
position: relative;
overflow: visible;
2013-08-28 02:05:38 +09:00
border: 1px solid #000000;
}
2014-08-07 00:56:05 +09:00
.pdfPage > canvas {
position: absolute;
top: 0;
left: 0;
}
2013-08-28 02:05:38 +09:00
/* CSS classes used by TextLayerBuilder to style the text layer divs */
2014-08-07 00:56:05 +09:00
/* This stuff is important! Otherwise when you select the text,
the text in the divs will show up! */
2013-08-28 02:05:38 +09:00
::selection { background:rgba(0,0,255,0.3); }
::-moz-selection { background:rgba(0,0,255,0.3); }
.textLayer {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
color: #000;
font-family: sans-serif;
overflow: hidden;
}
.textLayer > div {
color: transparent;
position: absolute;
line-height: 1;
white-space: pre;
cursor: text;
}