Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ioriens/postcss-wxss

PostCSS plugin to transpile wxss or acss..
https://github.com/ioriens/postcss-wxss

minapp postcss postcss-plugins transpiler wxss

Last synced: about 6 hours ago
JSON representation

PostCSS plugin to transpile wxss or acss..

Awesome Lists containing this project

README

        

# PostCSS Wxss [![Build Status][ci-img]][ci]

[PostCSS] plugin to transpile wxss or acss..

[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/IOriens/postcss-wxss.svg
[ci]: https://travis-ci.org/IOriens/postcss-wxss

```css
@media screen and (min-width: 480rpx) {
body {
background-color: lightgreen;
animation-name: 'kkk';
}
}

#main, icon {
border: 1rpx solid black;
}

ul li, .page, page {
padding: 5rpx 3rpx;
}
```

```css
@media screen and (min-width: 480rpx) {
body {
background-color: lightgreen;
animation-name: 'kkk';
}
}

#main, wx-icon {
border: %%?1rpx?%% solid black;
}

ul li, .page, body {
padding: %%?5rpx?%% %%?3rpx?%%;
}
```

## Usage

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

See [PostCSS] docs for examples for your environment.

## Reference

[writing-a-plugin](https://github.com/postcss/postcss/blob/master/docs/writing-a-plugin.md)

## License

MIT