diff --git a/bundled-addons/pdf-editor/editor.css b/bundled-addons/pdf-editor/editor.css index 8e65d2fb..79e1e570 100644 --- a/bundled-addons/pdf-editor/editor.css +++ b/bundled-addons/pdf-editor/editor.css @@ -271,3 +271,16 @@ body[data-dragging="1"] .selbar, `visibleStroke`: the copy is transparent on purpose. */ body[data-mode="select"] .smOverlay .mark .hit { pointer-events: stroke; } .smOverlay .mark .hit { pointer-events: none; } + +/* Picking a run of the document's own text to replace. The text layer stays + live so a click can land on a run; the form layer steps aside so a widget + does not swallow it. The hover outline is the only cue that the invisible + text layer is a target at all. */ +body[data-mode="pickrun"] .annotationLayer { pointer-events: none !important; } +body[data-mode="pickrun"] .pdfViewer .page { cursor: text; } +body[data-mode="pickrun"] .textLayer span:hover { + outline: 2px solid rgb(from var(--acid) r g b / .9); + outline-offset: 1px; + background: rgb(from var(--acid) r g b / .16); + border-radius: 2px; +} diff --git a/bundled-addons/pdf-editor/editor.html b/bundled-addons/pdf-editor/editor.html index 7e23eb66..c0d5074a 100644 --- a/bundled-addons/pdf-editor/editor.html +++ b/bundled-addons/pdf-editor/editor.html @@ -62,6 +62,9 @@ + @@ -191,7 +194,7 @@
-