diff --git a/global-dark.css b/global-dark.css index e9c7a036..ec95c397 100644 --- a/global-dark.css +++ b/global-dark.css @@ -23,6 +23,7 @@ --accent-1: hsl(180, 100%, 95%); --accent-3: hsl(180, 30%, 18%); --input-bg: var(--c95); + --red1: hsl(0, 85%, 65%); } textarea, input[type=url], diff --git a/global.css b/global.css index 6f782515..e934ea97 100644 --- a/global.css +++ b/global.css @@ -33,6 +33,7 @@ --accent-1: hsl(180, 100%, 15%); --accent-2: hsl(180, 50%, 40%); --accent-3: hsl(180, 40%, 69%); + --red1: hsl(0, 70%, 45%); } body { font: normal 12px var(--family); @@ -307,6 +308,17 @@ summary { position: absolute; } +.all-disabled #disableAll { + border-color: var(--red1); +} +.all-disabled #disableAll-label { + font-weight: bold; + color: var(--red1); +} +.all-disabled #disableAll-label .svg-icon { + fill: currentColor; +} + :focus, .CodeMirror-focused, /* Allowing click outline on text/search inputs and textareas */ diff --git a/js/dom.js b/js/dom.js index f7788698..53bf86dc 100644 --- a/js/dom.js +++ b/js/dom.js @@ -412,6 +412,10 @@ function waitForSelector(selector, {recur, stopOnDomReady = true} = {}) { const dom = {}; +prefs.subscribe('disableAll', (_, val) => { + $.rootCL.toggle('all-disabled', val); +}, {runNow: true}); + prefs.ready.then(() => { waitForSelector('details[data-pref]', { recur(elems) { diff --git a/manage.html b/manage.html index d1ccede7..e4f90d73 100644 --- a/manage.html +++ b/manage.html @@ -154,6 +154,11 @@