├── .gitignore ├── LICENSE.txt ├── package.json ├── css ├── flex-justify-content.css ├── flex-justify-content.min.css ├── css-flex-justify-content.min.css └── css-flex-justify-content.css ├── src └── css-flex-justify-content.css └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # List of files for git to ignore 2 | 3 | .DS_Store 4 | .AppleDouble 5 | .LSOverride 6 | 7 | # Icon must end with two \r 8 | Icon 9 | 10 | 11 | # Thumbnails 12 | ._* 13 | 14 | # Files that might appear on external disk 15 | .Spotlight-V100 16 | .Trashes 17 | 18 | # Directories potentially created on remote AFP share 19 | .AppleDB 20 | .AppleDesktop 21 | Network Trash Folder 22 | Temporary Items 23 | .apdisk 24 | 25 | # Vim 26 | Session.vim 27 | 28 | # Node 29 | node_modules/* 30 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | ISC License (ISC) 2 | Copyright (c) 2018, Adam Morse 3 | 4 | Permission to use, copy, modify, and/or distribute this software for any 5 | purpose with or without fee is hereby granted, provided that the above 6 | copyright notice and this permission notice appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 9 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 10 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 11 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 13 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14 | PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css-flex-justify-content", 3 | "style": "flex-justify-content.css", 4 | "version": "1.0.8", 5 | "homepage": "http://github.com/mrmrs/css-flex-justify-content", 6 | "description": "Css module of single purpose classes for flex justify content", 7 | "keywords": [ 8 | "css", 9 | "oocss", 10 | "flex-justify-content" 11 | ], 12 | "css-flex-justify-content": { 13 | "type": "git", 14 | "url": "http://github.com/mrmrs/css-flex-justify-content.git" 15 | }, 16 | "bugs": { 17 | "url": "https://github.com/mrmrs/css-flex-justify-content/issues", 18 | "email": "hi@mrmrs.cc" 19 | }, 20 | "author": { 21 | "name": "Adam Morse", 22 | "email": "hi@mrmrs.cc", 23 | "url": "http://mrmrs.cc" 24 | }, 25 | "contributors": [ 26 | { 27 | "name": "Adam Morse", 28 | "email": "hi@mrmrs.cc" 29 | } 30 | ], 31 | "license": "MIT", 32 | "devDependencies": { 33 | "tachyons-cli": "^1.3.0" 34 | }, 35 | "scripts": { 36 | "start": "tachyons src/css-flex-justify-content.css > css/css-flex-justify-content.css && tachyons src/css-flex-justify-content.css --minify > css/css-flex-justify-content.min.css && tachyons src/css-flex-justify-content.css --generate-docs --package=../../package.json > readme.md" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /css/flex-justify-content.css: -------------------------------------------------------------------------------- 1 | /* 2 | FLEX JUSTIFY CONTENT 3 | */ 4 | 5 | .jc-fs { justify-content: flex-start; } 6 | .jc-f3 { justify-content: flex-end; } 7 | .jc-c { justify-content: center; } 8 | .jc-sb { justify-content: space-between; } 9 | .jc-sa { justify-content: space-around; } 10 | .jc-i { justify-content: inherit; } 11 | 12 | @media screen and (min-width: 48em) { 13 | .jc-fs-ns { justify-content: flex-start; } 14 | .jc-f3-ns { justify-content: flex-end; } 15 | .jc-c-ns { justify-content: center; } 16 | .jc-sb-ns { justify-content: space-between; } 17 | .jc-sa-ns { justify-content: space-around; } 18 | .jc-i-ns { justify-content: inherit; } 19 | } 20 | 21 | @media screen and (min-width:48em) and (max-width: 64em) { 22 | .jc-fs-m { justify-content: flex-start; } 23 | .jc-f3-m { justify-content: flex-end; } 24 | .jc-c-m { justify-content: center; } 25 | .jc-sb-m { justify-content: space-between; } 26 | .jc-sa-m { justify-content: space-around; } 27 | .jc-i-m { justify-content: inherit; } 28 | } 29 | 30 | @media screen and (min-width: 64em) { 31 | .jc-fs-l { justify-content: flex-start; } 32 | .jc-f3-l { justify-content: flex-end; } 33 | .jc-c-l { justify-content: center; } 34 | .jc-sb-l { justify-content: space-between; } 35 | .jc-sa-l { justify-content: space-around; } 36 | .jc-i-l { justify-content: inherit; } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /css/flex-justify-content.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | FLEX JUSTIFY CONTENT 3 | */ 4 | 5 | .jc-fs { justify-content: flex-start; } 6 | .jc-f3 { justify-content: flex-end; } 7 | .jc-c { justify-content: center; } 8 | .jc-sb { justify-content: space-between; } 9 | .jc-sa { justify-content: space-around; } 10 | .jc-i { justify-content: inherit; } 11 | 12 | @media screen and (min-width: 48em) { 13 | .jc-fs-ns { justify-content: flex-start; } 14 | .jc-f3-ns { justify-content: flex-end; } 15 | .jc-c-ns { justify-content: center; } 16 | .jc-sb-ns { justify-content: space-between; } 17 | .jc-sa-ns { justify-content: space-around; } 18 | .jc-i-ns { justify-content: inherit; } 19 | } 20 | 21 | @media screen and (min-width:48em) and (max-width: 64em) { 22 | .jc-fs-m { justify-content: flex-start; } 23 | .jc-f3-m { justify-content: flex-end; } 24 | .jc-c-m { justify-content: center; } 25 | .jc-sb-m { justify-content: space-between; } 26 | .jc-sa-m { justify-content: space-around; } 27 | .jc-i-m { justify-content: inherit; } 28 | } 29 | 30 | @media screen and (min-width: 64em) { 31 | .jc-fs-l { justify-content: flex-start; } 32 | .jc-f3-l { justify-content: flex-end; } 33 | .jc-c-l { justify-content: center; } 34 | .jc-sb-l { justify-content: space-between; } 35 | .jc-sa-l { justify-content: space-around; } 36 | .jc-i-l { justify-content: inherit; } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/css-flex-justify-content.css: -------------------------------------------------------------------------------- 1 | /* 2 | FLEX JUSTIFY CONTENT 3 | */ 4 | 5 | .jc-fs { justify-content: flex-start; } 6 | .jc-f3 { justify-content: flex-end; } 7 | .jc-c { justify-content: center; } 8 | .jc-sb { justify-content: space-between; } 9 | .jc-sa { justify-content: space-around; } 10 | .jc-i { justify-content: inherit; } 11 | 12 | @media screen and (min-width: 48em) { 13 | .jc-fs-ns { justify-content: flex-start; } 14 | .jc-f3-ns { justify-content: flex-end; } 15 | .jc-c-ns { justify-content: center; } 16 | .jc-sb-ns { justify-content: space-between; } 17 | .jc-sa-ns { justify-content: space-around; } 18 | .jc-i-ns { justify-content: inherit; } 19 | } 20 | 21 | @media screen and (min-width:48em) and (max-width: 64em) { 22 | .jc-fs-m { justify-content: flex-start; } 23 | .jc-f3-m { justify-content: flex-end; } 24 | .jc-c-m { justify-content: center; } 25 | .jc-sb-m { justify-content: space-between; } 26 | .jc-sa-m { justify-content: space-around; } 27 | .jc-i-m { justify-content: inherit; } 28 | } 29 | 30 | @media screen and (min-width: 64em) { 31 | .jc-fs-l { justify-content: flex-start; } 32 | .jc-f3-l { justify-content: flex-end; } 33 | .jc-c-l { justify-content: center; } 34 | .jc-sb-l { justify-content: space-between; } 35 | .jc-sa-l { justify-content: space-around; } 36 | .jc-i-l { justify-content: inherit; } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /css/css-flex-justify-content.min.css: -------------------------------------------------------------------------------- 1 | .jc-fs{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.jc-f3{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.jc-c{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.jc-sb{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.jc-sa{-ms-flex-pack:distribute;justify-content:space-around}.jc-i{-webkit-box-pack:inherit;-ms-flex-pack:inherit;justify-content:inherit}@media screen and (min-width:48em){.jc-fs-ns{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.jc-f3-ns{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.jc-c-ns{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.jc-sb-ns{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.jc-sa-ns{-ms-flex-pack:distribute;justify-content:space-around}.jc-i-ns{-webkit-box-pack:inherit;-ms-flex-pack:inherit;justify-content:inherit}}@media screen and (min-width:48em) and (max-width:64em){.jc-fs-m{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.jc-f3-m{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.jc-c-m{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.jc-sb-m{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.jc-sa-m{-ms-flex-pack:distribute;justify-content:space-around}.jc-i-m{-webkit-box-pack:inherit;-ms-flex-pack:inherit;justify-content:inherit}}@media screen and (min-width:64em){.jc-fs-l{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.jc-f3-l{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.jc-c-l{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.jc-sb-l{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.jc-sa-l{-ms-flex-pack:distribute;justify-content:space-around}.jc-i-l{-webkit-box-pack:inherit;-ms-flex-pack:inherit;justify-content:inherit}} 2 | 3 | -------------------------------------------------------------------------------- /css/css-flex-justify-content.css: -------------------------------------------------------------------------------- 1 | /* 2 | FLEX JUSTIFY CONTENT 3 | */ 4 | .jc-fs { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 5 | .jc-f3 { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 6 | .jc-c { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 7 | .jc-sb { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 8 | .jc-sa { -ms-flex-pack: distribute; justify-content: space-around; } 9 | .jc-i { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 10 | @media screen and (min-width: 48em) { 11 | .jc-fs-ns { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 12 | .jc-f3-ns { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 13 | .jc-c-ns { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 14 | .jc-sb-ns { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 15 | .jc-sa-ns { -ms-flex-pack: distribute; justify-content: space-around; } 16 | .jc-i-ns { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 17 | } 18 | @media screen and (min-width:48em) and (max-width: 64em) { 19 | .jc-fs-m { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 20 | .jc-f3-m { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 21 | .jc-c-m { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 22 | .jc-sb-m { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 23 | .jc-sa-m { -ms-flex-pack: distribute; justify-content: space-around; } 24 | .jc-i-m { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 25 | } 26 | @media screen and (min-width: 64em) { 27 | .jc-fs-l { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 28 | .jc-f3-l { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 29 | .jc-c-l { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 30 | .jc-sb-l { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 31 | .jc-sa-l { -ms-flex-pack: distribute; justify-content: space-around; } 32 | .jc-i-l { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # css-flex-justify-content 1.0.6 2 | 3 | Css module of single purpose classes for flex justify content 4 | 5 | #### Stats 6 | 7 | 343 | 24 | 68 8 | ---|---|--- 9 | bytes | selectors | declarations 10 | 11 | ## Installation 12 | 13 | #### With [npm](https://npmjs.com) 14 | 15 | ``` 16 | npm install --save-dev css-flex-justify-content 17 | ``` 18 | 19 | Learn more about using css installed with npm: 20 | * https://webpack.github.io/docs/stylesheets.html 21 | * https://github.com/defunctzombie/npm-css 22 | 23 | #### With Git 24 | 25 | http: 26 | ``` 27 | git clone https://github.com/tachyons-css/css-flex-justify-content 28 | ``` 29 | 30 | ssh: 31 | ``` 32 | git clone git@github.com:tachyons-css/css-flex-justify-content.git 33 | ``` 34 | 35 | ## Usage 36 | 37 | #### Using with [Postcss](https://github.com/postcss/postcss) 38 | 39 | Import the css module 40 | 41 | ```css 42 | @import "css-flex-justify-content"; 43 | ``` 44 | 45 | Then process the css using the [`tachyons-cli`](https://github.com/tachyons-css/tachyons-cli) 46 | 47 | ```sh 48 | $ npm i -g tachyons-cli 49 | $ tachyons path/to/css-file.css > dist/t.css 50 | ``` 51 | 52 | #### Using the css 53 | 54 | ##### CDN 55 | The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with: 56 | 57 | ``` 58 | 59 | ``` 60 | 61 | ##### Locally 62 | The built css is located in the `css` directory. It contains an unminified and minified version. 63 | You can either cut and paste that css or link to it directly in your html. 64 | 65 | ```html 66 | 67 | ``` 68 | 69 | #### Development 70 | 71 | The source css files can be found in the `src` directory. 72 | Running `$ npm start` will process the source css and place the built css in the `css` directory. 73 | 74 | ## The css 75 | 76 | ```css 77 | /* 78 | FLEX JUSTIFY CONTENT 79 | */ 80 | .jc-fs { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 81 | .jc-f3 { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 82 | .jc-c { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 83 | .jc-sb { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 84 | .jc-sa { -ms-flex-pack: distribute; justify-content: space-around; } 85 | .jc-i { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 86 | @media screen and (min-width: 48em) { 87 | .jc-fs-ns { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 88 | .jc-f3-ns { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 89 | .jc-c-ns { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 90 | .jc-sb-ns { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 91 | .jc-sa-ns { -ms-flex-pack: distribute; justify-content: space-around; } 92 | .jc-i-ns { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 93 | } 94 | @media screen and (min-width:48em) and (max-width: 64em) { 95 | .jc-fs-m { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 96 | .jc-f3-m { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 97 | .jc-c-m { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 98 | .jc-sb-m { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 99 | .jc-sa-m { -ms-flex-pack: distribute; justify-content: space-around; } 100 | .jc-i-m { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 101 | } 102 | @media screen and (min-width: 64em) { 103 | .jc-fs-l { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } 104 | .jc-f3-l { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } 105 | .jc-c-l { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } 106 | .jc-sb-l { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } 107 | .jc-sa-l { -ms-flex-pack: distribute; justify-content: space-around; } 108 | .jc-i-l { -webkit-box-pack: inherit; -ms-flex-pack: inherit; justify-content: inherit; } 109 | } 110 | ``` 111 | 112 | ## Contributing 113 | 114 | 1. Fork it 115 | 2. Create your feature branch (`git checkout -b my-new-feature`) 116 | 3. Commit your changes (`git commit -am 'Add some feature'`) 117 | 4. Push to the branch (`git push origin my-new-feature`) 118 | 5. Create new Pull Request 119 | 120 | ## Authors 121 | 122 | * [mrmrs](http://mrmrs.io) 123 | * [johno](http://johnotander.com) 124 | 125 | ## License 126 | 127 | ISC 128 | 129 | --------------------------------------------------------------------------------