Skip to content
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

Should flex.scss have an underscore prefix? #24

Closed
ecarlisle opened this issue Mar 20, 2015 · 6 comments
Closed

Should flex.scss have an underscore prefix? #24

ecarlisle opened this issue Mar 20, 2015 · 6 comments

Comments

@ecarlisle
Copy link

Hi,
Thank you for writing these mixins! I've found them very useful in my flexbox projects. I wondered if flex.scss should be named flex.scss to follow the SASS convention. I currently use bower to install the package and use bower-installer to rename the file with an underscore. It would be great if the file started with a "" by default.

Thoughts? Thanks again for the great set of mixins!

@mastastealth
Copy link
Owner

What you say totally makes sense. I was kinda hoping one of the previous commenters would chime in with an opinion. I don't want to mess anything up for previous users, but if there isn't any issue I can totally rename the file.

@ecarlisle
Copy link
Author

Sounds good. If you choose to rename the file, I might suggest _flexbox.scss or _flexbox_mixins.scss.
A more semantic name may make purpose clearer in a project.

Thanks again!

@tjFogarty
Copy link
Contributor

Totally agree. Can't see how it'll cause any issues as @import should grab the file with or without the leading underscore.

mastastealth added a commit that referenced this issue Mar 25, 2015
@ecarlisle
Copy link
Author

Cool, cool! Thanks and please let me know if I can make contributions.

@beldur
Copy link

beldur commented Apr 20, 2015

Is there a reason the file was renamed from flex to _flexbox instead from flex to _flex?
I had to change all my imports from @import 'sass-flex-mixin/flex'; to @import 'sass-flex-mixin/flexbox';

@mastastealth
Copy link
Owner

@beldur Well, as suggested above it is more "semantic" and clear what the mixin is for this way (although I guess that'd mean I'd want to change the repo name too...).

I was worried renaming would be an issue but I imagined that anyone who is already using it in a project through bower could just keep their current version. This is not an obligatory upgrade, there is no adjustments to the CSS itself, so I imagined you could just keep the project "as-is" and just get the latest for any new projects after that. I did wait a few days to get any feedback/arguments, but got none so I went forward with the decision. Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants