Skip to content

Commit

Permalink
Added hover interaction to see through patches.
Browse files Browse the repository at this point in the history
Fixes #14.

Simple :hover styling does not work because patches consist of a <rect>
that is associated with, but not inside the corresponding <g>
  • Loading branch information
thvitt committed Nov 16, 2015
1 parent 3e085da commit 52c9a9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions css/document-transcript.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ svg.diplomatic rect.patchBackground {
fill-opacity: 0.8;
}


svg.diplomatic .element-patch {
transition: opacity 0.5s ease-out;
}

svg.diplomatic .patch-transparent {
opacity: 0.1;
}

/* various annotations */

svg.diplomatic .text.rewrite {
Expand Down

0 comments on commit 52c9a9d

Please sign in to comment.