{"name":"@csstools/postcss-logical-float-and-clear","description":"Use flow-relative (inline-start and inline-end) values for float and clear","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"}}},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-float-and-clear#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-float-and-clear"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","clear","css","float","inline","logical","postcss","postcss-plugin"],"_id":"@csstools/postcss-logical-float-and-clear@3.0.0","gitHead":"7a6eb3af799a9019c39621e37eee02fd2df736be","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-SEmaHMszwakI2rqKRJgE+8rpotFfne1ZS6bZqBoQIicFyV+xT1UF42eORPxJkVJVrH9C0ctUgwMSn3BLOIZldQ==","shasum":"62617564182cf86ab5d4e7485433ad91e4c58571","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-logical-float-and-clear/download/@csstools/postcss-logical-float-and-clear-3.0.0.tgz","fileCount":7,"unpackedSize":7979,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3MfsAvDqOQnQMDI6V+RsQ7UVFipALuLsMHtzDahvU/gIgNH8OeDB+1GbSMKNfqhnmZUDKA96iVshX+4EYCul5VyY="}],"size":3117,"noattachment":false,"key":"/@csstools/postcss-logical-float-and-clear/-/@csstools/postcss-logical-float-and-clear-3.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-float-and-clear_3.0.0_1722721051135_0.9199048348440588"},"_hasShrinkwrap":false,"readme":"# PostCSS Logical Float And Clear [<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-float-and-clear --save-dev`\n\n[PostCSS Logical Float And Clear] lets you use logical, rather than physical, direction and dimension mappings in CSS, following the [CSS Logical Properties and Values] specification.\n\n```pcss\n.element {\n\tclear: inline-start;\n\tfloat: inline-end;\n}\n\n/* becomes */\n\n.element {\n\tclear: left;\n\tfloat: right;\n}\n```\n\n## Usage\n\nAdd [PostCSS Logical Float And Clear] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-logical-float-and-clear --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssLogicalFloatAndClear = require('@csstools/postcss-logical-float-and-clear');\n\npostcss([\n\tpostcssLogicalFloatAndClear(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### inlineDirection\n\nThe `inlineDirection` option allows you to specify the direction of the inline axe. The default value is `left-to-right`, which would match any latin language.\n\n**You should tweak this value so that it is specific to your language and writing mode.**\n\n```js\npostcssLogicalFloatAndClear({\n\tinlineDirection: 'right-to-left'\n})\n```\n\n```pcss\n.element {\n\tclear: inline-start;\n\tfloat: inline-end;\n}\n\n/* becomes */\n\n.element {\n\tclear: right;\n\tfloat: left;\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\nPlease do note that transformations won't run if `inlineDirection` becomes vertical.\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#float-clear-logical-values\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-logical-float-and-clear\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Logical Float And Clear]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-float-and-clear\n[CSS Logical Properties and Values]: https://www.w3.org/TR/css-logical-1/#float-clear\n","publish_time":1722721051280,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1722721051280,"dist-tags":{"latest":"4.0.0"}}