mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-27 02:25:47 +02:00
Move SVG text selection styles to pdf_viewer.css
draw_layer_builder.css, which originally included these styles, is not loaded in GECKOVIEW. This is because it also includes all the styles related to highlights and drawing, which are only supported in the main viewer. The new SVG-based highlights are also used in GECKOVIEW, so even though the JS logic for them lives in the DrawLayer builder, we need to move the CSS somewhere where we know it's going to be loaded.
This commit is contained in:
parent
10844326c7
commit
5d81fe5098
@ -14,16 +14,6 @@
|
||||
*/
|
||||
|
||||
.canvasWrapper {
|
||||
.selection {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
background: rgb(0 90 255 / 0.22);
|
||||
}
|
||||
|
||||
svg {
|
||||
transform: none;
|
||||
|
||||
|
||||
@ -120,6 +120,19 @@
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
}
|
||||
|
||||
/* Used by the DrawLayer, but we keep these styles here and not in
|
||||
* draw_layer_builder.css because we need them to be loaded in GECKOVIEW for
|
||||
* text selection. */
|
||||
.selection {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
background: rgb(0 90 255 / 0.22);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user