Merge pull request #41000 from jonathanhefner/dark-mode-css
Tweak dark mode CSS
This commit is contained in:
commit
51bab5927c
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue