Rework-Pure-Grids - 生成自定义网格单位


BSD
跨平台
JavaScript

软件简介

Rework-Pure-Grids 是能够通过 Rework
Pure Grids 生成自定义单位(尺寸)的工具。

为 Pure’s defaut Grids 创建自定义媒体查询的单位:

var rework    = require('rework'),
    pureGrids = require('rework-pure-grids');

var css = rework('').use(pureGrids.units({
    mediaQueries: {
        sm  : 'screen and (min-width: 30em)',
        med : 'screen and (min-width: 48em)',
        lrg : 'screen and (min-width: 64em)',
        xlrg: 'screen and (min-width: 75em)'
    }
})).toString();