{"_id":"postcss-short-text","_rev":"322479","name":"postcss-short-text","description":"Use a shorthand text property in CSS","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2021-06-04T01:28:51.000Z","created":"2015-09-21T13:11:15.010Z","1.1.0":"2015-09-22T05:18:37.451Z","1.0.0":"2015-09-21T13:11:15.010Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-text.git"},"versions":{"1.1.0":{"name":"postcss-short-text","version":"1.1.0","description":"Use a shorthand text property in CSS","keywords":["postcss","css","postcss-plugin","texts","color","font-style","font-variant","font-weight","font-stretch","text-decoration","text-align","text-rendering","text-transform","white-space","font-size","line-height","letter-spacing","word-spacing","font-family"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-text.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-text/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-text","dependencies":{"object-assign":"^4.0.1","postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"engines":{"iojs":">=2.0.0","node":">=0.12.0"},"gitHead":"c25d76d484b6fd694b080d90920c7fe6d0091ad0","_id":"postcss-short-text@1.1.0","_shasum":"93c4ee645a09262df45c1a7f53421184f0ecb14b","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"93c4ee645a09262df45c1a7f53421184f0ecb14b","size":6107,"noattachment":false,"key":"/postcss-short-text/-/postcss-short-text-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-text/download/postcss-short-text-1.1.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442899117451,"_cnpm_publish_time":1442899117451,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-short-text","version":"1.0.0","description":"Use a shorthand text property in CSS","keywords":["postcss","css","postcss-plugin","texts","color","font-style","font-variant","font-weight","font-stretch","text-decoration","text-align","text-rendering","text-transform","white-space","font-size","line-height","letter-spacing","word-spacing","font-family"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-text.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-text/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-text","dependencies":{"object-assign":"^4.0.1","postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"engines":{"iojs":">=2.0.0","node":">=0.12.0"},"gitHead":"71cc181c50e1f1dacedf29b0c8a1c7897939162e","_id":"postcss-short-text@1.0.0","_shasum":"e7838490de2f18bf317f2c08019e87c87eaded66","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"e7838490de2f18bf317f2c08019e87c87eaded66","size":6246,"noattachment":false,"key":"/postcss-short-text/-/postcss-short-text-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-text/download/postcss-short-text-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442841075010,"_cnpm_publish_time":1442841075010,"_hasShrinkwrap":false}},"readme":"# Short Text [![Build Status][ci-img]][ci]\n\n<img align=\"right\" width=\"135\" height=\"95\" src=\"http://postcss.github.io/postcss/logo-leftp.png\" title=\"Philosopher’s stone, logo of PostCSS\">\n\n[Short Text] is a [PostCSS] plugin that lets you use a shorthand `text` property in CSS.\n\n```css\n/* before */\n\nsection {\n    text: bold center uppercase dimgrey 1.25em 1.5 .05em;\n}\n\narticle {\n    text: 1.25em * .05em;\n}\n\n/* after */\n\nsection {\n    font-weight: bold;\n    text-align: center;\n    text-transform: uppercase;\n    color: dimgrey;\n    font-size: 1.25em;\n    line-height: 1.5;\n    letter-spacing: .05em;\n}\n\narticle {\n    font-size: 1.25em;\n    letter-spacing: .05em;\n}\n```\n\nProperties are matched into groups that may be written in any order. Once a property is matched to a group, other properties from that group must then be written before properties of another group. Asterisks indicate that an individual property in a group should be skipped. The groups include:\n\n- `color`\n- `font-style`, `font-variant`, `font-weight`, `font-stretch`\n- `text-decoration`, `text-align`, `text-rendering`, `text-transform`\n- `white-space`\n- `font-size`, `line-height`, `letter-spacing`, `word-spacing`\n\n## Usage\n\nFollow these steps to use [Short Text].\n\nAdd [Short Text] to your build tool:\n\n```bash\nnpm install postcss-short-text --save-dev\n```\n\n#### Node\n\n```js\nrequire('postcss-short-text')({ /* options */ }).process(YOUR_CSS);\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nLoad [Short Text] as a PostCSS plugin:\n\n```js\npostcss([\n    require('postcss-short-text')({ /* options */ })\n]);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nEnable [Short Text] within your Gulpfile:\n\n```js\nvar postcss = require('gulp-postcss');\n\ngulp.task('css', function () {\n    return gulp.src('./css/src/*.css').pipe(\n        postcss([\n            require('postcss-short-text')({ /* options */ })\n        ])\n    ).pipe(\n        gulp.dest('./css')\n    );\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nEnable [Short Text] within your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n    postcss: {\n        options: {\n            processors: [\n                require('postcss-short-text')({ /* options */ })\n            ]\n        },\n        dist: {\n            src: 'css/*.css'\n        }\n    }\n});\n```\n\n## Options\n\n#### `prefix`\n\nType: `String`  \nDefault: `null`\n\nSpecifies a prefix to be surrounded by dashes before the declaration (e.g. `-x-text`).\n\n[ci]: https://travis-ci.org/jonathantneal/postcss-short-text\n[ci-img]: https://travis-ci.org/jonathantneal/postcss-short-text.svg\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[Short Text]: https://github.com/jonathantneal/postcss-short-text\n","_attachments":{},"homepage":"https://github.com/jonathantneal/postcss-short-text","bugs":{"url":"https://github.com/jonathantneal/postcss-short-text/issues"},"license":"CC0-1.0"}