Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNTOR-3640 - Use light mode only #5255

Merged
merged 9 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/emails/components/EmailHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const EmailHero = (props: Props) => {
return (
<mj-wrapper padding="24px 16px">
<mj-section
padding="10px 12px"
padding="10px 6px"
css-class="hero_background"
border-radius="16px 16px 0 0"
>
Expand Down
35 changes: 21 additions & 14 deletions src/emails/templates/HeaderStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,33 @@ export const HeaderStyles = () => {
supported-color-schemes: light dark;
}

@media (prefers-color-scheme: light) {
.footer_background {
background-image: url(${process.env.SERVER_URL}/images/email/footer-bg-shapes.png);
background-position: center bottom;
background-repeat: no-repeat;
}
.footer_background {
background-image: url(${process.env.SERVER_URL}/images/email/footer-bg-shapes.png);
background-position: center bottom;
background-repeat: no-repeat;
color: #000000;
}

@media (prefers-color-scheme: light) {
.hero_background {
background-image: url(${process.env.SERVER_URL}/images/email/hero-bg-gradient.png);
background-repeat: repeat;
background-color: #e4d2ff;
background-position-x: 0;
}
codemist marked this conversation as resolved.
Show resolved Hide resolved
.hero_background {
background-image: url(${process.env.SERVER_URL}/images/email/hero-bg-gradient.png);
background-repeat: repeat;
background-color: #e4d2ff;
background-position-x: 0;
color: #ffffff;
}

@media (prefers-color-scheme: dark) {
.hero_background {
background: none !important;
background: none;
}

.footer_background {
background: none;
}

p {
background: #1e1e1e !important;
color: #ffffff !important;
codemist marked this conversation as resolved.
Show resolved Hide resolved
}
}
`;
Expand Down
Loading