├── .gitignore ├── README.md ├── dist ├── images │ ├── dog_1.jpg │ ├── dog_2.jpg │ ├── dog_3.jpg │ ├── dog_4.jpg │ └── dog_5.jpg ├── index.html └── styles.css ├── package.json └── src ├── examples ├── card-group.html ├── card.html ├── centered-icon.html ├── centered-prompt.html ├── feature-list.html ├── form-footer.html ├── gallery.html ├── mosaic.html ├── photo.html ├── post.html ├── side-bar.html ├── site-header.html ├── stepper-input.html ├── stream.html └── tabs.html ├── images ├── dog_1.jpg ├── dog_2.jpg ├── dog_3.jpg ├── dog_4.jpg └── dog_5.jpg ├── index.css ├── index.jade └── styles ├── card-group.css ├── card.css ├── centered-icon.css ├── centered-prompt.css ├── feature-list.css ├── form-footer.css ├── gallery.css ├── mosaic.css ├── photo.css ├── post.css ├── side-bar.css ├── site-header.css ├── stepper-input.css ├── stream.css └── tabs.css /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | .sass-cache 4 | *.log 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flexbox Patterns 2 | 3 | This repository contains the original CSS used for the 4 | components at [www.flexboxpatterns.com](http://www.flexboxpatterns.com). 5 | Feel free to use these styles however you like! 6 | 7 | ## Getting started 8 | 9 | Assuming you have Node installed, you can install the project dependencies with 10 | `npm install`. This will install PostCSS and Autoprefixer; two critical tools 11 | for making your CSS cross-browser compatible. 12 | 13 | ## Commands 14 | 15 | `npm run build` 16 | 17 | This command will concatenate the source CSS files into a single CSS file, and 18 | then use PostCSS to add various vendor-prefixed properties. Open up 19 | `dist/index.html` to see a demo page of the various flexbox patterns in the 20 | browser. 21 | 22 | ## Things to keep in mind 23 | 24 | _I don't recommend copy-pasting these examples directly into production code._ 25 | I'm only trying to demonstrate different ways of using flexbox through these 26 | examples, so they may not incorporate some accessibility best practices (such as using semantic HTML5 elements and the `role` attribute). Before using this 27 | code in production you should make sure it meets your accessibility needs. 28 | -------------------------------------------------------------------------------- /dist/images/dog_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjcenizal/flexbox-patterns/f856b14c880dcb89cc85ec7ed95da3845763440f/dist/images/dog_1.jpg -------------------------------------------------------------------------------- /dist/images/dog_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjcenizal/flexbox-patterns/f856b14c880dcb89cc85ec7ed95da3845763440f/dist/images/dog_2.jpg -------------------------------------------------------------------------------- /dist/images/dog_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjcenizal/flexbox-patterns/f856b14c880dcb89cc85ec7ed95da3845763440f/dist/images/dog_3.jpg -------------------------------------------------------------------------------- /dist/images/dog_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjcenizal/flexbox-patterns/f856b14c880dcb89cc85ec7ed95da3845763440f/dist/images/dog_4.jpg -------------------------------------------------------------------------------- /dist/images/dog_5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjcenizal/flexbox-patterns/f856b14c880dcb89cc85ec7ed95da3845763440f/dist/images/dog_5.jpg -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |