This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
sass-flexbox with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Manage Flexbox in Sass easily.
npm install sass-flexbox --save # or bower install zessx-sass-flexbox
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
@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.
@mixin flex-direction($direction: row)
@mixin flex-wrap($wrap: nowrap)
@mixin order($order: 0)
@mixin flex-flow($direction: row, $wrap: nowrap)
@mixin flex-grow($grow: 0)
@mixin flex-shrink($shrink: 1)
@mixin flex-basis($basis: auto)
@mixin flex($grow: 0, $shrink: 1, $basis: auto)
@mixin justify-content($justify: flex-start)
@mixin align-items($align: stretch)
@mixin align-self($align: auto)
@mixin align-content($align: stretch)
This package includes options to compile local sass files to spot check them, or to run tests with sassaby.
npm install to download dev dependencies.
To quickly spot-check anything you add or change, run
npm run output-dev. It will compile the
./dev/_dev.sass file to
To run tests, run
npm test. Tests are written in