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: declarations vs atrules #17

Closed
tonyganch opened this issue Jul 14, 2014 · 2 comments
Closed

LESS: declarations vs atrules #17

tonyganch opened this issue Jul 14, 2014 · 2 comments

Comments

@tonyganch
Copy link
Owner

From csscomb/csscomb.js#255

@widthSmall:    ~"(max-width: 1300px)";

.Foo {
  @media @widthSmall {
      width:    400px;
  }
}

Throws error:

stack:  Error: Parsing error at test.less: Please check the validity of the CSS block starting from the line #1
    at cssToAST (/usr/lib/node_modules/csscomb/lib/csscomb.js:464:19)
    at processString (/usr/lib/node_modules/csscomb/lib/csscomb.js:351:20)
    at /usr/lib/node_modules/csscomb/lib/csscomb.js:323:39
    at Array.0 (/usr/lib/node_modules/csscomb/node_modules/vow/lib/vow.js:555:56)
    at Object.callFns [as _onImmediate] (/usr/lib/node_modules/csscomb/node_modules/vow/lib/vow.js:1148:35)
    at processImmediate [as _immediateCallback] (timers.js:336:15)
@rolebi
Copy link

rolebi commented Jul 27, 2015

Really annoying bug. It has became really common to have this kind of rules in LESS files :/

@shellscape
Copy link

👍 started running into this today

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

No branches or pull requests

3 participants