From 4a389498866bee8ebd5ac31ca618d84b1068403c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 30 Jul 2022 19:53:34 +0200 Subject: [PATCH 1/2] Remove unnecessary `color` CSS property This property is first of all unused, and secondly it contained a static value which means that it'd not have worked correctly in light/dark themes. --- web/viewer.css | 1 - 1 file changed, 1 deletion(-) diff --git a/web/viewer.css b/web/viewer.css index 5bd48ab59..78cb845e2 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -424,7 +424,6 @@ select { height: auto; padding: 0 4px; margin: 4px 2px; - color: rgba(217, 217, 217, 1); font-size: 12px; line-height: 14px; text-align: left; From 7543a9108636409f283fe2ab5e6550e1bf5f0584 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 30 Jul 2022 20:07:44 +0200 Subject: [PATCH 2/2] [Firefox] Remove a couple of `webkit` CSS rules related to editing Thanks to the CSS preprocessor, we can get rid of a couple of unnecessary CSS rules in the Firefox PDF Viewer. --- web/viewer.css | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index 78cb845e2..14aaf1773 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -531,13 +531,18 @@ select { .editorParamsToolbarContainer .editorParamsSlider::-moz-range-progress { background-color: black; } -.editorParamsToolbarContainer .editorParamsSlider::-moz-range-track, -.editorParamsToolbarContainer - .editorParamsSlider::-webkit-slider-runnable-track { + +/*#if !MOZCENTRAL*/ +.editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-runnable-track, +/*#endif*/ +.editorParamsToolbarContainer .editorParamsSlider::-moz-range-track { background-color: black; } -.editorParamsToolbarContainer .editorParamsSlider::-moz-range-thumb, -.editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-thumb { + +/*#if !MOZCENTRAL*/ +.editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-thumb, +/*#endif*/ +.editorParamsToolbarContainer .editorParamsSlider::-moz-range-thumb { background-color: white; }