mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Use CSS nesting in the textLayer
This commit is contained in:
parent
6115a328ea
commit
525be9afea
2 changed files with 86 additions and 89 deletions
|
@ -20,18 +20,19 @@
|
|||
inset: 0;
|
||||
line-height: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
.textLayer :is(span, br) {
|
||||
color: black;
|
||||
position: absolute;
|
||||
white-space: pre;
|
||||
transform-origin: 0% 0%;
|
||||
border: solid 1px rgb(255 0 0 / 0.5);
|
||||
background-color: rgb(255 255 32 / 0.1);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.textLayer .markedContent {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
:is(span, br) {
|
||||
color: black;
|
||||
position: absolute;
|
||||
white-space: pre;
|
||||
transform-origin: 0% 0%;
|
||||
border: solid 1px rgb(255 0 0 / 0.5);
|
||||
background-color: rgb(255 255 32 / 0.1);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.markedContent {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue