mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Use span
instead of div
in the text layer
This improves copy/pasting text content since it reduces the amount of unnecessary newlines.
This commit is contained in:
parent
4e3d694451
commit
5f15dc2023
4 changed files with 8 additions and 8 deletions
|
@ -24,7 +24,7 @@
|
|||
line-height: 1.0;
|
||||
}
|
||||
|
||||
.textLayer > div {
|
||||
.textLayer > span {
|
||||
color: transparent;
|
||||
position: absolute;
|
||||
white-space: pre;
|
||||
|
|
|
@ -77,12 +77,12 @@ select {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.pdfPresentationMode:fullscreen .textLayer > div {
|
||||
.pdfPresentationMode:fullscreen .textLayer > span {
|
||||
cursor: none;
|
||||
}
|
||||
|
||||
.pdfPresentationMode.pdfPresentationModeControls > *,
|
||||
.pdfPresentationMode.pdfPresentationModeControls .textLayer > div {
|
||||
.pdfPresentationMode.pdfPresentationModeControls .textLayer > span {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
@ -1518,19 +1518,19 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
|
|||
mix-blend-mode: screen;
|
||||
}
|
||||
|
||||
#viewer.textLayer-visible .textLayer > div {
|
||||
#viewer.textLayer-visible .textLayer > span {
|
||||
background-color: rgba(255, 255, 0, 0.1);
|
||||
color: black;
|
||||
border: solid 1px rgba(255, 0, 0, 0.5);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#viewer.textLayer-hover .textLayer > div:hover {
|
||||
#viewer.textLayer-hover .textLayer > span:hover {
|
||||
background-color: white;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#viewer.textLayer-shadow .textLayer > div {
|
||||
#viewer.textLayer-shadow .textLayer > span {
|
||||
background-color: rgba(255,255,255, .6);
|
||||
color: black;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue