├── .gitignore
├── LICENSE.txt
├── package.json
├── css
├── flex-align-self.css
├── flex-align-self.min.css
├── css-flex-align-self.min.css
└── css-flex-align-self.css
├── src
└── css-flex-align-self.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-self",
3 | "style": "flex-align-self.css",
4 | "version": "1.0.8",
5 | "homepage": "http://github.com/mrmrs/css-flex-align-self",
6 | "description": "Css module of single purpose classes for flex align self",
7 | "keywords": [
8 | "css",
9 | "oocss",
10 | "flex-align-self"
11 | ],
12 | "css-flex-align-self": {
13 | "type": "git",
14 | "url": "http://github.com/mrmrs/css-flex-align-self.git"
15 | },
16 | "bugs": {
17 | "url": "https://github.com/mrmrs/css-flex-align-self/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-self.css > css/css-flex-align-self.css && tachyons src/css-flex-align-self.css --minify > css/css-flex-align-self.min.css && tachyons src/css-flex-align-self.css --generate-docs --package=../../package.json > readme.md"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/css/flex-align-self.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN SELF
3 | */
4 |
5 | .as-a { align-self: auto; }
6 | .as-fs { align-self: flex-start; }
7 | .as-fe { align-self: flex-end; }
8 | .as-c { align-self: center; }
9 | .as-b { align-self: baseline; }
10 | .as-s { align-self: stretch; }
11 | .as-i { align-self: inherit; }
12 |
13 | @media screen and (min-width: 48em) {
14 | .as-a-ns { align-self: auto; }
15 | .as-fs-ns { align-self: flex-start; }
16 | .as-fe-ns { align-self: flex-end; }
17 | .as-c-ns { align-self: center; }
18 | .as-b-ns { align-self: baseline; }
19 | .as-s-ns { align-self: stretch; }
20 | .as-i-ns { align-self: inherit; }
21 | }
22 |
23 | @media screen and (min-width:48em) and (max-width: 64em) {
24 | .as-a-m { align-self: auto; }
25 | .as-fs-m { align-self: flex-start; }
26 | .as-fe-m { align-self: flex-end; }
27 | .as-c-m { align-self: center; }
28 | .as-b-m { align-self: baseline; }
29 | .as-s-m { align-self: stretch; }
30 | .as-i-m { align-self: inherit; }
31 | }
32 |
33 | @media screen and (min-width: 64em) {
34 | .as-a-l { align-self: auto; }
35 | .as-fs-l { align-self: flex-start; }
36 | .as-fe-l { align-self: flex-end; }
37 | .as-c-l { align-self: center; }
38 | .as-b-l { align-self: baseline; }
39 | .as-s-l { align-self: stretch; }
40 | .as-i-l { align-self: inherit; }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/css/flex-align-self.min.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN SELF
3 | */
4 |
5 | .as-a { align-self: auto; }
6 | .as-fs { align-self: flex-start; }
7 | .as-fe { align-self: flex-end; }
8 | .as-c { align-self: center; }
9 | .as-b { align-self: baseline; }
10 | .as-s { align-self: stretch; }
11 | .as-i { align-self: inherit; }
12 |
13 | @media screen and (min-width: 48em) {
14 | .as-a-ns { align-self: auto; }
15 | .as-fs-ns { align-self: flex-start; }
16 | .as-fe-ns { align-self: flex-end; }
17 | .as-c-ns { align-self: center; }
18 | .as-b-ns { align-self: baseline; }
19 | .as-s-ns { align-self: stretch; }
20 | .as-i-ns { align-self: inherit; }
21 | }
22 |
23 | @media screen and (min-width:48em) and (max-width: 64em) {
24 | .as-a-m { align-self: auto; }
25 | .as-fs-m { align-self: flex-start; }
26 | .as-fe-m { align-self: flex-end; }
27 | .as-c-m { align-self: center; }
28 | .as-b-m { align-self: baseline; }
29 | .as-s-m { align-self: stretch; }
30 | .as-i-m { align-self: inherit; }
31 | }
32 |
33 | @media screen and (min-width: 64em) {
34 | .as-a-l { align-self: auto; }
35 | .as-fs-l { align-self: flex-start; }
36 | .as-fe-l { align-self: flex-end; }
37 | .as-c-l { align-self: center; }
38 | .as-b-l { align-self: baseline; }
39 | .as-s-l { align-self: stretch; }
40 | .as-i-l { align-self: inherit; }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/css-flex-align-self.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN SELF
3 | */
4 |
5 | .as-a { align-self: auto; }
6 | .as-fs { align-self: flex-start; }
7 | .as-fe { align-self: flex-end; }
8 | .as-c { align-self: center; }
9 | .as-b { align-self: baseline; }
10 | .as-s { align-self: stretch; }
11 | .as-i { align-self: inherit; }
12 |
13 | @media screen and (min-width: 48em) {
14 | .as-a-ns { align-self: auto; }
15 | .as-fs-ns { align-self: flex-start; }
16 | .as-fe-ns { align-self: flex-end; }
17 | .as-c-ns { align-self: center; }
18 | .as-b-ns { align-self: baseline; }
19 | .as-s-ns { align-self: stretch; }
20 | .as-i-ns { align-self: inherit; }
21 | }
22 |
23 | @media screen and (min-width:48em) and (max-width: 64em) {
24 | .as-a-m { align-self: auto; }
25 | .as-fs-m { align-self: flex-start; }
26 | .as-fe-m { align-self: flex-end; }
27 | .as-c-m { align-self: center; }
28 | .as-b-m { align-self: baseline; }
29 | .as-s-m { align-self: stretch; }
30 | .as-i-m { align-self: inherit; }
31 | }
32 |
33 | @media screen and (min-width: 64em) {
34 | .as-a-l { align-self: auto; }
35 | .as-fs-l { align-self: flex-start; }
36 | .as-fe-l { align-self: flex-end; }
37 | .as-c-l { align-self: center; }
38 | .as-b-l { align-self: baseline; }
39 | .as-s-l { align-self: stretch; }
40 | .as-i-l { align-self: inherit; }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/css/css-flex-align-self.min.css:
--------------------------------------------------------------------------------
1 | .as-a{-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.as-fs{-ms-flex-item-align:start;align-self:flex-start}.as-fe{-ms-flex-item-align:end;align-self:flex-end}.as-c{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.as-b{-ms-flex-item-align:baseline;align-self:baseline}.as-s{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.as-i{-ms-flex-item-align:inherit;-ms-grid-row-align:inherit;align-self:inherit}@media screen and (min-width:48em){.as-a-ns{-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.as-fs-ns{-ms-flex-item-align:start;align-self:flex-start}.as-fe-ns{-ms-flex-item-align:end;align-self:flex-end}.as-c-ns{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.as-b-ns{-ms-flex-item-align:baseline;align-self:baseline}.as-s-ns{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.as-i-ns{-ms-flex-item-align:inherit;-ms-grid-row-align:inherit;align-self:inherit}}@media screen and (min-width:48em) and (max-width:64em){.as-a-m{-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.as-fs-m{-ms-flex-item-align:start;align-self:flex-start}.as-fe-m{-ms-flex-item-align:end;align-self:flex-end}.as-c-m{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.as-b-m{-ms-flex-item-align:baseline;align-self:baseline}.as-s-m{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.as-i-m{-ms-flex-item-align:inherit;-ms-grid-row-align:inherit;align-self:inherit}}@media screen and (min-width:64em){.as-a-l{-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.as-fs-l{-ms-flex-item-align:start;align-self:flex-start}.as-fe-l{-ms-flex-item-align:end;align-self:flex-end}.as-c-l{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.as-b-l{-ms-flex-item-align:baseline;align-self:baseline}.as-s-l{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.as-i-l{-ms-flex-item-align:inherit;-ms-grid-row-align:inherit;align-self:inherit}}
2 |
3 |
--------------------------------------------------------------------------------
/css/css-flex-align-self.css:
--------------------------------------------------------------------------------
1 | /*
2 | FLEX ALIGN SELF
3 | */
4 | .as-a { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
5 | .as-fs { -ms-flex-item-align: start; align-self: flex-start; }
6 | .as-fe { -ms-flex-item-align: end; align-self: flex-end; }
7 | .as-c { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
8 | .as-b { -ms-flex-item-align: baseline; align-self: baseline; }
9 | .as-s { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
10 | .as-i { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
11 | @media screen and (min-width: 48em) {
12 | .as-a-ns { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
13 | .as-fs-ns { -ms-flex-item-align: start; align-self: flex-start; }
14 | .as-fe-ns { -ms-flex-item-align: end; align-self: flex-end; }
15 | .as-c-ns { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
16 | .as-b-ns { -ms-flex-item-align: baseline; align-self: baseline; }
17 | .as-s-ns { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
18 | .as-i-ns { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
19 | }
20 | @media screen and (min-width:48em) and (max-width: 64em) {
21 | .as-a-m { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
22 | .as-fs-m { -ms-flex-item-align: start; align-self: flex-start; }
23 | .as-fe-m { -ms-flex-item-align: end; align-self: flex-end; }
24 | .as-c-m { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
25 | .as-b-m { -ms-flex-item-align: baseline; align-self: baseline; }
26 | .as-s-m { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
27 | .as-i-m { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
28 | }
29 | @media screen and (min-width: 64em) {
30 | .as-a-l { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
31 | .as-fs-l { -ms-flex-item-align: start; align-self: flex-start; }
32 | .as-fe-l { -ms-flex-item-align: end; align-self: flex-end; }
33 | .as-c-l { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
34 | .as-b-l { -ms-flex-item-align: baseline; align-self: baseline; }
35 | .as-s-l { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
36 | .as-i-l { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # css-flex-align-self 1.0.6
2 |
3 | Css module of single purpose classes for flex align self
4 |
5 | #### Stats
6 |
7 | 339 | 28 | 72
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-self
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-self
28 | ```
29 |
30 | ssh:
31 | ```
32 | git clone git@github.com:tachyons-css/css-flex-align-self.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-self";
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 SELF
79 | */
80 | .as-a { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
81 | .as-fs { -ms-flex-item-align: start; align-self: flex-start; }
82 | .as-fe { -ms-flex-item-align: end; align-self: flex-end; }
83 | .as-c { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
84 | .as-b { -ms-flex-item-align: baseline; align-self: baseline; }
85 | .as-s { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
86 | .as-i { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
87 | @media screen and (min-width: 48em) {
88 | .as-a-ns { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
89 | .as-fs-ns { -ms-flex-item-align: start; align-self: flex-start; }
90 | .as-fe-ns { -ms-flex-item-align: end; align-self: flex-end; }
91 | .as-c-ns { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
92 | .as-b-ns { -ms-flex-item-align: baseline; align-self: baseline; }
93 | .as-s-ns { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
94 | .as-i-ns { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
95 | }
96 | @media screen and (min-width:48em) and (max-width: 64em) {
97 | .as-a-m { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
98 | .as-fs-m { -ms-flex-item-align: start; align-self: flex-start; }
99 | .as-fe-m { -ms-flex-item-align: end; align-self: flex-end; }
100 | .as-c-m { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
101 | .as-b-m { -ms-flex-item-align: baseline; align-self: baseline; }
102 | .as-s-m { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
103 | .as-i-m { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: inherit; }
104 | }
105 | @media screen and (min-width: 64em) {
106 | .as-a-l { -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto; }
107 | .as-fs-l { -ms-flex-item-align: start; align-self: flex-start; }
108 | .as-fe-l { -ms-flex-item-align: end; align-self: flex-end; }
109 | .as-c-l { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; }
110 | .as-b-l { -ms-flex-item-align: baseline; align-self: baseline; }
111 | .as-s-l { -ms-flex-item-align: stretch; -ms-grid-row-align: stretch; align-self: stretch; }
112 | .as-i-l { -ms-flex-item-align: inherit; -ms-grid-row-align: inherit; align-self: 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 |
--------------------------------------------------------------------------------