Skip to content

PostCSS plugin that includes `-webkit-` prefixes for all flexbox properties to ensure correct functionality in iOS browsers

License

Notifications You must be signed in to change notification settings

osjjames/postcss-flex-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostCSS Flex-iOS

Adds -webkit counterparts beneath all flex properties.

This is to address issues that multiple versions of iOS browsers have with the functionality of flexbox elements.

.foo {
  display: flex;
}

will be processed to:

.foo {
  display: flex;
  display: -webkit-flex;
}

Other flex properties are also addressed (full list below).

.foo {
  flex-direction: column;
}

will be processed to:

.foo {
  flex-direction: column;
  -webkit-flex-direction: column;
}

All the properties that will be processed are:

  • flex
  • flex-basis
  • flex-direction
  • flex-flow
  • flex-grow
  • flex-shrink
  • flex-wrap
  • align-items
  • justify-content

License

MIT © Ollie James

About

PostCSS plugin that includes `-webkit-` prefixes for all flexbox properties to ensure correct functionality in iOS browsers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages