Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CSS nesting in the annotationLayer #17196

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 43 additions & 47 deletions test/annotation_layer_builder_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,55 @@

.annotationLayer {
position: absolute;
}

.annotationLayer .wasCanvas {
width: 100%;
height: 100%;
position: absolute;
}
.wasCanvas {
width: 100%;
height: 100%;
position: absolute;
}

.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
-webkit-appearance: none;
}
.buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
-webkit-appearance: none;
}

.annotationLayer
:is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
> a,
.annotationLayer .popupTriggerArea::after,
.annotationLayer
.fileAttachmentAnnotation:not(.hasFillAlpha)
.popupTriggerArea {
opacity: 0.2;
background: rgb(255 255 0);
box-shadow: 0 2px 10px rgb(255 255 0);
}
.annotationLayer .fileAttachmentAnnotation.hasFillAlpha {
outline: 2px solid yellow;
}
:is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder) > a,
.popupTriggerArea::after,
.fileAttachmentAnnotation:not(.hasFillAlpha) .popupTriggerArea {
opacity: 0.2;
background: rgb(255 255 0);
box-shadow: 0 2px 10px rgb(255 255 0);
}
.fileAttachmentAnnotation.hasFillAlpha {
outline: 2px solid yellow;
}

.annotationLayer .hasClipPath::after {
box-shadow: none;
}
.hasClipPath::after {
box-shadow: none;
}

.annotationLayer .linkAnnotation.hasBorder {
background-color: rgb(255 255 0 / 0.2);
}
.linkAnnotation.hasBorder {
background-color: rgb(255 255 0 / 0.2);
}

.annotationLayer .popupTriggerArea::after {
display: block;
width: 100%;
height: 100%;
content: "";
}
.popupTriggerArea::after {
display: block;
width: 100%;
height: 100%;
content: "";
}

.annotationLayer .popup :is(h1, p) {
margin: 0;
padding: 0;
}
.popup :is(h1, p) {
margin: 0;
padding: 0;
}

.annotationLayer .annotationTextContent {
position: absolute;
width: 100%;
height: 100%;
opacity: 0.4;
background-color: transparent;
color: red;
font-size: 10px;
.annotationTextContent {
position: absolute;
width: 100%;
height: 100%;
opacity: 0.4;
background-color: transparent;
color: red;
font-size: 10px;
}
}
Loading