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

Change light mode to apply CSS variables to the body #30839

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

renchap
Copy link
Member

@renchap renchap commented Jun 25, 2024

When using the automatic theme, there is no .theme-mastodon-light. But we know that the light theme CSS file will only be loaded when the light theme is enabled, so we can set the variables to body directly.

Also adjusted the alpha on modal background as it was near invisible.

When using the automatic theme, there is no `.theme-mastodon-light`. But we know that the light theme CSS file will only be loaded when the light theme is enabled, so we can set the variables to `body` directly.

Also adjusted the alpha on modal background as it was near invisible.
@renchap renchap force-pushed the fix-light-mode-css-vars branch from 71cd71d to 8fa426f Compare June 25, 2024 21:43
@renchap renchap enabled auto-merge June 25, 2024 21:53
@renchap renchap added this pull request to the merge queue Jun 25, 2024
Merged via the queue into mastodon:main with commit 8c0ff64 Jun 25, 2024
29 checks passed
@renchap renchap deleted the fix-light-mode-css-vars branch June 25, 2024 22:11
nomad-geek pushed a commit to dftba-club/mastodon that referenced this pull request Jul 3, 2024
justinwritescode pushed a commit to justinwritescode/mastodon that referenced this pull request Sep 15, 2024
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