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

Merge pull request #16315 from Snuffleupagus/annotationLayer-CSS-is

Introduce some `:is` usage in the annotationLayer CSS
This commit is contained in:
Jonas Jenwald 2023-04-19 15:32:10 +02:00 committed by GitHub
commit 58b5eb89b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}