summaryrefslogtreecommitdiffstats
path: root/toolkit/components/pdfjs/content/web/viewer.css
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/pdfjs/content/web/viewer.css')
-rw-r--r--toolkit/components/pdfjs/content/web/viewer.css21
1 files changed, 19 insertions, 2 deletions
diff --git a/toolkit/components/pdfjs/content/web/viewer.css b/toolkit/components/pdfjs/content/web/viewer.css
index 063fa1632b..cbdaff2757 100644
--- a/toolkit/components/pdfjs/content/web/viewer.css
+++ b/toolkit/components/pdfjs/content/web/viewer.css
@@ -179,11 +179,22 @@
}
}
- canvas{
+ .annotationContent{
position:absolute;
width:100%;
height:100%;
pointer-events:none;
+
+ &.freetext{
+ background:transparent;
+ border:none;
+ inset:0;
+ overflow:visible;
+ white-space:nowrap;
+ font:10px sans-serif;
+ line-height:1.35;
+ user-select:none;
+ }
}
section{
@@ -192,6 +203,12 @@
pointer-events:auto;
box-sizing:border-box;
transform-origin:0 0;
+
+ &:has(div.annotationContent){
+ canvas.annotationContent{
+ display:none;
+ }
+ }
}
:is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a{
@@ -985,7 +1002,7 @@
background-color:var(--toggle-dot-background-color-on-pressed);
}
- &[aria-pressed="true"]:-moz-locale-dir(rtl)::before,
+ &[aria-pressed="true"]:-moz-locale-dir(rtl)::before,
&[aria-pressed="true"]:dir(rtl)::before{
translate:calc(-1 * var(--toggle-dot-transform-x));
}