Merge pull request #7602 from opf/fix/30769-set-colors-for-mails-in-dark-mode

[30769] Set colors for mails in MacOS dark mode

[ci skip]
pull/7611/head
Oliver Günther 5 years ago committed by GitHub
commit 030693a56f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      app/views/layouts/project_mailer.html.erb
  2. 11
      app/views/layouts/user_mailer.html.erb

@ -32,8 +32,17 @@ See docs/COPYRIGHT.rdoc for more details.
body { body {
font-family: Verdana, sans-serif; font-family: Verdana, sans-serif;
font-size: 0.8em; font-size: 0.8em;
color:#484848; color: #484848;
background: #FFFFFF;
} }
@media (prefers-color-scheme: dark) {
body {
color: #CCC;
background: #222222;
}
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; } h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; } h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; } h2, h3 { font-size: 1.1em; }

@ -32,8 +32,17 @@ See docs/COPYRIGHT.rdoc for more details.
body { body {
font-family: Verdana, sans-serif; font-family: Verdana, sans-serif;
font-size: 0.8em; font-size: 0.8em;
color:#484848; color: #484848;
background: #FFFFFF;
} }
@media (prefers-color-scheme: dark) {
body {
color: #CCC;
background: #222222;
}
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; } h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; } h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; } h2, h3 { font-size: 1.1em; }

Loading…
Cancel
Save