flex.less
Less mixins for flexbox layouts.
Last updated 10 years ago by dignifiedquire .
MIT · Original npm
$ cnpm install flex.less 
SYNC missed versions from official npm registry.

Flex.Less

A less mixin for flexbox.

Available Mixins

The mixin names and their values correspond to the official draft.

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

Browser Compatability

In Firefox < 22 you need to add the following snippet to every element that you set display: flex.

/*
 * Legacy Firefox implementation treats all flex containers
 * as inline-block elements.
 */
@-moz-document url-prefix() {
    #selector {
        width: 100%;
        -moz-box-sizing: border-box;
    }
}

Sources

Current Tags

  • 1.1.0                                ...           latest (10 years ago)

1 Versions

  • 1.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org