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