Skip to content

sass wont let me use css min() #2849

@saltnpixels

Description

@saltnpixels

I have css code like this:

--min: 250px;
width: min( var(--min), 100%);

Sass breaks with error:
Error: "var(--card-min)" is not a number for `min'

I think its trying to use some function called min and not css min. How can i tell it to not do this or ignore sass for this line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions