Skip to content

common CSS loading order #13

@fdelaneau

Description

@fdelaneau

When CSS files are defined in the template.json _common section, they should be listed first and not last in the stack, otherwise the CSS inheritance will be broken.

An even better solution would be to borrow from the Twig/Swig block inheritance behavior. Adding a {{ parent() }} or {{ common }} in the stylesheet list from a page would insert the files at this specific place. This would allow not only to prepend but to append and even insert within the pages CSS files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions