From 1da3096d3add5433a3f665f53acd46f65e806759 Mon Sep 17 00:00:00 2001 From: pppery Date: Mon, 9 Sep 2024 10:46:00 -0400 Subject: [PATCH 1/2] Dark mode support Per request at https://meta.wikimedia.org/wiki/MediaWiki_talk:Gadget-MoreMenu.js --- src/MoreMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MoreMenu.js b/src/MoreMenu.js index f0952a7..9d0d4fd 100644 --- a/src/MoreMenu.js +++ b/src/MoreMenu.js @@ -388,7 +388,7 @@ $( () => { white-space: nowrap; } .mm-submenu { - background: #ffffff; + background: var(--background-color-base, #ffffff); border: 1px solid #a2a9b1; min-width: 120px !important; ${ rightKey }: inherit !important; From 17a1610ab33d6a579d5a8d2ea75f2b83ae5e939f Mon Sep 17 00:00:00 2001 From: pppery Date: Sat, 14 Sep 2024 11:40:18 -0400 Subject: [PATCH 2/2] And the other skin too --- src/MoreMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MoreMenu.js b/src/MoreMenu.js index 9d0d4fd..02fb2cd 100644 --- a/src/MoreMenu.js +++ b/src/MoreMenu.js @@ -425,7 +425,7 @@ $( () => { white-space: nowrap; } .mm-submenu { - background: #ffffff; + background: var(--background-color-base, #ffffff);; box-shadow: 0 2px 6px -1px rgba(0,0,0,0.2); min-width: 120px !important; padding: 1px 10px;