Closed
Description
Using Bootstrap 3 files, the (reference) import option doesn't handle media queries and "generative" structures.
Example 1
test.less
/* #BREAK-START */
@import (reference) "type.less";
/* #BREAK-END */
Produces:
test.css
/* #BREAK-START */
@media (min-width: 768px) {
.dl-horizontal dd:before,
.dl-horizontal dd:after {
content: " ";
/* 1 */
display: table;
/* 2 */
}
.dl-horizontal dd:after {
clear: both;
}
}
/* #BREAK-END */
So it works correctly until it hits the media query in the type.less file.
Example 2
The "make-grid" portions also transgress the (reference) import. Try:
/* #BREAK-START */
@import (reference) "grid.less";
/* #BREAK-END */
And basically the entire grid gets output (all the .make-* lines).
Example 1 is more interfering than example 2 as that means a modular approach, where media queries are bundled with the module/component will break the (reference) option for a project.