Webpage: Move preview image outside the link.

This commit is contained in:
ccd0 2015-03-12 01:08:45 -07:00
parent ff32f7a37c
commit 7541ac6131
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ function imagePreview() {
var span = document.createElement('span');
span.className = 'hover';
span.appendChild(img);
this.appendChild(span);
this.parentNode.insertBefore(span, this.nextSibling);
}
function storeInstall(e) {
if (!e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) {

View File

@ -46,7 +46,7 @@ a.screenshot > img {
span.hover {
display: none;
}
a:hover > span.hover {
a:hover + span.hover {
display: block;
position: fixed;
top: 0;