Skip to content

Strange behavior when @import is used #397

@aflubenov

Description

@aflubenov

I got "vars.less" file, its content is:
// variables
@siteHeaderBackgroundColor : #ff0000;


Then I have the following rules:

@import '/less/front-2.3.1/vars.less';
.site-header
{
background-color : @siteHeaderBackgroundColor;
}

@siteHeaderBackgroundColor: #fafafa;


The result of compiling it is
.site-header
{
background-color: #ff0000;
}

when the correct result must be:
.site-header
{
background-color: #fafafa;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions