I’m using the Dawn theme. The Password page of my website changes font color depending on whether it’s viewed on mobile or desktop. While the desktop font color is in the correct color, it changes to white when viewed on mobile.
Any idea on what I’m doing wrong?
[REDACTED per request]
Hi @cck110925
You need to check assets/section-email-signup-banner.css file and this is code that makes it all white
@media screen and (max-width: 749px) {
.email-signup-banner:not(.banner--mobile-bottom) .banner__box:not(.email-signup-banner__box--no-image) {
background-color:transparent;
--color-foreground: 255, 255, 255;
--color-button: 255, 255, 255;
--color-button-text: 0, 0, 0
}
}
So you can just comment out colors part with
@media screen and (max-width: 749px) {
.email-signup-banner:not(.banner--mobile-bottom) .banner__box:not(.email-signup-banner__box--no-image) {
background-color:transparent;
/* --color-foreground: 255, 255, 255;
--color-button: 255, 255, 255;
--color-button-text: 0, 0, 0*/
}
}
that way you should get
1 Like
I do not think you need to put that color anywhere, because it picks up the color that is already on the desktop. Code I said you should comment out overwritten those to white.
But this would be your colors then, in variables
@media screen and (max-width: 749px) {
.email-signup-banner:not(.banner--mobile-bottom) .banner__box:not(.email-signup-banner__box--no-image) {
background-color:transparent;
--color-foreground: 199, 97, 28;
--color-button: 199, 97, 28;
--color-button-text: 255,255.255
}
}
That worked so well, thanks!
1 Like
Small typo in last code have dot instead of comma at last line so it should be
@media screen and (max-width: 749px) {
.email-signup-banner:not(.banner--mobile-bottom) .banner__box:not(.email-signup-banner__box--no-image) {
background-color:transparent;
--color-foreground: 199, 97, 28;
--color-button: 199, 97, 28;
--color-button-text: 255,255,255
}
}
1 Like