alcss-1.0.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | alcss-1.0.0 |
| نام | alcss |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Miasnenko Dmitry |
| ایمیل نویسنده | clowzed.work@gmail.com |
| آدرس صفحه اصلی | https://github.com/clowzed/alcss.git |
| آدرس اینترنتی | https://pypi.org/project/alcss/ |
| مجوز | - |
<div align = "center">
<h1>✨ ALCSS ✨</h1>
<h2>Aligner of a splitter in css files</h2>
</div>
[](https://pepy.tech/project/alcss)
## Example
- Imagine you have file - `my-awesome-style.css`
```css
body {
margin: 25px;
background-color: rgb(240, 240, 240);
font-family: arial, sans-serif;
font-size: 14px;
}
```
- Run this program
```bash
alcss my-awesome-style.css
```
- Result
```css
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`](https://pypi.org/project/alcss)
```bash
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
```css
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
```json
{
"emeraldwalk.runonsave": {
"commands": [
{
"match": ".css",
"cmd": "alcss ${file}"
}
]
}
}
```
نحوه نصب
نصب پکیج whl alcss-1.0.0:
pip install alcss-1.0.0.whl
نصب پکیج tar.gz alcss-1.0.0:
pip install alcss-1.0.0.tar.gz