rtlcss

Framework for transforming Cascading Style Sheets (CSS) from Left-To-Right (LTR) to Right-To-Left (RTL)

MIT License

Downloads
2.8M
Stars
1.7K
Committers
22

Bot releases are hidden (Show)

rtlcss - Version 4.0 Latest Release

Published by MohammadYounes about 2 years ago

  • Update dependencies, Internal code refactoring, cleanup and optimizations. Thanks @XhmikosR
  • Support flipping justify-content, justify-items and justify-self. Thanks @mbehzad
  • Support flipping length position without using calc.
rtlcss - Version 3.0

Published by MohammadYounes almost 4 years ago

  • Upgrade to POSTCSS 8.
  • Dropped Node.js 6.x, 8.x, 11.x, and 13.x versions.
rtlcss - Version 2.0

Published by MohammadYounes over 8 years ago

  • Support for control directive blocks, e.g. /*rtl:begin:ignore*/ ... /*rtl:end:ignore*/.
  • Suppor for strict auto renaming, Which ensures autoRename is applied only when a pair exists.
  • New directives:
    • config
    • options
    • raw
    • remove
  • Support for Plugins.

Upgrading from version 1.0

Options and config settings have changed. However, you need not to worry about your CSS files as all directives are backward-compatible. This is a summary of what's changed:

  • New Options:
    • autoRenameStrict (default: false) to apply auto rename only when a pair exists.
    • blacklist to prevent execution of certian directives.
    • clean (default: true), to remove directives from output CSS.
    • processUrls (default: false) to control URL updates. You can also target specific node types using an object literal. e.g. {'atrule': true, 'decl': false}.
  • Updated Options:
    • autoRename new default is false.
    • stringMap:
      • priority attribute to control maps execution order.
      • exclusive attributes, which determines if a map execution should stop iterating over other maps.
      • dropped 'west-east' map from the default map collection.
  • Removed Options:
    • enableLogging, still warnings and errors are reported directly to postcss.
    • minify, it wasn't actual minification after all!
    • swapLeftRightInUrl, swapLtrRtlInUrl and swapWestEastInUrl in favor of processUrls option.
    • preserveComments, comments inside declaration values will always be preserved.
    • preserveDirectives, in favor of clean option.
  • Constructor arguments rules, declarations and properties are now replaced with plugins.
rtlcss - Version 1.0

Published by MohammadYounes about 10 years ago

CSS done Right-to-Left

Package Rankings
Top 20.87% on Repo1.maven.org
Top 0.88% on Npmjs.org
Badges
Extracted from project README
Join the chat at https://gitter.im/MohammadYounes/rtlcss GitHub version npm version CI Status js-standard-style editor Twitter