1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Use media attribute for prefers-color-scheme (#4500)

This commit is contained in:
Yamagishi Kazutoshi 2020-03-23 21:37:35 +09:00 committed by GitHub
parent 9231ddbf7a
commit 64be95f4ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 122 additions and 125 deletions

View file

@ -1,5 +1,3 @@
@media (prefers-color-scheme: dark) {
body {
background-color: #000;
color: #ccc;
@ -122,4 +120,3 @@
fill: #ccc;
color: #ccc;
}
}

View file

@ -11,7 +11,7 @@
<% end %>
<link href="<%= root_path %>stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<%= root_path %>stylesheets/application-dark.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<%= root_path %>stylesheets/application-dark.css" media="screen and (prefers-color-scheme: dark)" rel="stylesheet" type="text/css" />
<% if rtl? %>
<link href="<%= root_path %>stylesheets/application-rtl.css" media="screen" rel="stylesheet" type="text/css" />
<% end %>