-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Problem with flexbox in sass #197
Comments
@wellapex Could you provide a bit more code as reference to help see what's up? Thanks! 😄 |
I think the issue is that all the docs are using postcss and there's nohting on how to use it from sass or less etc |
@Keats I hear you. There should be a way to make it clearer for those using preprocessors as this has come up several times. In theory, there shouldn't be any special docs needed for preprocessors like Sass or LESS. The properties should be treated like |
From my point of view, not sure about @wellapex : |
You're totally right about getting something at the top of the README.md. Since inheriting this project last week I'm tying to prioritize what things to do and when. Documentation is coming soon but just not quite yet. This doc is going to be replaced soon but might help. I also have a testing project that has gulp working. |
@peterramsing It might be a good idea to create a few different repos:
And just make them as barebones as possible demos. Then you can link to them in the README as well as on the future website, as well as in these Issues. It'd also be nice to have just to confirm Lost works in all the preprocessors without special treatment. I know you've got a lot going on, so feel free to backburner this. I'd also try to start collecting other people's Lost projects in a Wiki or something to send people to who are curious about more complex uses. |
Completely missed the Installation link in the readme as it's part of the table of content but is actually a link |
@Keats Would you mind creating a Gist and copy the raw README.md in there and somehow identify anything that is confusing to you? You're more than welcome to explain exactly what is confusing but even if you just identify areas that don't make sense that would be amazing! I'll take that to help write update the existing README and also where I need to focus on the documentation. Hopefully that can help answer questions for you as well! No pressure of course. Let me know if I can help in any way with your app. PS: I'm not asking out of lazy, I promise. I've just gone through it enough that I don't spot the things that need attention. 😄 |
I'll do that next week but from a quick look the readme seems to be doing the job of a website, ie something like http://neat.bourbon.io/examples/ |
@Keats You're reading my mind. I'm currently looking for the best option for creating the docs. I'm hoping to have them out of the README soon. There is currently a page that has some examples but there is no documentation that goes with it. This is also coming soon. Not enough time in the day, I suppose. |
@Keats And thanks for your help! |
I'll just comment here rather than making a gist:
Overall as I said before, more stuff on the website since you can have visual examples there. |
@Keats This is helpful to know were some of the major pain-points are. Thanks for taking the time to note them here! Really appreciate it! |
Hi, We're using Gulp, which processes .less, then PostCSS, which we added to experiment with Lost. When trying to use global Lost vars, like :
Here's my Gulp output:
I found this closed issue but this is about how to escape CSS values in LESS. The Am I missing something? I don't know build systems very well. Curious if you are aware of this, before I get DevOps involved on my end... Much appreciated, |
Seems like LESS tries to parse all at-rules even though it seems like it's against the W3C spec... Opened an Issue with them. Maybe there's a way to escape it so PostCSS can do its thing. In the meantime, might I suggest one of these fine preprocessors? |
Thanks for the quick reply @corysimmons I prefer SASS as well. However, our build system has some things that rely on LESS and it's a switch our team is hesitant atm: we have an upcoming product launch and tons to do still. Til then, I'd like to continue exploring. Do I lose any abilities if I don't use global vars and declare Thanks, |
@sdale-fevo Here ya go: .escape-at-rules(@literal) {
@namespace ~"lostgrid; @{literal}";
}
.escape-at-rules("@lost flexbox flex"); It will produce: @namespace lostgrid;
@lost flexbox flex; Let me know if that works and we can add it to the Gotchas. |
Sweet, that worked! Thanks for quick reply. |
@peterramsing Could you add that to the gotchas then this can be closed? |
When using Less there needs to be a mixin to escape the @ rules. This adds some simple documentation for it.
I have problem with flex box.
When I write the code in my style.sass
Everything's broken!! How I must write this
@lost flexbox flex
in style.sass?The text was updated successfully, but these errors were encountered: