sass - Is it possible to @extend a class defined in a .css file to a .scss file? -


for example:

app.scss

@import url('orange.css');   @import 'navel.scss'; 

orange.css

.orange {     color: orange;   } 

navel.scss

.navel {       @extend .orange;   } 

in sass if add

@import "test.css"; 

or

@import url("test.css");

it compiled pure css @import directive. because file .css extension sass preprocessor things pure css , code inside not involved in sass language operations. in example, if try extend .orange get:

the selector ".orange" not found. 

shortly: extending possible if use sass files.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -