[Pkg-javascript-commits] [pdf.js] 40/414: Rename and reorder link annotation CSS
David Prévot
taffit at moszumanska.debian.org
Tue Jun 28 17:12:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 26379ddae29f8ee6d8f4356c2a23d1e939b2fae0
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Sun Dec 27 15:51:58 2015 +0100
Rename and reorder link annotation CSS
---
src/display/annotation_layer.js | 2 +-
test/annotation_layer_test.css | 2 +-
web/annotation_layer_builder.css | 28 ++++++++++++++--------------
3 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js
index 17cbb2a..07d2003 100644
--- a/src/display/annotation_layer.js
+++ b/src/display/annotation_layer.js
@@ -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 || '';
diff --git a/test/annotation_layer_test.css b/test/annotation_layer_test.css
index 9ea5dc1..6a1cf8d 100644
--- a/test/annotation_layer_test.css
+++ b/test/annotation_layer_test.css
@@ -27,7 +27,7 @@
position: absolute;
}
-.annotationLayer .annotLink > a {
+.annotationLayer .linkAnnotation > a {
position: absolute;
font-size: 1em;
top: 0;
diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css
index daeb48f..4e041f5 100644
--- a/web/annotation_layer_builder.css
+++ b/web/annotation_layer_builder.css
@@ -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;
-}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list