Coder Social home page Coder Social logo

mmillet / flexbox.less Goto Github PK

View Code? Open in Web Editor NEW

This project forked from proloser/flexbox.less

0.0 2.0 0.0 1.55 MB

Use Flexbox CSS Today! LESS mixins to maximize browser compatibility!

Home Page: http://proloser.github.com/Flexbox.less/

License: Do What The F*ck You Want To Public License

CSS 100.00%

flexbox.less's Introduction

Flexbox.less

CSS Flexbox mixins for LESS that adds back-compatibility for the 2009 syntax

All mixins use the latest flexbox syntax and merely add additional properties in the original syntax for you, as well as browser prefixes.

Demo

Checkout this demo page in different browsers.

Why?

Combining 2009 and Edge syntaxes will give you the greatest browser support coverage!

The old 2009 syntax has surprisingly good browser "support": Chrome, Firefox 2+, Safari 3.1+... Pretty much everything except IE 9- and Opera anything. I say "support" because the actual implementations were partial and differed a bit (hence the re-write).

Despite more support, it's not smart to be using the older syntax. The old spec is gone with the wind. Browsers might drop support for the old syntax in the future. At the least, it's very likely the new syntax is easier to understand and will be implemented more deeply and more consistently. Browsers that don't yet support Flexbox will implement the new spec, which is in "CR" (Candidate Recommendation) status.

New syntax support is: Chrome 21+, Opera (& Opera Mobile) 12.1+, and Blackberry 10+.

- Chris Coyier

References

Contribute

I will slowly be adding every flexbox property as I find a few spare minutes here and there. But if you are impatient and want a specific property added, feel free to open a Pull Request. Please try to add backwards-compatibility properties for the 2009 syntax to add a much larger range of browser support.

Values aren't always identical across syntaxes, in which case you can use .flex-direction() as an example of how to accomplish this.

Conflicts

At this time, I'm unaware of any problems that may arise from using both the old and new syntax side by side in this manner. If you find problems, feel free to open an issue, just be sure to provide the browser version number.

TODO List

  • align-content (pending)
  • align-items (pending)
  • align-self (pending)
  • flex-basis (pending)
  • flex-flow (pending)
  • flex-grow (pending)
  • flex-shrink (pending)
  • justify-content (pending)

License

flexbox.less's People

Contributors

cah-mikeearley avatar proloser avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.