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