Skip to content
Permalink
Browse files

Make it so annotations are added with a more unique class name, updat…

…e annotations.css
  • Loading branch information...
jccr committed Sep 18, 2015
1 parent feea867 commit 7b02bb819ce7240a1d627b8eef9ad95084557e6d
Showing with 3 additions and 54 deletions.
  1. +2 −53 src/css/annotations.css
  2. +1 −1 src/js/EpubReader.js
@@ -1,62 +1,11 @@
/* The z-index is to ensure that the bookmark is accessible even if it's overlayed on a highlight/underline of some type */
.comment {
/*
background-image : url("/images/comment_clickable_icon.png");
background-repeat : no-repeat;
*/
background-color: blue;
opacity : 0.5;
z-index : 10;
}
.hover-comment {
/*
background-image : url("/images/comment_clickable_icon.png");
background-repeat : no-repeat;
*/
background-color: blue;
opacity : 1.0;
z-index : 10;
}

.bookmark {
position : fixed;
top : "0px";
right : "0px";
background-color: red;
}

.highlight {
.rd-highlight.test-highlight {
position: absolute;
opacity: 0.2;
background-color: red;
}

.hover-highlight {
position: absolute;
opacity: 0.4;
background-color: red;
}

.underline-range {
.rd-highlight.hover-test-highlight {
position: absolute;
}

.underline-range > .underline {
position: relative;
height: 15%;
opacity: 0.2;
background-color: red;
}

.underline-range > .hover-underline {
position: relative;
height: 15%;
opacity: 0.4;
background-color: red;
}

.underline-range > .transparent-part {
position: relative;
height: 85%;
background-color: transparent;
}
@@ -538,7 +538,7 @@ Helpers){

// Set handlers for click events
$(".icon-annotations").on("click", function () {
readium.reader.plugins.highlights.addSelectionHighlight(Math.floor((Math.random()*1000000)), "highlight");
readium.reader.plugins.highlights.addSelectionHighlight(Math.floor((Math.random()*1000000)), "test-highlight");
});

var isWithinForbiddenNavKeysArea = function()

0 comments on commit 7b02bb8

Please sign in to comment.
You can’t perform that action at this time.