{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"3.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"_id":"@csstools/postcss-logical-resize@3.0.0","gitHead":"b25122cff283dfded891ee2ac883d9f092c27b07","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-DFbHQOFW/+I+MY4Ycd/QN6Dg4Hcbb50elIJCfnwkRTCX05G11SwViI5BbBlg9iHRl4ytB7pmY5ieAFk3ws7yyg==","shasum":"4df0eeb1a61d7bd85395e56a5cce350b5dbfdca6","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-3.0.0.tgz","fileCount":7,"unpackedSize":9730,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjI0kLfGZ6gNzH5OJldNjQVE7jr6R4uxSAOPhR58e5ygIgC0UIMa8L3c16zsru4+FOYxLitYTOoDFTNzwRMbOmtbg="}],"size":3522,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-3.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-resize_3.0.0_1722721067424_0.7132108266576873"},"_hasShrinkwrap":false,"readme":"# PostCSS Logical Resize [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install @csstools/postcss-logical-resize --save-dev`\n\n[PostCSS Logical Resize] lets you use logical, rather than physical, values for `resize`, following the [CSS Logical Properties and Values] specification.\n\n```pcss\n.resize-block {\n\tresize: block;\n}\n\n.resize-inline {\n\tresize: inline;\n}\n\n/* becomes */\n\n.resize-block {\n\tresize: vertical;\n}\n\n.resize-inline {\n\tresize: horizontal;\n}\n```\n\n## Usage\n\nAdd [PostCSS Logical Resize] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-logical-resize --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssLogicalResize = require('@csstools/postcss-logical-resize');\n\npostcss([\n\tpostcssLogicalResize(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### blockDirection & inlineDirection\n\nThe `blockDirection` and `inlineDirection` options allow you to specify the direction of the block and inline axes. The default values are `top-to-bottom` and `left-to-right` respectively, which would match any latin language.\n\n**You should tweak these values so that they are specific to your language and writing mode.**\n\n```js\npostcssLogicalResize({\n\tblockDirection: 'right-to-left',\n\tinlineDirection: 'top-to-bottom'\n})\n```\n\n```pcss\n.resize-block {\n\tresize: block;\n}\n\n.resize-inline {\n\tresize: inline;\n}\n\n/* becomes */\n\n.resize-block {\n\tresize: horizontal;\n}\n\n.resize-inline {\n\tresize: vertical;\n}\n```\n\nEach direction must be one of the following:\n\n- `top-to-bottom`\n- `bottom-to-top`\n- `left-to-right`\n- `right-to-left`\n\nYou can't mix two vertical directions or two horizontal directions so for example `top-to-bottom` and `right-to-left` are valid, but `top-to-bottom` and `bottom-to-top` are not.\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#logical-resize\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-logical-resize\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Logical Resize]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize\n[CSS Logical Properties and Values]: https://www.w3.org/TR/css-logical-1/\n","publish_time":1722721067720,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1722721067720,"dist-tags":{"latest":"4.0.0"}}