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

flex: basis-size and full flex shorthand support #118

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

flex: basis-size and full flex shorthand support #118

wants to merge 3 commits into from

Conversation

buschtoens
Copy link
Contributor

New translations!

basis-size now works with a width / height hack.

flex now works as complete as possible. It supports all shorthand syntax versions defined in MDN and interprets <'flex-grow'> and <'flex-basis'>. We can't support <'flex-shrink'> due to technical limitations of the old specifications.

New properties, that are still untranslated:

  • align-content
  • algin-self
  • flex-shrink
  • flex-wrap
  • justify-content

@@ -20,9 +20,6 @@ align-content()
align-self()
vendor('align-self', arguments, only: webkit official)

flex-basis()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved down to translated section.

@buschtoens buschtoens mentioned this pull request Aug 14, 2012
@tj
Copy link
Collaborator

tj commented Aug 14, 2012

anyone have comments on this? I haven't fooled with the flex-box stuff much yet, last time I checked it was pretty buggy in general

@buschtoens
Copy link
Contributor Author

Can I use FlexBox? (Dark green: obsolete and/or buggy, Light green: new)

The obsolete model is relatively well supported (still buggy in some browsers). The new one isn't, but will be in the future and is the definitive way to go.

But of course, I'd like to hear further opinions on this!

@caseywebdev
Copy link
Contributor

I think you'll need to add @import 'flex' to lib/nib/index.styl. I cloned your repo and once I made that change it worked fine.

@buschtoens
Copy link
Contributor Author

Yup, you're right. I didn't add this file to the commit. Do you want to PR or shall I do it?

@caseywebdev
Copy link
Contributor

I just created one at #126

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

Successfully merging this pull request may close these issues.

None yet

3 participants