Skip to content

Commit

Permalink
apply dark theme to pdf viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangqingW committed Sep 28, 2023
1 parent 503d4c1 commit f0b29a8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1272,3 +1272,28 @@ html[data-theme=white] {
:root {
--ls-block-bullet-threading-width: 2px;
}

/* PDF viewer */
.extensions__pdf-settings-item.theme-picker>button.dark {
background-color: var(--ls-primary-background-color);
}
.extensions__pdf-container {
background-color: transparent;

&[data-theme=dark] {
background-color: #262E37; /* not sure how to do this without hardcoding */

.textLayer {
background-color: var(--ls-primary-background-color);
opacity: 1;
/* mix-blend-mode: multiply; */
}

.extensions__pdf-hls-text-region {
mix-blend-mode: normal;
opacity: .4;
}

}
}

0 comments on commit f0b29a8

Please sign in to comment.