From 708b4bc6123193553ee81feddee8b16d8c0848e6 Mon Sep 17 00:00:00 2001 From: Peter Harpending Date: Wed, 20 Mar 2024 00:44:09 -0600 Subject: [PATCH] jr: gajumaru color scheme --- jrx/pages/gaju-colors.css | 19 ++++++++++++++++ jrx/pages/gb.html | 4 ++-- jrx/pages/popup.html | 48 ++++++++++++++++++++++++++++----------- jrx/src/popup.ts | 8 +++---- 4 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 jrx/pages/gaju-colors.css diff --git a/jrx/pages/gaju-colors.css b/jrx/pages/gaju-colors.css new file mode 100644 index 0000000..fa5b5b7 --- /dev/null +++ b/jrx/pages/gaju-colors.css @@ -0,0 +1,19 @@ +:root { + --b1: #FBFCFB; + --b2: #D6DAD8; + --b3: #B9BCb9; + --b4: #969A98; + --b5: #7C7C7C; + --b6: #545454; + --b7: #343434; + --b8: #0A0B0A; + + --g1: #c1d8c5; + --g2: #9ab6a1; + --g3: #88a28d; + --g4: #607e68; + --g5: #41664b; + --g6: #345c3e; + --g7: #224d2d; + --g8: #0a2f14; +} diff --git a/jrx/pages/gb.html b/jrx/pages/gb.html index 2317fc6..982a8df 100644 --- a/jrx/pages/gb.html +++ b/jrx/pages/gb.html @@ -6,14 +6,14 @@ - +
@@ -23,7 +52,7 @@
-
+
@@ -46,7 +75,7 @@ -
+
@@ -64,7 +93,7 @@ -
+
@@ -83,17 +112,10 @@
- -
+
diff --git a/jrx/src/popup.ts b/jrx/src/popup.ts index c2ae7b9..05c8904 100644 --- a/jrx/src/popup.ts +++ b/jrx/src/popup.ts @@ -253,12 +253,12 @@ pi_repop this_li.appendChild(rkp_ul); - // if active, make background green + // if active, make background "active" if (this_rkp.active) - this_li.style.background = 'green'; - // otherwise make background red and add activate li + this_li.classList.add('account-active'); + // otherwise make background "inactive" and add activate li else { - this_li.style.background = 'red'; + this_li.classList.add('account-inactive'); let activate_li = document.createElement('li'); let activate_a = document.createElement('a'); activate_a.innerHTML = 'Switch to this key';