Skip to content

Reorganize CSS files #54

@samglover

Description

@samglover

Currently the theme loads common.css using the enqueue_block_assets action, but that means it is not loaded if the block editor is not loaded, like on admin pages.

It would be clearer to load 4 core CSS files:

  • frontend.css for frontend styles apart from blocks
  • admin.css for admin-only styles apart from blocks
  • common.css for common styles apart from blocks
  • blocks.css for block styles

Then the only question is whether _elements.scss should be included in common.css, or blocks.css.

Note: this may impact the behavior of some child themes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions