Skip to content

Documentation for "Additional SCSS" #164

Description

@lkosubek

While developing an own add-on, which uses plonetheme.onegov as dependency, I figured out that in my add-on configure.zcml I need to put the "include" directive after the one for the additional css file, like:

<configure
    xmlns:theme="http://namespaces.zope.org/plonetheme.onegov">

    <theme:add_scss path="resources/custom.scss" />
    <include package="plonetheme.onegov" />
</configure>

Otherwise the reversed order described in here https://github.com/OneGov/plonetheme.onegov would include the plonetheme.onegov configuration above the custom.scss, therefore "appending" the custom.scss as last sass file to the plonetheme.onegov files. So the variables of e.g. resources/sass/variables.scss seems to have more weight than the ones of custom.scss and custom.scss would have no effect than. Seems it work's like the other way around than the CSS cascade here.

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