-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Problems with "bootstrap.less" namespacing. #2535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You mean as in: #mynamespace {
.mixin() {
foo: bar;
}
}
.demo {
#mynamespace.mixin();
} Like that? |
I tried something almost exactly like that but without the foo: bar: what I should be more clear. I have four files I import into one file. That one file is then imported into my primary less file. From that I am attempting to access these mixins. Thanks for the reply too, feel like I'm losing my head here. On Friday, April 3, 2015, Matthew Dean [email protected] wrote:
|
|
I am trying to namespace using imports. Like:
Is that something that is possible? |
Your mistake is in |
Either way when you fix this
Though just |
That was actually a typo. The code you provided did work, but only for one mixin. The second returned this upon compiling: I thought I could namespace it for use like |
I have spent the last several hours reading, and googling how to accomplish this. My only goal is to @import four files containing mixins. However, they are borrowed and repurposed from bootstraps grid system so I need them namespaced. Why is this damn near impossible to do?
Can someone help me out here? Even a decent, in depth tutorial link on scoping would be great. I mean seriously, several hours just trying to import some damn mixins and variables? I see bootstrap imports mixins without any issue - but they dont use any name spacing.
The text was updated successfully, but these errors were encountered: