gulp-css-hairline
Dispose with the CSS border pixels, refer to CSS retina hairline
Javascript
if windowdevicePixelRatio && devicePixelRatio >= 2 var testElem = document; testElemstyleborder = '.5px solid transparent'; documentbody; if testElemoffsetHeight == 1 documentclassList; documentbody;
Install
$ npm install --save-dev gulp-css-hairline
Usage
var gulp = ;var hairline = ; gulp;
Options
options.htmlCls
Type: String
Default value: hairline
Note: html's className.
Ignore a specific style
You can ignore a style with a comment /*hairline:skip*/
.
License
Copyright (c) 2015 Cao Ren under the MIT License.