Skip to content

Commit

Permalink
Dark mode support in Apple on inlined templates
Browse files Browse the repository at this point in the history
  • Loading branch information
derekrushforth committed Jun 11, 2020
1 parent 7e8596d commit 70496fe
Show file tree
Hide file tree
Showing 30 changed files with 210 additions and 0 deletions.
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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic-full/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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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 templates-inlined/basic/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 @@ -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
Loading

0 comments on commit 70496fe

Please sign in to comment.