Skip to content

Commit

Permalink
Merge pull request #50 from wildbit/bug/dark-mode-apple
Browse files Browse the repository at this point in the history
Fix dark mode support on Apple devices
  • Loading branch information
derekrushforth authored Jun 11, 2020
2 parents d3a04af + f2d9d58 commit de82433
Show file tree
Hide file tree
Showing 22 changed files with 124 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist/compiled/comment-notification/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/example/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/invoice/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/password-reset-help/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/password-reset/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/receipt/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/trial-expired/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/trial-expiring/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/user-invitation/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/compiled/welcome/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/postmark-layouts/basic-full/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -419,6 +421,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/postmark-layouts/basic/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -414,6 +416,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions dist/postmark-layouts/plain/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
Expand Down Expand Up @@ -406,6 +408,11 @@
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
</style>
<!--[if mso]>
<style type="text/css">
Expand Down
4 changes: 4 additions & 0 deletions dist/stylesheets/basic-full.css
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,7 @@ p.sub {
background-color: #222 !important; }
.email-masthead_name {
text-shadow: none !important; } }

:root {
color-scheme: light dark;
supported-color-schemes: light dark; }
4 changes: 4 additions & 0 deletions dist/stylesheets/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,7 @@ p {
background-color: #222 !important; }
.email-masthead_name {
text-shadow: none !important; } }

:root {
color-scheme: light dark;
supported-color-schemes: light dark; }
4 changes: 4 additions & 0 deletions dist/stylesheets/plain.css
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,7 @@ p {
background-color: #222 !important; }
.email-masthead_name {
text-shadow: none !important; } }

:root {
color-scheme: light dark;
supported-color-schemes: light dark; }
2 changes: 2 additions & 0 deletions src/layouts/basic-full/content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title>{{ subject }}</title>
<link href="../../stylesheets/basic-full.css?__inline=true" />
<!--[if mso]>
Expand Down
2 changes: 2 additions & 0 deletions src/layouts/basic/content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title>{{ subject }}</title>
<link href="../../stylesheets/basic.css?__inline=true" />
<!--[if mso]>
Expand Down
2 changes: 2 additions & 0 deletions src/layouts/plain/content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="x-apple-disable-message-reformatting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title>{{ subject }}</title>
<link href="../../stylesheets/plain.css?__inline=true" />
<!--[if mso]>
Expand Down
5 changes: 5 additions & 0 deletions src/stylesheets/basic-full.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,8 @@ p.sub {
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
5 changes: 5 additions & 0 deletions src/stylesheets/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,8 @@ p {
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
5 changes: 5 additions & 0 deletions src/stylesheets/plain.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,8 @@ p {
text-shadow: none !important;
}
}

:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}

0 comments on commit de82433

Please sign in to comment.