summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-06 13:46:23 +0100
committerYorhel <git@yorhel.nl>2019-12-06 13:46:25 +0100
commitae57074d9ea7c1daebd46eba02dabd165fb60141 (patch)
tree4a2554822bfac47b4a8f5f4492957915bddd6702 /data
parentcd57e89ecfadbdc49b02fc0d19c043cdf7229a66 (diff)
Handle BBCode spoiler tags in CSS
Also fixes the hover effect for threads, which I broke earlier due to the threads moving to v2rw.js.
Diffstat (limited to 'data')
-rw-r--r--data/js/misc.js10
-rw-r--r--data/style.css6
2 files changed, 3 insertions, 13 deletions
diff --git a/data/js/misc.js b/data/js/misc.js
index 54c6ae69..e5b135d0 100644
--- a/data/js/misc.js
+++ b/data/js/misc.js
@@ -80,16 +80,6 @@ if(byId('listsel'))
};
-// BBCode spoiler tags
-(function(){
- var l = byClass('b', 'spoiler');
- for(var i=0; i<l.length; i++) {
- l[i].onmouseover = function() { setClass(this, 'spoiler', false); setClass(this, 'spoiler_shown', true) };
- l[i].onmouseout = function() { setClass(this, 'spoiler', true); setClass(this, 'spoiler_shown', false) };
- }
-})();
-
-
// 'more' / 'less' summarization of some boxes on VN pages
(function(){
function set(o, h) {
diff --git a/data/style.css b/data/style.css
index 1d417b43..6ab68d21 100644
--- a/data/style.css
+++ b/data/style.css
@@ -116,9 +116,9 @@ a.standout { font-weight: normal; color: $standout$; }
.hidden { display: none!important }
.invisible { visibility: hidden }
.linethrough { text-decoration: line-through }
-b.spoiler, b.spoiler a { color: #000!important; background-color: #000; font-weight: normal; }
-b.spoiler_shown { font-weight: normal }
-b.spoiler_shown a { color: $link$!important }
+b.spoiler, b.spoiler a { color: #000!important; background-color: #000; font-weight: normal; }
+b.spoiler:hover, b.spoiler:focus { color: $maintext$!important; background-color: transparent }
+b.spoiler:hover a, b.spoiler:focus a { color: $link$!important; background-color: transparent }
#maincontent div.quote {
padding: 1px 5px;