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

LESS: CSSComb parse error when using variable in selector #634

Open
richmilns opened this issue Apr 30, 2020 · 0 comments
Open

LESS: CSSComb parse error when using variable in selector #634

richmilns opened this issue Apr 30, 2020 · 0 comments

Comments

@richmilns
Copy link

With LESS, I'm seeing a parse error when LESS variables are used in selectors. Example LESS:

    @mni: .main-nav__item;

    .main-nav-active {
        max-height: 500px;
        
        @{mni} {
            opacity:1;
        }
    }

Output from VSCode:

[CSSComb]

Parsing error: /Users/me/Sites/example/less/modules/nav.less
Please check validity of the block starting from line #31
CSScomb Core version: 4.3.0

29 |         max-height: 500px;
31*|         @{mni} {
32 |             opacity:1;
33 |         }

Syntax: less
Gonzales PE version: 4.2.4

I believe this is valid LESS code as it compiles correctly.

Let me know if you would like any more info. Thanks!

@richmilns richmilns changed the title LESS: LESS: CSSComb parse error when using variable in selector Apr 30, 2020
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