# postcss-position

> PostCSS plugin that adds shorthand attributes methods to position declarations.

Latest version **1.1.0** (published 2019-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-position
pnpm add postcss-position
yarn add postcss-position
bun add postcss-position
```

## 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.1.0 |
| Published | 2019-11-04 |
| First published | 2015-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Sean King |
| Maintainers | seaneking |
| Keywords | postcss, css, postcss-plugin, position |

## Links

- npm: https://www.npmjs.com/package/postcss-position
- Repository: https://github.com/seaneking/postcss-position
- Issues: https://github.com/seaneking/postcss-position/issues
- npm.io page: https://npm.io/package/postcss-position

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^6.0.7

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-11-04
- 1.0.0 — 2017-07-26
- 0.5.0 — 2016-06-02
- 0.4.0 — 2015-09-06
- 0.3.1 — 2015-08-15
- 0.3.0 — 2015-08-15
- 0.2.1 — 2015-07-21
- 0.2.0 — 2015-06-16
- 0.1.1 — 2015-06-16
- 0.1.0 — 2015-06-15
- 0.0.0 — 2015-06-15

## README

# PostCSS Position
[![NPM version][npm-badge]][npm-url] [![Downloads][downloads-badge]][npm-url] [![Build Status][travis-badge]][travis-url]

[PostCSS][PostCSS] plugin that adds shorthand attributes to position declarations.

_Part of [Rucksack - CSS Superpowers](http://simplaio.github.io/rucksack)_

**Input**

```css
.foo {
  position: absolute 10px 0;
}

.bar {
  position: fixed 0;
}

.baz {
  position: relative 30% auto 0;
}

.fab {
  position: absolute 10px 0 20px 30px;
}
```

**Output**

```css
.foo {
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  left: 0;
}

.bar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.baz {
  position: relative;
  top: 30%;
  right: auto;
  bottom: 0;
  left: auto;
}

.fab {
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 20px;
  left: 30px;
}
```


## Usage

```js
postcss([ require('postcss-position') ])
```

See [PostCSS][PostCSS] docs for examples for your environment.

***

MIT © [Sean King](https://twitter.com/seaneking)

[npm-badge]: https://badge.fury.io/js/postcss-position.svg
[npm-url]: https://npmjs.org/package/postcss-position
[downloads-badge]: https://img.shields.io/npm/dm/postcss-position.svg
[travis-badge]: https://travis-ci.org/seaneking/postcss-position.svg?branch=master
[travis-url]: https://travis-ci.org/seaneking/postcss-position
[PostCSS]: https://github.com/postcss/postcss

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