From d8f4cfa76f99c94460c38ef2d28f158c73ff9237 Mon Sep 17 00:00:00 2001 From: Chris Seelus Date: Sat, 27 Apr 2019 17:49:34 +0200 Subject: Implement dark color scheme for rescues layout --- .../middleware/templates/routes/_table.html.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'actionpack/lib/action_dispatch/middleware/templates/routes') 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 0242b706b2..2fb4650398 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb @@ -49,6 +49,17 @@ width: 80%; font-size: inherit; } + + @media (prefers-color-scheme: dark) { + #route_table tbody tr:nth-child(odd) { + background: #333; + } + + #route_table tbody.exact_matches, + #route_table tbody.fuzzy_matches { + color: #333; + } + } <% end %> -- cgit v1.2.3