├── .gitignore ├── css ├── css-line-height.min.css ├── css-line-height.css ├── line-height.css └── line-height.min.css ├── LICENSE.txt ├── src └── css-line-height.css ├── package.json └── 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 | -------------------------------------------------------------------------------- /css/css-line-height.min.css: -------------------------------------------------------------------------------- 1 | .lh{line-height:1}.lh-title{line-height:1.3}.lh-copy{line-height:1.5}.lh-2{line-height:2}.lh-3{line-height:3}@media screen and (min-width:48em){.lh-ns{line-height:1}.lh-title-ns{line-height:1.3}.lh-copy-ns{line-height:1.5}.lh-2-ns{line-height:2}.lh-3-ns{line-height:3}}@media screen and (min-width:48em) and (max-width:64em){.lh-m{line-height:1}.lh-title-m{line-height:1.3}.lh-copy-m{line-height:1.5}.lh-2-m{line-height:2}.lh-3-m{line-height:3}}@media screen and (min-width:64em){.lh-l{line-height:1}.lh-title-l{line-height:1.3}.lh-copy-l{line-height:1.5}.lh-2-l{line-height:2}.lh-3-l{line-height:3}} 2 | 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /css/css-line-height.css: -------------------------------------------------------------------------------- 1 | /* 2 | LINE HEIGHT 3 | */ 4 | .lh { line-height: 1; } 5 | .lh-title { line-height: 1.3; } 6 | .lh-copy { line-height: 1.5; } 7 | .lh-2 { line-height: 2; } 8 | .lh-3 { line-height: 3; } 9 | @media screen and (min-width: 48em) { 10 | .lh-ns { line-height: 1; } 11 | .lh-title-ns { line-height: 1.3; } 12 | .lh-copy-ns { line-height: 1.5; } 13 | .lh-2-ns { line-height: 2; } 14 | .lh-3-ns { line-height: 3; } 15 | } 16 | @media screen and (min-width:48em) and (max-width: 64em) { 17 | .lh-m { line-height: 1; } 18 | .lh-title-m { line-height: 1.3; } 19 | .lh-copy-m { line-height: 1.5; } 20 | .lh-2-m { line-height: 2; } 21 | .lh-3-m { line-height: 3; } 22 | } 23 | @media screen and (min-width: 64em) { 24 | .lh-l { line-height: 1; } 25 | .lh-title-l { line-height: 1.3; } 26 | .lh-copy-l { line-height: 1.5; } 27 | .lh-2-l { line-height: 2; } 28 | .lh-3-l { line-height: 3; } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /css/line-height.css: -------------------------------------------------------------------------------- 1 | /* 2 | LINE HEIGHT 3 | */ 4 | 5 | .lh { line-height: 1; } 6 | .lh-title { line-height: 1.3; } 7 | .lh-copy { line-height: 1.5; } 8 | .lh-2 { line-height: 2; } 9 | .lh-3 { line-height: 3; } 10 | 11 | @media screen and (min-width: 48em) { 12 | .lh-ns { line-height: 1; } 13 | .lh-title-ns { line-height: 1.3; } 14 | .lh-copy-ns { line-height: 1.5; } 15 | .lh-2-ns { line-height: 2; } 16 | .lh-3-ns { line-height: 3; } 17 | } 18 | 19 | @media screen and (min-width:48em) and (max-width: 64em) { 20 | .lh-m { line-height: 1; } 21 | .lh-title-m { line-height: 1.3; } 22 | .lh-copy-m { line-height: 1.5; } 23 | .lh-2-m { line-height: 2; } 24 | .lh-3-m { line-height: 3; } 25 | } 26 | 27 | @media screen and (min-width: 64em) { 28 | .lh-l { line-height: 1; } 29 | .lh-title-l { line-height: 1.3; } 30 | .lh-copy-l { line-height: 1.5; } 31 | .lh-2-l { line-height: 2; } 32 | .lh-3-l { line-height: 3; } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /css/line-height.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | LINE HEIGHT 3 | */ 4 | 5 | .lh { line-height: 1; } 6 | .lh-title { line-height: 1.3; } 7 | .lh-copy { line-height: 1.5; } 8 | .lh-2 { line-height: 2; } 9 | .lh-3 { line-height: 3; } 10 | 11 | @media screen and (min-width: 48em) { 12 | .lh-ns { line-height: 1; } 13 | .lh-title-ns { line-height: 1.3; } 14 | .lh-copy-ns { line-height: 1.5; } 15 | .lh-2-ns { line-height: 2; } 16 | .lh-3-ns { line-height: 3; } 17 | } 18 | 19 | @media screen and (min-width:48em) and (max-width: 64em) { 20 | .lh-m { line-height: 1; } 21 | .lh-title-m { line-height: 1.3; } 22 | .lh-copy-m { line-height: 1.5; } 23 | .lh-2-m { line-height: 2; } 24 | .lh-3-m { line-height: 3; } 25 | } 26 | 27 | @media screen and (min-width: 64em) { 28 | .lh-l { line-height: 1; } 29 | .lh-title-l { line-height: 1.3; } 30 | .lh-copy-l { line-height: 1.5; } 31 | .lh-2-l { line-height: 2; } 32 | .lh-3-l { line-height: 3; } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /src/css-line-height.css: -------------------------------------------------------------------------------- 1 | /* 2 | LINE HEIGHT 3 | */ 4 | 5 | .lh { line-height: 1; } 6 | .lh-title { line-height: 1.3; } 7 | .lh-copy { line-height: 1.5; } 8 | .lh-2 { line-height: 2; } 9 | .lh-3 { line-height: 3; } 10 | 11 | @media screen and (min-width: 48em) { 12 | .lh-ns { line-height: 1; } 13 | .lh-title-ns { line-height: 1.3; } 14 | .lh-copy-ns { line-height: 1.5; } 15 | .lh-2-ns { line-height: 2; } 16 | .lh-3-ns { line-height: 3; } 17 | } 18 | 19 | @media screen and (min-width:48em) and (max-width: 64em) { 20 | .lh-m { line-height: 1; } 21 | .lh-title-m { line-height: 1.3; } 22 | .lh-copy-m { line-height: 1.5; } 23 | .lh-2-m { line-height: 2; } 24 | .lh-3-m { line-height: 3; } 25 | } 26 | 27 | @media screen and (min-width: 64em) { 28 | .lh-l { line-height: 1; } 29 | .lh-title-l { line-height: 1.3; } 30 | .lh-copy-l { line-height: 1.5; } 31 | .lh-2-l { line-height: 2; } 32 | .lh-3-l { line-height: 3; } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css-line-height", 3 | "style": "line-height.css", 4 | "version": "1.0.8", 5 | "homepage": "http://github.com/mrmrs/css-line-height", 6 | "description": "Css module of single purpose classes for line height", 7 | "keywords": [ 8 | "css", 9 | "oocss", 10 | "line-height" 11 | ], 12 | "css-line-height": { 13 | "type": "git", 14 | "url": "http://github.com/mrmrs/css-line-height.git" 15 | }, 16 | "bugs": { 17 | "url": "https://github.com/mrmrs/css-line-height/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-line-height.css > css/css-line-height.css && tachyons src/css-line-height.css --minify > css/css-line-height.min.css && tachyons src/css-line-height.css --generate-docs --package=../../package.json > readme.md" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # css-line-height 1.0.6 2 | 3 | Css module of single purpose classes for line height 4 | 5 | #### Stats 6 | 7 | 212 | 20 | 20 8 | ---|---|--- 9 | bytes | selectors | declarations 10 | 11 | ## Installation 12 | 13 | #### With [npm](https://npmjs.com) 14 | 15 | ``` 16 | npm install --save-dev css-line-height 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-line-height 28 | ``` 29 | 30 | ssh: 31 | ``` 32 | git clone git@github.com:tachyons-css/css-line-height.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-line-height"; 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 | LINE HEIGHT 79 | */ 80 | .lh { line-height: 1; } 81 | .lh-title { line-height: 1.3; } 82 | .lh-copy { line-height: 1.5; } 83 | .lh-2 { line-height: 2; } 84 | .lh-3 { line-height: 3; } 85 | @media screen and (min-width: 48em) { 86 | .lh-ns { line-height: 1; } 87 | .lh-title-ns { line-height: 1.3; } 88 | .lh-copy-ns { line-height: 1.5; } 89 | .lh-2-ns { line-height: 2; } 90 | .lh-3-ns { line-height: 3; } 91 | } 92 | @media screen and (min-width:48em) and (max-width: 64em) { 93 | .lh-m { line-height: 1; } 94 | .lh-title-m { line-height: 1.3; } 95 | .lh-copy-m { line-height: 1.5; } 96 | .lh-2-m { line-height: 2; } 97 | .lh-3-m { line-height: 3; } 98 | } 99 | @media screen and (min-width: 64em) { 100 | .lh-l { line-height: 1; } 101 | .lh-title-l { line-height: 1.3; } 102 | .lh-copy-l { line-height: 1.5; } 103 | .lh-2-l { line-height: 2; } 104 | .lh-3-l { line-height: 3; } 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 | --------------------------------------------------------------------------------