PDF background-color css in Beta 29

135 views
Skip to first unread message

iseexuhs

unread,
Aug 8, 2023, 9:54:14 PM8/8/23
to zotero-dev
in Zotero Beta <=29, I use the following css to change the background-color of PDF.

.textLayer{display:block !important;background-color: ${bgColor} !important;}

But in Zotero Beta 29 and later, the css fails. I checked the source cods, but did not figure it out yet.

Would please the Zotero Team tell the what css I should use now?

Thanks very much.

Muise Destiny

unread,
Aug 9, 2023, 3:07:18 AM8/9/23
to zotero-dev
The new version of Zotero's pdf viewer exists under an new iframe (pdf/web/viewer.html), and the css of the iframe's parent document cannot act under the new iframe.

iseexuhs

unread,
Aug 9, 2023, 4:10:01 AM8/9/23
to zotero-dev
Thanks for your help.
Reply all
Reply to author
Forward
0 new messages