1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Remove unnecessary alpha-value from CSS rgb colors

Setting the alpha-value explicitly to `1` in `rgb` colors is unnecessary, since that's the default value, and this way we ever so slightly reduce the size of our CSS files.
Unfortunately I've not found a Stylelint rule to enforce this automatically, and the patch was generated using search and replace.
This commit is contained in:
Jonas Jenwald 2023-10-06 09:50:03 +02:00
parent 2453b79fa8
commit 4ebddcb092
9 changed files with 95 additions and 95 deletions

View file

@ -37,8 +37,8 @@
.fileAttachmentAnnotation:not(.hasFillAlpha)
.popupTriggerArea {
opacity: 0.2;
background: rgb(255 255 0 / 1);
box-shadow: 0 2px 10px rgb(255 255 0 / 1);
background: rgb(255 255 0);
box-shadow: 0 2px 10px rgb(255 255 0);
}
.annotationLayer .fileAttachmentAnnotation.hasFillAlpha {
outline: 2px solid yellow;

View file

@ -15,6 +15,6 @@
.xfaLink {
opacity: 0.2;
background: rgb(255 255 0 / 1);
box-shadow: 0 2px 10px rgb(255 255 0 / 1);
background: rgb(255 255 0);
box-shadow: 0 2px 10px rgb(255 255 0);
}