From 8e439a446b87b3ff8efed40d37283452ddd1edb3 Mon Sep 17 00:00:00 2001 From: AntonObersteiner Date: Mon, 3 Jun 2024 13:25:51 +0200 Subject: [PATCH] remove other Toollist items, only List and Explain also reduce opacity loss for closed Toollist --- deploy/regexr.css | 6 +++++- deploy/regexr.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy/regexr.css b/deploy/regexr.css index 845ad8e..cec44eb 100644 --- a/deploy/regexr.css +++ b/deploy/regexr.css @@ -888,7 +888,7 @@ flex:0 2.5rem cursor:pointer } .doc>section.closed>header>:not(h1) { -opacity:.4 +opacity:.8 } .doc>section.closed>header>.max { transform:rotate(45deg) @@ -906,6 +906,10 @@ background:rgba(240,241,242,.2) #tooltip-signin ul.list .doc li,.container .header ul.file .doc li,.doc #tooltip-signin ul.list li,.doc .button,.doc .buttonbar>*,.doc .container .header ul.file li,.doc .segcontrol>* { background:rgba(240,241,242,.35) } +.doc .segcontrol>* { +color:#000; +font-weight:bold +} #tooltip-signin ul.list .doc li.selected,#tooltip-signin ul.list .doc li:hover,.container .header ul.file .doc li.selected,.container .header ul.file .doc li:hover,.doc #tooltip-signin ul.list li.selected,.doc #tooltip-signin ul.list li:hover,.doc .button.selected,.doc .button:hover,.doc .buttonbar>.selected,.doc .buttonbar>:hover,.doc .container .header ul.file li.selected,.doc .container .header ul.file li:hover,.doc .segcontrol>.selected,.doc .segcontrol>:hover { background:rgba(240,241,242,.75) } diff --git a/deploy/regexr.js b/deploy/regexr.js index 50d5b52..6111932 100644 --- a/deploy/regexr.js +++ b/deploy/regexr.js @@ -17939,7 +17939,7 @@ var regexr = (function () { this.contentEl = DOMUtils.query("> article > .content", el); this.resultEl = DOMUtils.query("> article > .inputtool > .result", el); this.toolListEl = DOMUtils.query(".toollist", this.headerEl); - let data = ["Replace", "List", "Details", "Explain"].map(val => ({ + let data = ["List", "Explain"].map(val => ({ label: val, id: val.toLowerCase() }));