Skip to content

Calculations with params only work with interpolation #46

Open
@baldvinhansson

Description

Just in case someone is battling this issue.

height: calc(100vh - $header-height);
will not work - however

height: calc(100vh - #{$header-height});
does work.

Not sure if this is a bug in WebOptimizer.Sass or if maybe I've been writing incorrect SCSS to this date. The syntax without interpolation worked fine in the WebCompiler VS extension but had to be changed when I started using WebOptimizer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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