From 65b38f24ff990075edf035f1f6065b157b43723b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 20 Oct 2024 21:15:09 +0200 Subject: [PATCH] Remove `mask-image` duplication for the print/download buttons With the recent re-factoring of the viewer CSS rules we now have some duplication of the `mask-image` definitions for the print/download buttons in the secondaryToolbar; note https://github.com/mozilla/pdf.js/blob/17419de15709892935ece25ffd6af105a7e6814d/web/viewer.css#L1204-L1210 --- web/viewer.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index 559cf10914fdc..4b2b25ac9be0b 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -572,7 +572,7 @@ body { mask-image: var(--toolbarButton-editorStamp-icon); } -:is(#printButton, #secondaryPrint)::before { +#printButton::before { mask-image: var(--toolbarButton-print-icon); } @@ -582,7 +582,7 @@ body { } /*#endif*/ -:is(#downloadButton, #secondaryDownload)::before { +#downloadButton::before { mask-image: var(--toolbarButton-download-icon); }