Skip to content

Commit

Permalink
css
Browse files Browse the repository at this point in the history
  • Loading branch information
Dheeraj committed Jul 5, 2024
1 parent 3205091 commit 4e58416
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/style/pdf_viewer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* overrides for pdf_viewer.css from PDF.JS web viewer */

.textLayer {
z-index: 2;
opacity: 1;
mix-blend-mode: multiply;
display: flex;
}

.annotationLayer {
position: absolute;
top: 0;

z-index: 3;
}

html
body
.textLayer
> div:not(.PdfHighlighter__highlight-layer):not(.Highlight):not(.Highlight-emoji) {
opacity: 1;
mix-blend-mode: multiply;
}

.textLayer ::selection {
background: rgba(252, 232, 151, 1);
mix-blend-mode: multiply;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.textLayer {opacity: 0.5;}
}

/* Internet Explorer support method */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.textLayer {opacity: 0.5 }
}

/* Microsoft Edge Browser 12+ (All) - @supports method */
@supports (-ms-ime-align:auto) {
.textLayer {opacity: 0.5 }
}

0 comments on commit 4e58416

Please sign in to comment.