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
Create SASS version #41
Comments
+1 for SCSS - we've already incorporated flexboxgrid into an SCSS build and once the build process is setup it is hands off for the rest of time. We incorporated Flexboxgrid into a major project a few months before you did the class name change. It would be nice to have an SCSS version where those names were configurable so we can keep up with the project more easily. |
What exactly are you planning? Mixins? |
I don't think Mixins are needed exactly. These are core structural classes and I don't need to rename them exactly in an ongoing dynamic way. I would like to be able to maintain the original names e.g. "column-1-hand" since I liked that convention and thought it was more expressive than "sm, xs, etc." In my mind the origin convention puts me in the user's mind, not in the mind of a developer. I know that sounds silly but I see the user using my app in my mind when I read "hand" and "lap" I see a screen when I read "sm" and "xs". In addition, it was used throughout a rather large code base extensively. I'm not completely against refactoring my classes, and currently I just use Beyond Compare to pull over the changes (it is only 1000 lines or so). If a SCSS version is planned then a way to make the naming convention dynamic would be great. |
@GLStephen Thanks for the feedback. Sorry if I caused you any stress. |
+1 for the SASS version. any idea for a ETA? |
I see that the less version if there also, can be it used in production? |
@chorijan Soon? Was going to push something this weekend. |
@kristoferjoseph okay thanks. I just wasn't sure if the production version was ready or not, but by seeing that the issue is still open, i realized it's still a work in progress. Thanks for all your hard work! |
+1, I needed it to rebuild grid to 24 collumns. |
Worked on it a bit today. Will post it in a branch tomorrow. |
+1 awesome job |
Here are the beginnings of the SASS version: https://github.com/kristoferjoseph/flexboxgrid/pull/55/files It is not working yet, but I wanted to share the direction I was heading with all interested parties. Adds a ton more variables, source as |
awesome feature, how can people help ? |
@guillaumevincent check out that branch and poke around. Feedback welcome. :) |
@GLStephen @stereokai @chorijan @einthusan @suenot @benmliang @guillaumevincent and @SlexAxton PR #55 is ready for feedback. It is "Feature Complete" so it could be pushed to master, but I'd love a sanity check on where it is at currently. The output is correct and the mixins I could see being useful on their own. |
I don't know a ton about SASS or what people need explicitly, so ignore my feedback but... this seems p good to me. |
At a glance it looks good. I will integrate into our SCSS flow this week and see what it emits. |
Thank @GLStephen & @SlexAxton |
#55 works well for me. I have a few thoughts on including flexboxgrid as part of a larger project. As a module I'd rather an import didn't output any code until I run a mixin. You could have a master mixin called flexboxgrid that does that, and into which you could pass basic config. Likewise it would be good to use '!default' on any global variables. |
Does not compile for me. Error: Invalid CSS after "... #{$sm}, #{$md}": expected selector or at-rule, was ", #{$lg};"
on line 34 of flexboxgrid.scss You may not @extend an outer selector from within @media
You may only @extend selectors within the same directive. What sass version should i be using? |
@gonsfx You can look at the package.json to see what version I am using for the build. It uses gulp-sass which uses node-sass... This is one of the reasons I didn't add a SASS version to begin with. Maintenance can be difficult. I can really only support the way I build this project ( which uses gulp ) as I would only be guessing as to the myriad other ways people are building in the wild. I don't use Thank you very much :) |
Don't get me wrong - i absolutely love the sass port and think it should be included in Nevertheless, compiling did not work. If you choose to add it to On a sidenote, you have an Problem is that the |
@gonsfx Wow, thanks for pointing that issue out. I added that shrink wrap file to try and fix the possible issue, seems it made an issue of it's own. I run update and see if it fixes it. When you say compiling did not work, are you saying when you run |
Yes, that is correct. Running |
@gonsfx Please pull and let me know if you still see errors. Thanks. |
Seems to work. Switched back from our fork to your #sass branch |
@gonsfx Awesome! Was wondering if you have any feedback on the proposal made in the LESS issue about project structure to assist in importing mixins etc. Ideally I would have something similar for each preprocessor. Thanks again for the feedback. |
Just a small note, in case you didn't know it:
|
@cmoralesweb Thanks. Please send a PR once 7.0 is released. I have moved away from gulp for the next release though due to all of the library version mismatches. |
Moved to grunt or to nothing at all? I can help with grunt/gulp if needed. I am tweaking the library so it generates %placeholders for the grid, in case you are interested. Similar to what I did here: https://github.com/cmoralesweb/atomic-foundation/blob/master/foundation-placeholders/_grid-placeholders.scss |
@cmoralesweb I have switched to npm run scripts. Much less headache involved. Grunt/Gulp scripts are overkill for simply running a file through a preprocessor. The overhead only begins to make sense at the scale of an application. Placeholders are cool, not sure that is a use case I want to support. Too much room for error on the user side leading to a possible ton of issues filed. It would be akin to a foot cannon mixing in grid properties into other selectors invisibly. |
@cmoralesweb @kristoferjoseph |
@gonsfx @kristoferjoseph Basically this: https://github.com/sass/libsass/wiki/The-LibSass-Compatibility-Plan node-sass is faster than ruby-sass, indeed, but it lacks some features from the official library, mainly full placeholder support. Regarding the "it compiles"... it does in node-sass, not in ruby-sass. I tried using it with ruby-sass (3.4) and it failed. I need ruby-sass in my development (I use placeholders a lot), so I can't import the grid along with the rest of my files, and it's not viable to have node-sass on one side and ruby-sass on the other. |
Just replace the use of extend with include for the columns. You’ll get a few extra lines of CSS, but SASS doesn’t allow extending within media queries. On Wed, Jun 10, 2015 at 1:12 PM, Carlos Morales notifications@github.com
|
@cmoralesweb thank you for the info, I appreciate it. Just so we are all on the same page, I will not be switching to ruby-sass nor will i be making placeholders for this grid. With that said, if you want to file a separate issue with the specific error you get when you compile with ruby-sass I can see if there is a change I can make to my code to at least avoid the error. Thanks! |
@kristoferjoseph I think @ffub nailed the error, so no need for a new issue, I guess 😄 I understand your decision about ruby/placeholders 👍 |
@cmoralesweb thank you for understanding. Been really trying to limit scope so I can ship this dang release that has been taking fo'evah. We can see if people are needing placeholders etc. after 7.0 drops and we can reconsider. Thanks again for being chill bud. |
Just mention me if you ever implement them and need my help. |
@cmoralesweb 👍 will do ❤️ |
@kristoferjoseph , please, keep in mind some things. // Somewhere in flexboxgrid-filename.scss
@mixin make-column($count) {
// column definition
}
// Somewhere in our projects
.article__controls {
@include make-column(6);
} |
+1 @miraage |
👍 |
What's missing now ? The Sass branch works like a charm here. It's just weird to see Grunt being switched to Gulp |
@Romainpetit There are still some incompatibilities with sass versions and compilers. The switch to gulp was done at the time to use the most compatible plugin. Just a note, not interested in debate over this change. Thanks. |
@kristoferjoseph Hey, just a note, in case you are interested. Libsass has released 3.3 (https://github.com/sass/libsass/releases/tag/3.3.2) and it (finally!!) supports '%placeholders' properly. So my concerns in my previous comment (#41 (comment)) are no longer valid. I know you never intended to switch to ruby, but still I thought it would be nice to point it out :) |
I will not be supporting any preprocessors. The workflow will be CSS only. 7.0 was stalled for way too long over preprocessor issues and I want this project to continue to look forward. Apologies. |
Because for some reason people love complicating their build script. ;)
The text was updated successfully, but these errors were encountered: