summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-04-25 14:01:27 +0200
committerYorhel <git@yorhel.nl>2020-04-25 14:01:40 +0200
commit923c40bf397a61a6c6050752a4632a5f07db7349 (patch)
treeb94b347eb04169d4552984e18844a6c98519562a /data
parent0f88e511bd1b3fdcc290ee1cc5da69690e191137 (diff)
Delete unused charops CSS + bring back still-used rllinks dd JS
Turns out I deleted a bit too much in 493866f8114dc785433e401b4e3203516be9f71b, the producer pages still have the old external links dropdown.
Diffstat (limited to 'data')
-rw-r--r--data/js/misc.js19
-rw-r--r--data/style.css21
2 files changed, 19 insertions, 21 deletions
diff --git a/data/js/misc.js b/data/js/misc.js
index 9c151eae..35d04849 100644
--- a/data/js/misc.js
+++ b/data/js/misc.js
@@ -37,6 +37,25 @@
})();
+// external links dropdown for releases (/p+)
+(function(){
+ var l = byClass('rllinks');
+ for(var i=0; i<l.length; i++) {
+ var o = byName(l[i].parentNode, 'ul')[0];
+ if(o) {
+ l[i].links_ul = l[i].parentNode.removeChild(o);
+ setClass(l[i].links_ul, 'hidden', false);
+ ddInit(l[i], 'left', function(acr) {
+ return acr.links_ul;
+ });
+ if(l[i].href.match(/#$/)) {
+ l[i].onclick = function() { return false; };
+ }
+ }
+ }
+})();
+
+
// spam protection on all forms
setTimeout(function() {
for(var i=1; i<document.forms.length; i++)
diff --git a/data/style.css b/data/style.css
index 2bacbb1e..d8e3fcd5 100644
--- a/data/style.css
+++ b/data/style.css
@@ -650,28 +650,7 @@ div.chardetails table { float: left; width: 530px; }
div.chardetails table td.key { width: 100px; }
div.chardetails.charsep { margin-top: 30px }
-.charops label { float: right; margin: 8px 0 8px 10px; border: 0; outline: none; color: $link$; cursor: pointer; }
-.charops label.sec { border-left: 1px solid $border$; padding-left: 10px }
-.charops label.lst { margin: 8px 25px 8px 10px; }
-.charops input:checked + label { color: $maintext$; }
-.charops .radio_spoil0:checked ~ div .charspoil_1 { display: none; }
-.charops .radio_spoil0:checked ~ div .charspoil_2 { display: none; }
-.charops .radio_spoil1:checked ~ div .charspoil_2 { display: none; }
-.charops .radio_spoil2:checked ~ div .charspoil_-1 { display: none; }
-
-.charops .radio_spoil0:checked ~ .charspoil_1 { display: none; }
-.charops .radio_spoil0:checked ~ .charspoil_2 { display: none; }
-.charops .radio_spoil1:checked ~ .charspoil_2 { display: none; }
-.charops .radio_spoil2:checked ~ .charspoil_-1 { display: none; }
-
-.sexual_check + label { clear: both; }
-
-.charops .sexual_check:not(:checked) ~ div .sexual { display: none; }
-
-.traitrow td { overflow: hidden; }
-
-.traitrow .charspoil { margin-left: -1ch; margin-right: 1ch; }
/***** Char edit *****/