Merge pull request #41000 from jonathanhefner/dark-mode-css

Tweak dark mode CSS
This commit is contained in:
Kasper Timm Hansen 2021-01-29 03:26:16 +01:00 committed by GitHub
commit 51bab5927c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 13 deletions

View File

@ -51,22 +51,13 @@
}
@media (prefers-color-scheme: dark) {
body {
background-color: #222;
color: #ECECEC;
}
#route_table tbody tr:nth-child(odd) {
background: #333;
background: #282828;
}
#route_table tbody tr:nth-child(even) {
background: #444;
}
#route_table tbody.exact_matches,
#route_table tbody.fuzzy_matches {
color: #333;
#route_table tbody.exact_matches tr,
#route_table tbody.fuzzy_matches tr {
background: DarkSlateGrey;
}
}
<% end %>

View File

@ -25,6 +25,21 @@
h2 { padding-left: 10px; }
@media (prefers-color-scheme: dark) {
body {
background-color: #222;
color: #ececec;
}
pre {
background-color: #333;
}
a { color: #fff; }
a:visited { color: #999; }
a:hover { color: #000; background-color: #fff; }
}
<%= yield :style %>
</style>
</head>