diff options
author | Chris Seelus <chris@imeos.com> | 2019-04-27 17:49:34 +0200 |
---|---|---|
committer | Chris Seelus <chris@imeos.com> | 2019-05-18 12:32:53 +0200 |
commit | d8f4cfa76f99c94460c38ef2d28f158c73ff9237 (patch) | |
tree | 65e1b89497bbc48691e76a9e9b1efe0fb4e96485 /actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb | |
parent | a2708473b150b30a00c80d64f57a8c4b41a32fcc (diff) | |
download | rails-d8f4cfa76f99c94460c38ef2d28f158c73ff9237.tar.gz rails-d8f4cfa76f99c94460c38ef2d28f158c73ff9237.tar.bz2 rails-d8f4cfa76f99c94460c38ef2d28f158c73ff9237.zip |
Implement dark color scheme for rescues layout
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb | 11 |
1 files changed, 11 insertions, 0 deletions
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 %> <table id='route_table' class='route_table'> |