Add (at this point faulty) text selection
This commit is contained in:
@@ -102,6 +102,34 @@
|
||||
.page-wrapper canvas {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Invisible text overlay for native selection. Spans are positioned via
|
||||
CSS matrix() derived from PDF text transforms; color:transparent keeps
|
||||
the canvas visible while the browser handles selection normally. */
|
||||
.textLayer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
z-index: 2;
|
||||
line-height: 1;
|
||||
text-size-adjust: none;
|
||||
forced-color-adjust: none;
|
||||
}
|
||||
|
||||
.textLayer span {
|
||||
color: transparent;
|
||||
position: absolute;
|
||||
white-space: pre;
|
||||
cursor: text;
|
||||
transform-origin: 0% 0%;
|
||||
font-size: 1px;
|
||||
user-select: text;
|
||||
-webkit-user-select: text;
|
||||
}
|
||||
|
||||
.textLayer ::selection {
|
||||
background: rgba(100, 160, 255, 0.35);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user