From ad969fca6ad691e026033b66c5ad50a9aaf3ffb9 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 19 Feb 2022 11:18:14 +0300 Subject: [PATCH] simplify css/html in popup (#1408) + reuse global checkbox-wrapper more --- global.css | 4 + install-usercss/install-usercss.css | 2 - manage/updater-ui.js | 3 +- popup.html | 59 ++++++------- popup/popup.css | 128 +++++++++------------------- popup/popup.js | 2 +- 6 files changed, 73 insertions(+), 125 deletions(-) diff --git a/global.css b/global.css index 304a88b7..926fa86f 100644 --- a/global.css +++ b/global.css @@ -203,6 +203,10 @@ input[type="checkbox"]:not(.slider):disabled + .svg-icon.checked + span { label { transition: color .1s; } +.checkbox-wrapper { + padding-left: 16px; + position: relative; +} select { -moz-appearance: none; diff --git a/install-usercss/install-usercss.css b/install-usercss/install-usercss.css index 740ca36f..b7489910 100644 --- a/install-usercss/install-usercss.css +++ b/install-usercss/install-usercss.css @@ -91,8 +91,6 @@ h1 { content: "v"; } .checkbox-wrapper { - padding-left: 16px; - position: relative; box-sizing: border-box; display: block; } diff --git a/manage/updater-ui.js b/manage/updater-ui.js index ce4a5b8c..d411d395 100644 --- a/manage/updater-ui.js +++ b/manage/updater-ui.js @@ -242,9 +242,8 @@ async function showUpdateHistory(event) { scrollToBottom(); $('#message-box-buttons button').insertAdjacentElement('afterend', - // TODO: add a global class for our labels // TODO: add a