Skip to content

Commit b953f11

Browse files
committed
Does not add css @rules from referenced @import.
1 parent d7b4139 commit b953f11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/inet/lib/less/CssFormatter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ void format( LessParser parser, URL baseURL, StringBuilder target ) {
186186
case Formattable.MIXIN:
187187
((Mixin)rule).appendSubRules( null, this );
188188
break;
189+
case Formattable.CSS_AT_RULE:
190+
if( state.isReference ) {
191+
continue;
192+
}
193+
//$FALL-THROUGH$
189194
default:
190195
rule.appendTo( this );
191196
}

0 commit comments

Comments
 (0)