├── .gitignore
├── LICENSE.txt
├── package.json
├── css
├── flex-align-content.css
├── flex-align-content.min.css
├── css-flex-align-content.min.css
└── css-flex-align-content.css
├── src
└── css-flex-align-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-align-content",
3 | "style": "flex-align-content.css",
4 | "version": "1.0.8",
5 | "homepage": "http://github.com/mrmrs/css-flex-align-content",
6 | "description": "Css module of single purpose classes for flex align content",
7 | "keywords": [
8 | "css",
9 | "oocss",
10 | "flex-align-content"
11 | ],
12 | "css-flex-align-content": {
13 | "type": "git",
14 | "url": "http://github.com/mrmrs/css-flex-align-content.git"
15 | },
16 | "bugs": {
17 | "url": "https://github.com/mrmrs/css-flex-align-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-align-content.css > css/css-flex-align-content.css && tachyons src/css-flex-align-content.css --minify > css/css-flex-align-content.min.css && tachyons src/css-flex-align-content.css --generate-docs --package=../../package.json > readme.md"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/css/flex-align-content.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN CONTENT
3 | */
4 |
5 | .ac-fs { align-content: flex-start; }
6 | .ac-fe { align-content: flex-end; }
7 | .ac-c { align-content: center; }
8 | .ac-sb { align-content: space-between; }
9 | .ac-sa { align-content: space-around; }
10 | .ac-s { align-content: stretch; }
11 | .ac-i { align-content: inherit; }
12 |
13 | @media screen and (min-width: 48em) {
14 | .ac-fs-ns { align-content: flex-start; }
15 | .ac-fe-ns { align-content: flex-end; }
16 | .ac-c-ns { align-content: center; }
17 | .ac-sb-ns { align-content: space-between; }
18 | .ac-sa-ns { align-content: space-around; }
19 | .ac-s-ns { align-content: stretch; }
20 | .ac-i-ns { align-content: inherit; }
21 | }
22 |
23 | @media screen and (min-width:48em) and (max-width: 64em) {
24 | .ac-fs-m { align-content: flex-start; }
25 | .ac-fe-m { align-content: flex-end; }
26 | .ac-c-m { align-content: center; }
27 | .ac-sb-m { align-content: space-between; }
28 | .ac-sa-m { align-content: space-around; }
29 | .ac-s-m { align-content: stretch; }
30 | .ac-i-m { align-content: inherit; }
31 | }
32 |
33 | @media screen and (min-width: 64em) {
34 | .ac-fs-l { align-content: flex-start; }
35 | .ac-fe-l { align-content: flex-end; }
36 | .ac-c-l { align-content: center; }
37 | .ac-sb-l { align-content: space-between; }
38 | .ac-sa-l { align-content: space-around; }
39 | .ac-s-l { align-content: stretch; }
40 | .ac-i-l { align-content: inherit; }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/css/flex-align-content.min.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN CONTENT
3 | */
4 |
5 | .ac-fs { align-content: flex-start; }
6 | .ac-fe { align-content: flex-end; }
7 | .ac-c { align-content: center; }
8 | .ac-sb { align-content: space-between; }
9 | .ac-sa { align-content: space-around; }
10 | .ac-s { align-content: stretch; }
11 | .ac-i { align-content: inherit; }
12 |
13 | @media screen and (min-width: 48em) {
14 | .ac-fs-ns { align-content: flex-start; }
15 | .ac-fe-ns { align-content: flex-end; }
16 | .ac-c-ns { align-content: center; }
17 | .ac-sb-ns { align-content: space-between; }
18 | .ac-sa-ns { align-content: space-around; }
19 | .ac-s-ns { align-content: stretch; }
20 | .ac-i-ns { align-content: inherit; }
21 | }
22 |
23 | @media screen and (min-width:48em) and (max-width: 64em) {
24 | .ac-fs-m { align-content: flex-start; }
25 | .ac-fe-m { align-content: flex-end; }
26 | .ac-c-m { align-content: center; }
27 | .ac-sb-m { align-content: space-between; }
28 | .ac-sa-m { align-content: space-around; }
29 | .ac-s-m { align-content: stretch; }
30 | .ac-i-m { align-content: inherit; }
31 | }
32 |
33 | @media screen and (min-width: 64em) {
34 | .ac-fs-l { align-content: flex-start; }
35 | .ac-fe-l { align-content: flex-end; }
36 | .ac-c-l { align-content: center; }
37 | .ac-sb-l { align-content: space-between; }
38 | .ac-sa-l { align-content: space-around; }
39 | .ac-s-l { align-content: stretch; }
40 | .ac-i-l { align-content: inherit; }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/css-flex-align-content.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN CONTENT
3 | */
4 |
5 | .ac-fs { align-content: flex-start; }
6 | .ac-fe { align-content: flex-end; }
7 | .ac-c { align-content: center; }
8 | .ac-sb { align-content: space-between; }
9 | .ac-sa { align-content: space-around; }
10 | .ac-s { align-content: stretch; }
11 | .ac-i { align-content: inherit; }
12 |
13 | @media screen and (min-width: 48em) {
14 | .ac-fs-ns { align-content: flex-start; }
15 | .ac-fe-ns { align-content: flex-end; }
16 | .ac-c-ns { align-content: center; }
17 | .ac-sb-ns { align-content: space-between; }
18 | .ac-sa-ns { align-content: space-around; }
19 | .ac-s-ns { align-content: stretch; }
20 | .ac-i-ns { align-content: inherit; }
21 | }
22 |
23 | @media screen and (min-width:48em) and (max-width: 64em) {
24 | .ac-fs-m { align-content: flex-start; }
25 | .ac-fe-m { align-content: flex-end; }
26 | .ac-c-m { align-content: center; }
27 | .ac-sb-m { align-content: space-between; }
28 | .ac-sa-m { align-content: space-around; }
29 | .ac-s-m { align-content: stretch; }
30 | .ac-i-m { align-content: inherit; }
31 | }
32 |
33 | @media screen and (min-width: 64em) {
34 | .ac-fs-l { align-content: flex-start; }
35 | .ac-fe-l { align-content: flex-end; }
36 | .ac-c-l { align-content: center; }
37 | .ac-sb-l { align-content: space-between; }
38 | .ac-sa-l { align-content: space-around; }
39 | .ac-s-l { align-content: stretch; }
40 | .ac-i-l { align-content: inherit; }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/css/css-flex-align-content.min.css:
--------------------------------------------------------------------------------
1 | .ac-fs{-ms-flex-line-pack:start;align-content:flex-start}.ac-fe{-ms-flex-line-pack:end;align-content:flex-end}.ac-c{-ms-flex-line-pack:center;align-content:center}.ac-sb{-ms-flex-line-pack:justify;align-content:space-between}.ac-sa{-ms-flex-line-pack:distribute;align-content:space-around}.ac-s{-ms-flex-line-pack:stretch;align-content:stretch}.ac-i{-ms-flex-line-pack:inherit;align-content:inherit}@media screen and (min-width:48em){.ac-fs-ns{-ms-flex-line-pack:start;align-content:flex-start}.ac-fe-ns{-ms-flex-line-pack:end;align-content:flex-end}.ac-c-ns{-ms-flex-line-pack:center;align-content:center}.ac-sb-ns{-ms-flex-line-pack:justify;align-content:space-between}.ac-sa-ns{-ms-flex-line-pack:distribute;align-content:space-around}.ac-s-ns{-ms-flex-line-pack:stretch;align-content:stretch}.ac-i-ns{-ms-flex-line-pack:inherit;align-content:inherit}}@media screen and (min-width:48em) and (max-width:64em){.ac-fs-m{-ms-flex-line-pack:start;align-content:flex-start}.ac-fe-m{-ms-flex-line-pack:end;align-content:flex-end}.ac-c-m{-ms-flex-line-pack:center;align-content:center}.ac-sb-m{-ms-flex-line-pack:justify;align-content:space-between}.ac-sa-m{-ms-flex-line-pack:distribute;align-content:space-around}.ac-s-m{-ms-flex-line-pack:stretch;align-content:stretch}.ac-i-m{-ms-flex-line-pack:inherit;align-content:inherit}}@media screen and (min-width:64em){.ac-fs-l{-ms-flex-line-pack:start;align-content:flex-start}.ac-fe-l{-ms-flex-line-pack:end;align-content:flex-end}.ac-c-l{-ms-flex-line-pack:center;align-content:center}.ac-sb-l{-ms-flex-line-pack:justify;align-content:space-between}.ac-sa-l{-ms-flex-line-pack:distribute;align-content:space-around}.ac-s-l{-ms-flex-line-pack:stretch;align-content:stretch}.ac-i-l{-ms-flex-line-pack:inherit;align-content:inherit}}
2 |
3 |
--------------------------------------------------------------------------------
/css/css-flex-align-content.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN CONTENT
3 | */
4 | .ac-fs { -ms-flex-line-pack: start; align-content: flex-start; }
5 | .ac-fe { -ms-flex-line-pack: end; align-content: flex-end; }
6 | .ac-c { -ms-flex-line-pack: center; align-content: center; }
7 | .ac-sb { -ms-flex-line-pack: justify; align-content: space-between; }
8 | .ac-sa { -ms-flex-line-pack: distribute; align-content: space-around; }
9 | .ac-s { -ms-flex-line-pack: stretch; align-content: stretch; }
10 | .ac-i { -ms-flex-line-pack: inherit; align-content: inherit; }
11 | @media screen and (min-width: 48em) {
12 | .ac-fs-ns { -ms-flex-line-pack: start; align-content: flex-start; }
13 | .ac-fe-ns { -ms-flex-line-pack: end; align-content: flex-end; }
14 | .ac-c-ns { -ms-flex-line-pack: center; align-content: center; }
15 | .ac-sb-ns { -ms-flex-line-pack: justify; align-content: space-between; }
16 | .ac-sa-ns { -ms-flex-line-pack: distribute; align-content: space-around; }
17 | .ac-s-ns { -ms-flex-line-pack: stretch; align-content: stretch; }
18 | .ac-i-ns { -ms-flex-line-pack: inherit; align-content: inherit; }
19 | }
20 | @media screen and (min-width:48em) and (max-width: 64em) {
21 | .ac-fs-m { -ms-flex-line-pack: start; align-content: flex-start; }
22 | .ac-fe-m { -ms-flex-line-pack: end; align-content: flex-end; }
23 | .ac-c-m { -ms-flex-line-pack: center; align-content: center; }
24 | .ac-sb-m { -ms-flex-line-pack: justify; align-content: space-between; }
25 | .ac-sa-m { -ms-flex-line-pack: distribute; align-content: space-around; }
26 | .ac-s-m { -ms-flex-line-pack: stretch; align-content: stretch; }
27 | .ac-i-m { -ms-flex-line-pack: inherit; align-content: inherit; }
28 | }
29 | @media screen and (min-width: 64em) {
30 | .ac-fs-l { -ms-flex-line-pack: start; align-content: flex-start; }
31 | .ac-fe-l { -ms-flex-line-pack: end; align-content: flex-end; }
32 | .ac-c-l { -ms-flex-line-pack: center; align-content: center; }
33 | .ac-sb-l { -ms-flex-line-pack: justify; align-content: space-between; }
34 | .ac-sa-l { -ms-flex-line-pack: distribute; align-content: space-around; }
35 | .ac-s-l { -ms-flex-line-pack: stretch; align-content: stretch; }
36 | .ac-i-l { -ms-flex-line-pack: inherit; align-content: inherit; }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # css-flex-align-content 1.0.6
2 |
3 | Css module of single purpose classes for flex align content
4 |
5 | #### Stats
6 |
7 | 339 | 28 | 56
8 | ---|---|---
9 | bytes | selectors | declarations
10 |
11 | ## Installation
12 |
13 | #### With [npm](https://npmjs.com)
14 |
15 | ```
16 | npm install --save-dev css-flex-align-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-align-content
28 | ```
29 |
30 | ssh:
31 | ```
32 | git clone git@github.com:tachyons-css/css-flex-align-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-align-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 ALIGN CONTENT
79 | */
80 | .ac-fs { -ms-flex-line-pack: start; align-content: flex-start; }
81 | .ac-fe { -ms-flex-line-pack: end; align-content: flex-end; }
82 | .ac-c { -ms-flex-line-pack: center; align-content: center; }
83 | .ac-sb { -ms-flex-line-pack: justify; align-content: space-between; }
84 | .ac-sa { -ms-flex-line-pack: distribute; align-content: space-around; }
85 | .ac-s { -ms-flex-line-pack: stretch; align-content: stretch; }
86 | .ac-i { -ms-flex-line-pack: inherit; align-content: inherit; }
87 | @media screen and (min-width: 48em) {
88 | .ac-fs-ns { -ms-flex-line-pack: start; align-content: flex-start; }
89 | .ac-fe-ns { -ms-flex-line-pack: end; align-content: flex-end; }
90 | .ac-c-ns { -ms-flex-line-pack: center; align-content: center; }
91 | .ac-sb-ns { -ms-flex-line-pack: justify; align-content: space-between; }
92 | .ac-sa-ns { -ms-flex-line-pack: distribute; align-content: space-around; }
93 | .ac-s-ns { -ms-flex-line-pack: stretch; align-content: stretch; }
94 | .ac-i-ns { -ms-flex-line-pack: inherit; align-content: inherit; }
95 | }
96 | @media screen and (min-width:48em) and (max-width: 64em) {
97 | .ac-fs-m { -ms-flex-line-pack: start; align-content: flex-start; }
98 | .ac-fe-m { -ms-flex-line-pack: end; align-content: flex-end; }
99 | .ac-c-m { -ms-flex-line-pack: center; align-content: center; }
100 | .ac-sb-m { -ms-flex-line-pack: justify; align-content: space-between; }
101 | .ac-sa-m { -ms-flex-line-pack: distribute; align-content: space-around; }
102 | .ac-s-m { -ms-flex-line-pack: stretch; align-content: stretch; }
103 | .ac-i-m { -ms-flex-line-pack: inherit; align-content: inherit; }
104 | }
105 | @media screen and (min-width: 64em) {
106 | .ac-fs-l { -ms-flex-line-pack: start; align-content: flex-start; }
107 | .ac-fe-l { -ms-flex-line-pack: end; align-content: flex-end; }
108 | .ac-c-l { -ms-flex-line-pack: center; align-content: center; }
109 | .ac-sb-l { -ms-flex-line-pack: justify; align-content: space-between; }
110 | .ac-sa-l { -ms-flex-line-pack: distribute; align-content: space-around; }
111 | .ac-s-l { -ms-flex-line-pack: stretch; align-content: stretch; }
112 | .ac-i-l { -ms-flex-line-pack: inherit; align-content: inherit; }
113 | }
114 | ```
115 |
116 | ## Contributing
117 |
118 | 1. Fork it
119 | 2. Create your feature branch (`git checkout -b my-new-feature`)
120 | 3. Commit your changes (`git commit -am 'Add some feature'`)
121 | 4. Push to the branch (`git push origin my-new-feature`)
122 | 5. Create new Pull Request
123 |
124 | ## Authors
125 |
126 | * [mrmrs](http://mrmrs.io)
127 | * [johno](http://johnotander.com)
128 |
129 | ## License
130 |
131 | ISC
132 |
133 |
--------------------------------------------------------------------------------