-
-
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
Allow for fractions to be used within lost-center #361
Comments
cc @codebysubtract |
@peterramsing Hi Peter, as it was me who raised this enhancement, I thought it would be appropriate for me to at least have a look into solving it. I've done some work locally on it mainly using the stuff from lost-column. As you will imagine there is some duplication of code now and I'd like to address this first before I go any further. In terms of coding style is anything I should do/avoid in terms of contributing? I noticed some of the shorter function syntax, so I am right in thinking you're moving to ES6 going forward? All the best, Steve. |
@codebysubtract You are epic! ES6: As much ES6 that Node 4 can handle. LostGrid Node Support Making it work: I'd love to see what you have locally. If you wanna pair over Skype we could do that as well. If I had to do this off the top of my head I'd do some parsing at the beginning of the I think that'd work. What is the strategy you were going with? |
Hi Peter, I've forked the dev branch to make my changes. You can see what I've done so far here: https://github.com/codebysubtract/lost/tree/lost-center-fraction I've approached it more or less in the same way you've suggested. So I've checked for a fraction value (using a simple regex). If it's a fraction then I've used I've added a new function I've not had much of a chance to test it properly yet, but I have added some unit tests so far. If I'm way off, please let me know as I haven't really contributed to any open source before, so it's all a bit new! Steve. |
@codebysubtract Sounds like you're pushing logic to |
Apparently my mind went blank and I also had this in #344 😳 |
@peterramsing Glad you liked everything and thanks for accepting the pull request. I really enjoyed working on it. I'm hoping to have a little spare time coming up so I might be able to take a look at one of the others if you'd like? |
Is this a feature request or a bug report?
Feature Enhancement
What is the current behavior?
No
lost-center: <column-fraction>;
What is the behavior that you expect?
Being able to use a fraction w/in
lost-center
What's the motivation or use-case behind changing the behavior?
#294 (comment)
The text was updated successfully, but these errors were encountered: