-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Reference import not importing media queries #1469
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
I am having exactly the same problem and this seems to be a bug from less which can be found on http://stackoverflow.com/questions/21680181/less-import-reference-does-not-add-media-or-invoke-grid-mixins as well. Is this planned to get fixed shortly as this comment has been around for 7 months and haven't yet been fixed as of Less version 1.6.3. Hope this gets fixed shortly as its very annoying! |
I will prioritise this higher or you could always help out, its hard for me |
We are experiencing the same issue when importing bootstrap as a reference so any fix shortly would be much appreciated. Thanks for your help and constant support! |
Same issue here, and I apparently can't spell 😕 |
* master: Ditch out-of-the-box grid classes in favour of a semantic grid Fully import mixins until a fix is comitted for less/less.js#1469 Prepare semantic grid Adjust token input bottom padding in the Yeti theme Use more appropriate variable for the message list item separator Fix non-standard list item background color in the Slate theme Fix wrong variable being used by message list items More adjustments to themed Bootstrap navbar Improve footer variables Only treat activity item content as media bodies Manually extend themed Bootstrap navbar Import Bootstrap theme by reference Compile Bootswatch theme changes
I've fixed it, just waiting for WiFi to push it and then 1.7 should be |
Excellent news, it indeed looks like it's fixed :) |
How can I access the update? I compile less using the installed version in Node.Js through NPM, shall I just re-install it and it will be fixed or do we need to wait for version 1.7.0? Thanks |
The usage section on the website explains how to reference master on |
Many thanks! Will wait for 1.7 release if its going to be this week |
I had the exact same issue of not importing @media styles when using @import (reference) with version 1.3.11 of less. Updated to version 1.7.0 in global, but forgot about the local copy in grunt-contrib-less. Once I updated the dependencies in this and ran npm update the @media queries started working again. |
Hi all,
As stated in #1340, I want to use LESS in order to import Bootstrap classes without rendering the full stuff. As of now, it worked pretty well, however Bootstrap 3 came out and the grid system changed completely, including a new mixin that allows you to create your own column classesm, cf the doc.
The problem is the following:
Given the following code, it works perfectly fine
Output:
However if I try to make some reference import, here is what I get
Output:
As you can see, the media query part was dropped.
I don't know if this is a bug or a feature, but in any case this is an annoying behavior because it makes it hard to use bootstrap's mixins this way.
Also I'm sorry I couldn't provide a live example, however I'm not using a stable version, which might be why there is a bug :)
For information, I use the commit 4bedef4 of lessc
Many thanks!
The text was updated successfully, but these errors were encountered: