# common-css-js

> common css

Latest version **1.0.8** (published 2022-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install common-css-js
pnpm add common-css-js
yarn add common-css-js
bun add common-css-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2022-05-27 |
| First published | 2022-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 872.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | niaier |
| Maintainers | niaier |
| Keywords | common, css, js |

## Links

- npm: https://www.npmjs.com/package/common-css-js
- Repository: https://github.com/niaier/common-css-js
- Homepage: https://github.com/niaier/common-css-js#readme
- Issues: https://github.com/niaier/common-css-js/issues
- npm.io page: https://npm.io/package/common-css-js

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.8 (latest) — 2022-05-27
- 1.0.7 — 2022-05-12
- 1.0.6 — 2022-05-12
- 1.0.5 — 2022-05-11
- 1.0.4 — 2022-05-11
- 1.0.3 — 2022-05-11
- 1.0.2 — 2022-05-10
- 1.0.1 — 2022-05-10
- 1.0.0 — 2022-04-12

## README

# common-css

## 安装
```
npm install common-css-js
```

### 引用
```
import 'common-css-js'
```

### 使用

**间距**

------

**property** 应用间距类型:

{property}{direction}-{size}

- `m` - 应用 `margin`

- `p` - 应用 `padding`

**direction** 指定了该属性所应用的侧边:

- `t` - 应用 `margin-top` 和 `padding-top` 的间距
- `b` - 应用 `margin-bottom` 和 `padding-bottom` 的间距
- `l` - 应用 `margin-left` 和 `padding-left` 的间距
- `r` - 应用 `margin-right` 和 `padding-right` 的间距
- `x` - 应用 `*-left` 和 `*-right` 的间距
- `y` - 应用 `*-top` 和 `*-bottom` 的间距
- `a` - 在所有方向应用该间距

**size** 以1px增量控制间距属性:

最大100

- `0` - 通过设置为 `0` 来消除所有 `margin` 或 `padding`.
- `1` - 设置 `margin` 或 `padding` 为 1px

示例

```html
<div class="ml-10"></div>
<div class="pl-10"></div>
```



**浮动**

------

- **.float-left**
- **.float-right**
- **.float-none**
- **.float-inherit**
- **.float-inline-start**
- **.float-inline-end**

示例

```html
<div class="float-left"></div>
```



**定位**

------

mode:定位方式
position-{mode}

- absolute
- fixed
- relative
- static
- inherit

 偏移

 {direction}-{size}

direction:方向
size:偏移尺寸 最大100

示例

```html
<div class="position-absolute left-10"></div>
```

**文字**

------

大小

fz-{size}

1px到100px

粗细

fw-{size}

100到800

---
_Source: https://npm.io/package/common-css-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
