Add dark mode support to emails

This commit is contained in:
Alex Cabal 2024-12-23 15:07:06 -06:00
parent ca8a11f663
commit 88ed9639f5
2 changed files with 31 additions and 0 deletions

View file

@ -201,6 +201,37 @@ $hasAdminTable = $hasAdminTable ?? false;
border: none; border: none;
} }
<? } ?> <? } ?>
@media(prefers-color-scheme: dark){
body{
background: #2c3035;
}
div.body{
background: transparent;
color: #fff;
}
a,
a:link,
a:visited{
color: #fff;
}
a:hover{
color: #4f9d85;
}
<? if($letterhead){ ?>
div.body.letterhead{
background-image: url("https://standardebooks.org/images/logo-email-dark.png");
}
<? } ?>
div.footer img{
filter: invert(100%);
}
}
</style> </style>
</head> </head>
<body> <body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB