SomMeri / less4j

Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
145 stars 47 forks source link

Detached ruleset is not allowed outside of variable declaration. #363

Closed gaurav-viewlift closed 7 years ago

gaurav-viewlift commented 7 years ago

Can you please help me why I am getting this error. I am upgrading grails from 2 to 3.

FAILURE: Build failed with an exception.

ERROR 12:24 Detached ruleset is not allowed outside of variable declaration. 11: } 12: tr:nth-child(even) { 13: background: #F9F9F9;


Other issue

com.github.sommeri.less4j.core.ThreadUnsafeLessCompiler.compile(ThreadUnsafeLessCompiler.java:87) ~[less4j-1.17.2.jar:na] com.github.sommeri.less4j.Less4jException: Could not compile less. 45 error(s) occurred: ERROR 284:10 no viable alternative at input '{' in ruleset (which started at 164:1) 283: } 284: .thead { 285: thead {

ERROR 285:5 no viable alternative at input 'thead' in ruleset (which started at 284:3) 284: .thead { 285: thead { 286: background: rgb(255, 255, 255);