Skip to main content

No project description provided

Project description

✨ ALCSS ✨

Aligner of a splitter in css files

Downloads

Example

  • Imagine you have file - my-awesome-style.css
body {
    margin: 25px;
    background-color: rgb(240, 240, 240);
    font-family: arial, sans-serif;
    font-size: 14px;
}
  • Run this program
alcss my-awesome-style.css
  • Result
body {
    margin            :  25px;
    background-color  :  rgb(240, 240, 240);
    font-family       :  arial, sans-serif;
    font-size         :  14px;
}

Requrirements

Check that you have:

  • python 3.x
  • pip (optionally)

Installation

This program can be installed from pypi

py -m pip install alcss
pip3 install alcss

Arguments

short long description default
-l --lmargin Sets spaces before : character 2
-r --rmargin Sets spaces after : character 2
-i --indent Sets indentation inside {} block 4
-s --shout Forces program to print info to stdout False
-h --help Shows help

Options meaning

div {
____border_____:_____1px solid black;
                
indent  lmargin rmargin
}

Tips

  • Use after default formmater of VS code as default formatter removes spaces before : character

  • To add auto aligning after save:

  • Add Run on Save extension

  • Press ctrl + P and search for Preferences: Open Workspace Settings (JSON)

  • Add code below into the opened file and save

{
    "emeraldwalk.runonsave": {
        "commands": [
            {
                "match": ".css",
                "cmd": "alcss ${file}"
            }
        ]
    }
}

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

alcss-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file alcss-1.0.0.tar.gz.

File metadata

  • Download URL: alcss-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for alcss-1.0.0.tar.gz
Algorithm Hash digest
SHA256 27319a52c9899537c2d9e9547d736e2b54c5ba50d2decc2d98d07e7ac6cdd8b9
MD5 0120c41d5293630c94d3fd2ed9b2028f
BLAKE2b-256 a65a90a6b55df7dedc5923201634778b9f6830fbb10654a2d0dca5067eabf717

See more details on using hashes here.

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