Mercurial > hg > documentViewer
changeset 597:fabd394302f1
image search layer uses different color for its annotations.
author | casties |
---|---|
date | Mon, 19 Nov 2012 13:15:57 +0100 |
parents | cd477b587ff4 |
children | 4fe11d2bd4ae |
files | css/docuviewer.css zpt/viewer/layer_image_search.zpt zpt/viewer/viewer_image.zpt |
diffstat | 3 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/css/docuviewer.css Mon Nov 19 12:30:36 2012 +0100 +++ b/css/docuviewer.css Mon Nov 19 13:15:57 2012 +0100 @@ -381,6 +381,17 @@ } /* + * image search + */ +div.col.main div.content.image.search div.annotator-hl { + background-color: rgba(255, 10, 10, 0.3); +} +div.col.main div.content.image.search div.annotator-hl:hover { + background-color: transparent; + border: 2px solid red; +} + +/* * xml page */ div.col.main div.content.xml {
--- a/zpt/viewer/layer_image_search.zpt Mon Nov 19 12:30:36 2012 +0100 +++ b/zpt/viewer/layer_image_search.zpt Mon Nov 19 13:15:57 2012 +0100 @@ -25,7 +25,6 @@ dlOpts.annotatorPluginSettings={'Store':{'loadFromSearch':{'$uriParam':'$uri','$otherParam':null,'pf':'$pf','query':'$query'}}}; "></script> </metal:block> - </head> <body> <!-- right-side options -->
--- a/zpt/viewer/viewer_image.zpt Mon Nov 19 12:30:36 2012 +0100 +++ b/zpt/viewer/viewer_image.zpt Mon Nov 19 13:15:57 2012 +0100 @@ -70,7 +70,7 @@ <div class="ruler top"> <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> </div> - <div class="content image"> + <div tal:attributes="class string:content image $viewLayer"> <div id="scaler"> <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" /> </div>