From dede4299dc215eeb5425ff2b5236dcae5aa1be5b Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 26 Apr 2016 09:23:38 -0400 Subject: [PATCH] fix hover a bit --- contrib/static/nntpchan.js | 1 + contrib/static/site.css | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 224859f..827d8af 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -99,6 +99,7 @@ function inject_hover(prefix, el, parent) { wrapper.setAttribute("class", "hover "+linkhash); if (j == null) { // not found? + wrapper.setAttribute("class", "hover notfound-hover "+linkhash); wrapper.appendChild(document.createTextNode("not found")); } else { // wrap backlink diff --git a/contrib/static/site.css b/contrib/static/site.css index bcdf1ab..dba9d50 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -21,7 +21,12 @@ section { position: absolute; } -.hover > div > .post { +.notfound-hover { + background: #EEF2FF; + padding: 10px; +} + +.hover > div > .post , .notfound-hover { box-shadow: 0 0 10px rgba(0,0,0,0.55); }