Skip to main content

Convert CSS physical properties to logical

Project description

physical2logical

Convert CSS physical properties to logical.

Converts margins, padding, and borders to logical values, allowing RTL and vertical languages to show correctly.

Usage

css2logical [-h] [-r] [-a] [-f FILENAME] source

Convert CSS physical properties to logical

positional arguments:
  source                Path to source directory / file. Default '.'

options:
  -h, --help            show this help message and exit
  -r, --recursive       Process all files from source directory. Default: True
  -a, --analyze         Dry Run - Create a report with all changes (without actual source file changes). Default: True
  -f FILENAME, --filename FILENAME
                        Path to file where to save reports (used only with --analyze flag). Default: 'report.html'

Based on https://gist.github.com/nyurik/d438cb56a9059a0660ce4176ef94576f

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physical2logical-0.0.1.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

physical2logical-0.0.1-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page