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

[5.x] Fix CSS for dark mode cp login background #10399

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

heidkaemper
Copy link
Contributor

This PR fixes the CSS for the CP background when dark mode and the "rad" theme are enabled.

Most (if not all) browsers ignore a CSS background shorthand specification with color and multiple gradients. Therefore, this line was a problem:

background: #212223 radial-gradient(at 32.6% 91.5%, #142038 0px, transparent 50%), radial-gradient(at 87.4% 39.4%, #353945 0px, transparent 50%), radial-gradient(at 84.6% 52.5%, #171717 0px, transparent 50%);

Screenshot before:
before

Screenshot after the change:
after

@heidkaemper heidkaemper changed the title Fix CSS for dark mode cp login background [5.x] Fix CSS for dark mode cp login background Jul 5, 2024
@jasonvarga
Copy link
Member

Ah, thank you. That was my mistake then when reviewing #10284. That's where this issue was introduced.

@jasonvarga jasonvarga merged commit 1e91bbb into statamic:5.x Jul 5, 2024
16 of 17 checks passed
@heidkaemper heidkaemper deleted the fix-dark-rad-theme-background branch July 13, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants