From c63b44a0b304f7536ba9a801b64affa8d61f7733 Mon Sep 17 00:00:00 2001 From: Guy Sandler Date: Sun, 30 Aug 2026 19:57:42 -0700 Subject: [PATCH] yet another dark mode fix --- css/darkmodecss.js | 104 +++++++++++++++++++++++ js/content.js | 200 ++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 292 insertions(+), 12 deletions(-) diff --git a/css/darkmodecss.js b/css/darkmodecss.js index 0900972..2d01238 100644 --- a/css/darkmodecss.js +++ b/css/darkmodecss.js @@ -1239,6 +1239,18 @@ hr { #planner-today-btn:hover { background: var(--bcbackground-2) !important; } +/* The "Today" button keeps its filled surface (from the rule above) but + gets no outline. Two borders were boxing it in: the themed border the + rule above paints on the button itself, and — the sneaky one — + Instructure's Button variant draws its own light-gray border + (rgb(232,234,236)) on the inner [class$="-baseButton__content"] span, + which reads as a bright 1px ring on the dark chip. The icon buttons' + content spans carry no border, so only Today needs this. Transparent + (instead of border: none) keeps the button's exact dimensions. */ +#planner-today-btn, +#planner-today-btn [class$="-baseButton__content"] { + border-color: transparent !important; +} /* Instructure's Button variant paints its inner content span white (and a light gray on hover / white + inset shadow on active). That span covers the themed button background painted above, so the "Today" button still @@ -1250,6 +1262,98 @@ hr { background: transparent !important; box-shadow: none !important; } +/* Dashboard list-view trays ("Add To Do" / "My Grades" opened from the + header buttons): Instructure UI renders Tray panels as body-level + portals — body > span > span[...-tray] — with a hardcoded white + background. Paint the tray panel with the theme background; the tray + contents already pick up the theme text color. */ +body > span > span[class*="-tray"] { + background: var(--bcbackground-0) !important; +} +/* The Add To Do form ships its own