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

Merge pull request #9191 from timvandermeij/pushbuttons

Button widget annotations: implement support for pushbuttons
This commit is contained in:
Tim van der Meij 2017-11-27 22:31:07 +01:00 committed by GitHub
commit 3e34eb31d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 100 additions and 39 deletions

View file

@ -17,7 +17,8 @@
position: absolute;
}
.annotationLayer .linkAnnotation > a {
.annotationLayer .linkAnnotation > a,
.annotationLayer .buttonWidgetAnnotation.pushButton > a {
position: absolute;
font-size: 1em;
top: 0;
@ -26,11 +27,16 @@
height: 100%;
}
.annotationLayer .linkAnnotation > a /* -ms-a */ {
.annotationLayer .linkAnnotation > a /* -ms-a */ {
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
}
.annotationLayer .linkAnnotation > a:hover {
.annotationLayer .buttonWidgetAnnotation.pushButton > a /* -ms-a */ {
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
}
.annotationLayer .linkAnnotation > a:hover,
.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
opacity: 0.2;
background: #ff0;
box-shadow: 0px 2px 10px #ff0;