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

Global styles: output :root selector for CSS custom properties #42084

Merged
merged 5 commits into from
Mar 26, 2024

Commits on Mar 18, 2024

  1. Replacing usages of body with :root for generated CSS properties, pre…

    …sets and some layout settings. This is a naive replacement without much thought put into which styles should be printed under :root and which under body.
    
    I've limited the use of root to CSS vars, with the exception of `--wp--style--root--padding-X`, which are generated along with other styles as part of PROPERTIES_METADATA
    This commit only affects the frontend. No editor changes have been made yet.
    ramonjd committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    54bc3e7 View commit details
    Browse the repository at this point in the history
  2. Update tests after rebase

    ramonjd committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    1660e5e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    184ca75 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    50a3a05 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Use const for root selector

    ramonjd committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    8389580 View commit details
    Browse the repository at this point in the history