Is there a way to nest the rules of a .css file under a selector by using @import
like you can when importing a .less file?
If you have a file, "x.less"
#x {
color: #000;
}
and file "main.less"
.scope {
@import "x.less";
}
compiling "main.less" results in
.scope #x {
color: #000;
}
However, if you have "y.css"
#y {
color: #111;
}
and change "main.less" to
.scope {
@import "y.css";
}
compiling "main.less" results in
.scope {
@import "y.css";
}
And if you have "z.css"
#z {
color: #222;
}
and change "main.less" to
.scope {
@import (inline) "z.css";
}
compiling "main.less" results in
.scope {
#z {
color: #222;
}