SassFlexbox

SassFlexbox

Manage flexbox Sass easily.

Configuration

npm install sass-flexbox --save 

# or 

bower install zessx-sass-flexbox
@import 'whatever/path/to/modules/sass-flexbox'

Usage

SassFlexbox comes with a bunch of placeholders and mixins to help you use Flexbox without worrying about vendor prefixes. Whenever possible, extend placeholders are provided to allow you to not create so much duplicated code. Since they don't always work though (sass doesn't allow @extend in @media queries), there are also mixins available for all the shorthands.

Since some flexbox values are set with numbers or other measurements, there aren't useful predefined values for them, so there aren't any extend placeholders defined.

Display

Flex direction

Flex wrap

Order

Flex flow

Flex grow

Flex shrink

Flex basis

Flex

Justify content

Align items

Align self

Align content