From e917213e81d40b00cefd7f493fcbabb450ccb10d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 13 Apr 2020 09:19:58 -0400 Subject: [PATCH] Sixth pass to re-design the dashboard Related commits: - https://github.com/gorhill/uBlock/commit/0662767dd62731320473e9c96a17077145a00610 - https://github.com/gorhill/uBlock/commit/99b2a0a761eec860132bc08680710c3c785f90b6 - https://github.com/gorhill/uBlock/commit/a8e3118feafd5c2d7c3e3d03727beff17f9928b4 - https://github.com/gorhill/uBlock/commit/453f5450b6e6550618bf97b5b0541f5f46c35d8e - https://github.com/gorhill/uBlock/commit/a45a21f337216d7d4aaddb5a454ed4842eca3806 This commit focuses on implementing the use of CSS `var(...)` throughout so as to make it easy to create themes -- a requirement for uBO to support a dark theme. There is still work to do regarding converting uBO's CSS to completely support `var(...)` but being able to start using theming will help complete and fine tune CSS `var(...)` support. Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/401 --- src/3p-filters.html | 2 +- src/cloud-ui.html | 7 +- src/css/3p-filters.css | 10 +- src/css/cloud-ui.css | 65 +++++------ src/css/common.css | 20 ++-- src/css/dashboard-common.css | 10 +- src/css/dashboard.css | 8 +- src/css/document-blocked.css | 23 ++-- src/css/dyna-rules.css | 38 ++++--- src/css/popup-fenix.css | 175 +++++++++++++---------------- src/css/popup.css | 207 ++++++++++++++++------------------- src/css/settings.css | 2 +- src/css/shortcuts.css | 6 - src/css/themes/default.css | 89 +++++++++++++-- src/js/3p-filters.js | 24 ++-- src/js/dyna-rules.js | 2 +- src/js/popup-fenix.js | 19 ++-- src/js/popup.js | 19 ++-- src/popup-fenix.html | 2 +- src/popup.html | 2 +- src/shortcuts.html | 3 +- 21 files changed, 381 insertions(+), 352 deletions(-) diff --git a/src/3p-filters.html b/src/3p-filters.html index 997e614fa..2e9958fdf 100644 --- a/src/3p-filters.html +++ b/src/3p-filters.html @@ -41,7 +41,7 @@