mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Add dark mode support to emails
This commit is contained in:
parent
ca8a11f663
commit
88ed9639f5
2 changed files with 31 additions and 0 deletions
|
@ -201,6 +201,37 @@ $hasAdminTable = $hasAdminTable ?? false;
|
|||
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>
|
||||
</head>
|
||||
<body>
|
||||
|
|
BIN
www/images/logo-email-dark.png
Normal file
BIN
www/images/logo-email-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Add table
Add a link
Reference in a new issue