From f0f5a28c46a99ca67d7250d67fc604da4d9576f7 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 24 Mar 2015 14:12:55 +0300 Subject: [PATCH] fixup for checkbox pos; add wrapper & visual feedback --- popup.html | 17 ++++++++++------- popup.js | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/popup.html b/popup.html index 27062251..399f5285 100644 --- a/popup.html +++ b/popup.html @@ -42,6 +42,9 @@ #installed { margin-top: 0.5em; } + #installed.disabled { + opacity: 0.5; + } body > .actions { margin-top: 0.5em; } @@ -49,6 +52,9 @@ .actions > div, #unavailable { margin-bottom: 0.75em; } + .actions input, .actions label { + vertical-align: middle; + } #unavailable { border: none; @@ -105,12 +111,6 @@ color: inherit; text-decoration: underline; } - - #disableAll { - margin: 0 .5ex 0 0; - font-size: x-small; - vertical-align: text-bottom; - } @@ -126,9 +126,12 @@
+
+ + +
-
diff --git a/popup.js b/popup.js index 7fdba161..6eee1f49 100644 --- a/popup.js +++ b/popup.js @@ -193,5 +193,6 @@ tE("disableAll-label", "disableAllStyles"); loadPrefs({"disableAll": false}) document.getElementById("disableAll").addEventListener("change", function(event) { + document.getElementById("installed").classList.toggle("disabled", event.target.checked); notifyAllTabs({method: "styleDisableAll", disableAll: event.target.checked}); });