From 4bc2592ba9c7ad81144aa652dca6379e216d8320 Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Mon, 28 Dec 2020 23:14:49 +0530 Subject: [PATCH] Fixes the route table CSS for dark mode --- .../middleware/templates/routes/_table.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb index 99427fe30c..4c521377a2 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb @@ -51,10 +51,19 @@ } @media (prefers-color-scheme: dark) { + body { + background-color: #222; + color: #ECECEC; + } + #route_table tbody tr:nth-child(odd) { background: #333; } + #route_table tbody tr:nth-child(even) { + background: #444; + } + #route_table tbody.exact_matches, #route_table tbody.fuzzy_matches { color: #333;