From 28fa5b576bf5845ece2292e838653a4de08cb39a Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Sat, 26 Oct 2024 00:01:05 -0700 Subject: [PATCH] Tweak CSS Update clones --- src/css/main.css | 24 +++++++++++++++++++++--- src/css/permissions.css | 5 +++++ src/html/links.html | 4 ++-- src/html/options.html | 10 +++++----- src/html/permissions.html | 13 +++++++------ src/html/popup.html | 4 ++-- src/js/main.js | 2 +- src/js/options.js | 12 +++++------- src/js/popup.js | 2 +- 9 files changed, 49 insertions(+), 27 deletions(-) create mode 100644 src/css/permissions.css diff --git a/src/css/main.css b/src/css/main.css index dd6aeff..17434ca 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -1,19 +1,37 @@ /* CSS for global */ +:root, +[data-bs-theme='light'] { + --bs-emphasis-bg: var(--bs-white); + --bs-emphasis-bg-rgb: var(--bs-white-rgb); +} + +[data-bs-theme='dark'] { + --bs-emphasis-bg: var(--bs-black); + --bs-emphasis-bg-rgb: var(--bs-black-rgb); +} + svg { height: 1em; width: 1em; margin-bottom: 0.15em; } +#toast-container { + z-index: 3; +} + #back-to-top { position: fixed; bottom: 64px; right: 20px; display: none; - z-index: 6; + z-index: 3; } -#toast-container { - z-index: 5; +.text-ellipsis { + max-width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } diff --git a/src/css/permissions.css b/src/css/permissions.css new file mode 100644 index 0000000..1024b1d --- /dev/null +++ b/src/css/permissions.css @@ -0,0 +1,5 @@ +/* CSS for permissions.html */ + +body { + min-width: 340px; +} diff --git a/src/html/links.html b/src/html/links.html index c65cffb..cf6d14a 100644 --- a/src/html/links.html +++ b/src/html/links.html @@ -192,11 +192,11 @@