1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Introduce some :is usage in the annotationLayer CSS

While this slightly reduces duplication in the CSS rules, some of the auto-formatting done by Prettier is perhaps not great. (Given the overall advantage of using Prettier, we'll probably have to simply accept this.)
This commit is contained in:
Jonas Jenwald 2023-04-18 12:42:13 +02:00
parent f1b005d7b8
commit fcc535706a
2 changed files with 30 additions and 40 deletions

View file

@ -25,26 +25,22 @@
position: absolute;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input,
.annotationLayer .buttonWidgetAnnotation.radioButton input {
.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
-webkit-appearance: none;
}
.annotationLayer .linkAnnotation > a,
.annotationLayer .buttonWidgetAnnotation.pushButton > a,
.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a,
.annotationLayer .popupTriggerArea {
opacity: 0.2;
background: rgba(255, 255, 0, 1);
box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
}
.annotationLayer .popupAnnotation,
.annotationLayer .popupWrapper {
.annotationLayer :is(.popupAnnotation, .popupWrapper) {
display: block;
}
.annotationLayer .popup h1,
.annotationLayer .popup p {
.annotationLayer .popup :is(h1, p) {
margin: 0;
padding: 0;
}