Created
July 2, 2014 13:44
-
-
Save ifcanduela/3701e20310eb24e2ce46 to your computer and use it in GitHub Desktop.
How to import a CSS/LESS file from another project into a LESS namespace, prefixing all imported styles.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* foreign.less */ | |
/* new file, "bridge" between imported styles and stylesheet */ | |
#export { | |
.styles() { | |
@import (less) "../../other-project/css/styles.css"; | |
} | |
} | |
/* old file */ | |
/* styles.less */ | |
@import "foreign.less" | |
.some-container { | |
#export > .styles(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment