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

Documentation for "Additional SCSS" #164

Open
lkosubek opened this issue Jan 24, 2015 · 0 comments
Open

Documentation for "Additional SCSS" #164

lkosubek opened this issue Jan 24, 2015 · 0 comments

Comments

@lkosubek
Copy link

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.

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

No branches or pull requests

1 participant