Merge pull request #6808 from timvandermeij/link-annotation-class

Rename and reorder link annotation CSS
This commit is contained in:
Jonas Jenwald 2015-12-27 16:40:50 +01:00
commit f17d6721e7
3 changed files with 16 additions and 16 deletions

View File

@ -217,7 +217,7 @@ var LinkAnnotationElement = (function LinkAnnotationElementClosure() {
* @returns {HTMLSectionElement}
*/
render: function LinkAnnotationElement_render() {
this.container.className = 'annotLink';
this.container.className = 'linkAnnotation';
var link = document.createElement('a');
link.href = link.title = this.data.url || '';

View File

@ -27,7 +27,7 @@
position: absolute;
}
.annotationLayer .annotLink > a {
.annotationLayer .linkAnnotation > a {
position: absolute;
font-size: 1em;
top: 0;

View File

@ -17,7 +17,20 @@
position: absolute;
}
.annotationLayer .annotLink > a:hover {
.annotationLayer .linkAnnotation > a {
position: absolute;
font-size: 1em;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.annotationLayer .linkAnnotation > a /* -ms-a */ {
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
}
.annotationLayer .linkAnnotation > a:hover {
opacity: 0.2;
background: #ff0;
box-shadow: 0px 2px 10px #ff0;
@ -55,16 +68,3 @@
.annotationLayer .popup p {
padding-top: 0.2em;
}
.annotationLayer .annotLink > a {
position: absolute;
font-size: 1em;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.annotationLayer .annotLink > a /* -ms-a */ {
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
}