Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vwxyutarooo/vcalc-stylus
https://github.com/vwxyutarooo/vcalc-stylus
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vwxyutarooo/vcalc-stylus
- Owner: vwxyutarooo
- License: mit
- Created: 2017-01-31T04:10:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T08:18:16.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T11:07:58.029Z (7 months ago)
- Language: CSS
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
vcalc is an Sass function for calculate unit from px to vw or vmin.
## Install
```
$ npm install --save-dev vcalc-stylus
``````styl
@import 'vcalc-stylus';
```Set variable `$base-v-size` as you want, default sets `375` (iPhone6).
```
$base-view-width = 320;
```## Useage
Same as [sass version](https://github.com/vwxyutarooo/vcalc)