-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Using .container
as a mixin is impossible
#10357
Comments
Use |
Thanks for your attention to this, @mdo. Why can't the @media queries from
The result in |
The intention of the |
Thank you @mdo. If I understood you correctly, how about the change proposed in the above-listed PR? The result is that
yields:
Thus, |
Hi @dminkovsky Can't you just extend your class
|
I've tried this way and it's ok. Here is sample .wrapper {
&:extend(.container);
.block {
&:extend(.row);
.content {
&:extend(.col-md-8, .col-sm-12);
background: orange;
}
.aside {
&:extend(.col-md-4, .col-sm-12);
background: yellowgreen;
}
}
} |
@dineshdh: thanks for this-- I haven't had a chance to try it out but will test this and let you know soon. Would love to solve this with LESS, but I didn't know about |
So yeah, @dineshdh, your suggestion is totally sufficient. Finally had a chance to use this. No patch needed. Compiles with with However, the The thing is, recess or grunt-recess don't seem to be compatible with
What to do? Such a good solution here. Would love to use it. Thank you, |
Thank you for the time you put into this @mdo. Greatest appreciation.. |
…y by moving the width declarations within one class
…y by moving the width declarations within one class
Attempts to solve the problem based on feedback in twbs/bootstrap#10357 (comment)
I am trying to avoid semantically polluting my markup with Bootstrap's selectors. Rather than including Bootstrap's classes in my HTML, I would rather incorporate its rulesets in my own rulesets.
For example, say I've already got this HTML:
I want to make
div#content
a Boostrap.container
. To that end, I wish that in my LESS I could simply do:However, this doesn't really make my
.content
DIV a.container
because of the@media
queries ingrid.less
that are beyond the initial.container
ruleset. They don't get included in the resulting CSS for.content
. Am I missing some way I could do this with LESS?I've searched the issues list for this and the closest topic I found was "#10160". That PR doesn't seem to address this problem.
The text was updated successfully, but these errors were encountered: