Self-taught CSS Flexbox
https://scrimba.com/g/gflexbox
- Webpack
- node-sass
- postcss-cli
- browser-sync
- sass-loader
- autoprefixer
- browser-sync-webpack-plugin
- Post CSS
- Extract Text Webpack Plugin
$ npm install --save-dev sass-loader node-sass webpack
$ npm install --save-dev postcss-cli autoprefixer
$ npm install --save-dev browser-sync-webpack-plugin
$ npm install --save-dev extract-text-webpack-plugin
$ npm install --save-dev postcss-loader
$ npm install --save-dev style-loader
$ npm install --save-dev babel-core
$ npm install --save-dev babel-loader
$ npm install --save-dev babel-preset-es2015
$ npm install --save-dev babel-preset-es2016
$ npm install --save-dev typescript ts-loader
$ npm install --save-dev sass-loader node-sass postcss-cli \
autoprefixer webpack browser-sync \
browser-sync-webpack-plugin
-
Main Axis
- Goes from: Left => Right (depends on flex-direction)
- display: flex;
- flex: 1 0 0;
- flex-grow, flex-shrink, flex-basis -flex-direction: column, row
- justify-content:
- flex-start, flex-end, center ...
- flex-wrap: nowrap, wrap
-
Cross Axis
- Goes from: Bottom => Top (depends on flex-direction)
- align-items:
- flex-start, flex-end, center ...
- align-self:
- flex-start, flex-end, center ...